Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 197.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007964/0.0007964, allocations: 98.2 kB / 296.8 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002719, allocations: 8 kB / 356.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2012, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.01506/0.2163, allocations: 21.87 MB / 429.9 MB, free: 5.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01117/0.2275, allocations: 6.918 MB / 436.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003497/0.2311, allocations: 139.4 kB / 437 MB, free: 14.71 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003722/0.2348, allocations: 1.192 MB / 438.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006313/0.2411, allocations: 1.888 MB / 440.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003342/0.2445, allocations: 0.9924 MB / 441.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01073/0.2552, allocations: 7.342 MB / 448.4 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007973/0.2632, allocations: 4.602 MB / 453 MB, free: 14.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004681/0.268, allocations: 2.276 MB / 455.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00537/0.2734, allocations: 3.023 MB / 458.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001674/0.2751, allocations: 367.9 kB / 458.7 MB, free: 8.891 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003373/0.2785, allocations: 0.8117 MB / 459.5 MB, free: 8.078 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002429/0.2809, allocations: 1.487 MB / 461 MB, free: 6.586 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006178/0.2871, allocations: 3.003 MB / 464 MB, free: 3.562 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01144/0.2986, allocations: 9.322 MB / 473.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2987, allocations: 0 / 473.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2987, allocations: 0 / 473.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000403/0.2991, allocations: 0 / 473.3 MB, free: 10.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01719/0.3163, allocations: 6.285 MB / 479.6 MB, free: 3.848 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.3163, allocations: 8.031 kB / 479.6 MB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006873/0.3232, allocations: 1.262 MB / 480.8 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009029/0.3323, allocations: 3.85 MB / 484.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005034/0.3328, allocations: 440 kB / 485.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/0.3344, allocations: 0.5622 MB / 485.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01733/0.3518, allocations: 7.276 MB / 493 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002253/0.352, allocations: 11.91 kB / 493 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/0.3531, allocations: 232 kB / 493.2 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003073/0.3535, allocations: 259.3 kB / 493.4 MB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/0.3669, allocations: 6.158 MB / 499.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2143/0.5812, allocations: 24.03 MB / 0.5114 GB, free: 73.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008482/0.5898, allocations: 9.016 MB / 0.5202 GB, free: 66.65 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004667/0.5945, allocations: 2.506 MB / 0.5226 GB, free: 65.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/0.6085, allocations: 7.658 MB / 0.5301 GB, free: 61.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.6086, allocations: 60.22 kB / 0.5301 GB, free: 61.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 5.811e-06/0.6086, allocations: 0 / 0.5301 GB, free: 61.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.03315/0.6418, allocations: 14.63 MB / 0.5444 GB, free: 52.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.6419, allocations: 85.53 kB / 0.5445 GB, free: 52.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005495/0.6474, allocations: 3.468 MB / 0.5479 GB, free: 48.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004117/0.6478, allocations: 73.7 kB / 0.548 GB, free: 48.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001324/0.6491, allocations: 2.693 MB / 0.5506 GB, free: 46.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007357/0.6499, allocations: 0.9615 MB / 0.5515 GB, free: 45.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.6502, allocations: 79.75 kB / 0.5516 GB, free: 45.03 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.6504, allocations: 449.8 kB / 0.552 GB, free: 44.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002451/0.6528, allocations: 1.573 MB / 0.5536 GB, free: 43.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002878/0.6557, allocations: 2.787 MB / 0.5563 GB, free: 39.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00585/0.6616, allocations: 4.66 MB / 0.5609 GB, free: 34.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.381e-05/0.6616, allocations: 12 kB / 0.5609 GB, free: 34.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009271/0.6709, allocations: 5.577 MB / 0.5663 GB, free: 28.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.024e-05/0.671, allocations: 20 kB / 0.5663 GB, free: 28.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.633e-05/0.6711, allocations: 36 kB / 0.5664 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.6727, allocations: 0.703 MB / 0.5671 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/0.6758, allocations: 0.8658 MB / 0.5679 GB, free: 27.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.684, allocations: 9.756 MB / 0.5774 GB, free: 16.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003556/0.6876, allocations: 236.5 kB / 0.5776 GB, free: 16.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005943/0.6882, allocations: 168 kB / 0.5778 GB, free: 16.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (426): * Single equations (assignments): 416 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003505/0.6918, allocations: 1.613 MB / 0.5794 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/0.6929, allocations: 403.1 kB / 0.5798 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007902/0.7008, allocations: 4.624 MB / 0.5843 GB, free: 9.691 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-05/0.7009, allocations: 35.92 kB / 0.5843 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.952e-05/0.7009, allocations: 8 kB / 0.5843 GB, free: 9.648 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.07e-05/0.701, allocations: 11.95 kB / 0.5843 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01725/0.7182, allocations: 10.12 MB / 0.5942 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.73e-05/0.7183, allocations: 7.938 kB / 0.5942 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002208/0.7205, allocations: 0.5072 MB / 0.5947 GB, free: 14.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.7227, allocations: 0.7724 MB / 0.5955 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003033/0.723, allocations: 75.88 kB / 0.5955 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.7366, allocations: 13.18 MB / 0.6084 GB, free: 15.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.7366, allocations: 8 kB / 0.6084 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.7492, allocations: 6.759 MB / 0.615 GB, free: 8.961 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/0.7514, allocations: 0.789 MB / 0.6158 GB, free: 8.148 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/0.7525, allocations: 63.98 kB / 0.6159 GB, free: 8.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002441/0.755, allocations: 187.8 kB / 0.616 GB, free: 7.902 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005409/0.7555, allocations: 201.8 kB / 0.6162 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002577/0.7558, allocations: 87.97 kB / 0.6163 GB, free: 7.617 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004767/0.7606, allocations: 2.334 MB / 0.6186 GB, free: 5.301 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7606, allocations: 0 / 0.6186 GB, free: 5.301 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004872/0.7655, allocations: 1.122 MB / 0.6197 GB, free: 4.188 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008417/0.7664, allocations: 310.4 kB / 0.62 GB, free: 3.883 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008385/0.7747, allocations: 4.774 MB / 0.6246 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.018e-05/0.7748, allocations: 3.938 kB / 0.6247 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005029/0.7798, allocations: 2.906 MB / 0.6275 GB, free: 12.01 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007851/0.7877, allocations: 0.86 MB / 0.6283 GB, free: 11.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.8094, allocations: 12.57 MB / 0.6406 GB, free: 14.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004478/0.814, allocations: 3.439 MB / 0.644 GB, free: 11.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/0.8155, allocations: 283.4 kB / 0.6442 GB, free: 10.74 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/0.8155, allocations: 0 / 0.6442 GB, free: 10.74 MB / 442.7 MB Notification: Performance of Templates: time 0.5398/1.355, allocations: 239.4 MB / 0.878 GB, free: 140.7 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches