Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001532, allocations: 102.3 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 43.38 kB / 300.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.09081, allocations: 49.45 MB / 349.6 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1683/0.2592, allocations: 23.77 MB / 373.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.27, allocations: 7.009 MB / 380.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002816/0.2728, allocations: 137.2 kB / 380.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003016/0.2758, allocations: 1.348 MB / 381.9 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004767/0.2807, allocations: 2.05 MB / 383.9 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002544/0.2832, allocations: 1.304 MB / 385.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006906/0.2901, allocations: 7.304 MB / 392.5 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005606/0.2958, allocations: 5.564 MB / 398.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004131/0.2999, allocations: 3.099 MB / 401.2 MB, free: 216 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004203/0.3041, allocations: 3.828 MB / 405 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009905/0.3051, allocations: 0.8672 MB / 405.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002177/0.3073, allocations: 1.307 MB / 407.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001551/0.3089, allocations: 2.123 MB / 409.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003402/0.3123, allocations: 3.772 MB / 413.1 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008844/0.3211, allocations: 11.35 MB / 424.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.3212, allocations: 0 / 424.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3212, allocations: 0 / 424.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001194/0.3213, allocations: 0 / 424.4 MB, free: 10.12 MB / 334.1 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.01409/0.3354, allocations: 7.399 MB / 431.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.3354, allocations: 12.03 kB / 431.8 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005466/0.3409, allocations: 1.223 MB / 433.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005711/0.3466, allocations: 3.822 MB / 436.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003162/0.347, allocations: 449.2 kB / 437.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007336/0.3477, allocations: 0.5613 MB / 437.9 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/0.359, allocations: 7.289 MB / 445.2 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.3591, allocations: 15.84 kB / 445.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004764/0.3596, allocations: 235.4 kB / 445.4 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000245/0.3599, allocations: 259.3 kB / 445.7 MB, free: 4.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.3701, allocations: 6.159 MB / 451.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0342/0.4044, allocations: 23.78 MB / 475.6 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008046/0.4125, allocations: 8.743 MB / 484.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0038/0.4163, allocations: 2.393 MB / 486.7 MB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.4279, allocations: 7.016 MB / 493.8 MB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.428, allocations: 64.56 kB / 493.8 MB, free: 3.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.729e-06/0.428, allocations: 0 / 493.8 MB, free: 3.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03187/0.4599, allocations: 13.9 MB / 0.4958 GB, free: 4.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.46, allocations: 85.53 kB / 0.4959 GB, free: 4.871 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00509/0.4651, allocations: 3.486 MB / 0.4993 GB, free: 1.398 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002931/0.4654, allocations: 69.7 kB / 0.4994 GB, free: 1.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.4672, allocations: 2.677 MB / 0.502 GB, free: 14.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007311/0.468, allocations: 0.9653 MB / 0.5029 GB, free: 13.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009402/0.4689, allocations: 0.6406 MB / 0.5036 GB, free: 13.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.469, allocations: 305.1 kB / 0.5038 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.4716, allocations: 1.565 MB / 0.5054 GB, free: 11.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003493/0.4751, allocations: 2.77 MB / 0.5081 GB, free: 7.852 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006044/0.4812, allocations: 4.621 MB / 0.5126 GB, free: 2.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.4812, allocations: 8 kB / 0.5126 GB, free: 2.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009071/0.4903, allocations: 5.514 MB / 0.518 GB, free: 13.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.4903, allocations: 27.94 kB / 0.518 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.137e-05/0.4904, allocations: 36 kB / 0.518 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001702/0.4921, allocations: 0.6954 MB / 0.5187 GB, free: 12.26 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.4952, allocations: 0.858 MB / 0.5196 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.5054, allocations: 10.49 MB / 0.5298 GB, free: 364 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002897/0.5084, allocations: 227.5 kB / 0.53 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1544/0.6628, allocations: 164.2 kB / 0.5302 GB, free: 140.5 MB / 446.1 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003292/0.6661, allocations: 1.622 MB / 0.5318 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009226/0.6671, allocations: 387.8 kB / 0.5321 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007193/0.6743, allocations: 4.546 MB / 0.5366 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.24e-05/0.6743, allocations: 36.52 kB / 0.5366 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.395e-05/0.6743, allocations: 7.75 kB / 0.5366 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.6744, allocations: 12.47 kB / 0.5366 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01501/0.6894, allocations: 10.02 MB / 0.5464 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.6894, allocations: 5.031 kB / 0.5464 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002107/0.6915, allocations: 0.5002 MB / 0.5469 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001657/0.6932, allocations: 0.7487 MB / 0.5476 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001646/0.6934, allocations: 74.97 kB / 0.5477 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01037/0.7038, allocations: 14.26 MB / 0.5616 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.7038, allocations: 10.44 kB / 0.5617 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/0.7127, allocations: 6.666 MB / 0.5682 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.714, allocations: 0.7862 MB / 0.5689 GB, free: 119.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004687/0.7145, allocations: 58.89 kB / 0.569 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001861/0.7164, allocations: 168.1 kB / 0.5692 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/0.7168, allocations: 211.9 kB / 0.5694 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001602/0.7169, allocations: 91.58 kB / 0.5694 GB, free: 119.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002819/0.7198, allocations: 2.359 MB / 0.5717 GB, free: 118.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7198, allocations: 0 / 0.5717 GB, free: 118.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003131/0.7229, allocations: 1.105 MB / 0.5728 GB, free: 118.8 MB / 446.1 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006509/0.7236, allocations: 283.4 kB / 0.5731 GB, free: 118.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01229/0.7359, allocations: 6.716 MB / 0.5797 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.7359, allocations: 4 kB / 0.5797 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003583/0.7395, allocations: 2.86 MB / 0.5824 GB, free: 110.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.7428, allocations: 0.9031 MB / 0.5833 GB, free: 110 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/0.7561, allocations: 12.97 MB / 0.596 GB, free: 97.01 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002232/0.7584, allocations: 3.503 MB / 0.5994 GB, free: 93.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002407/0.7608, allocations: 0.8598 MB / 0.6003 GB, free: 92.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/0.7614, allocations: 263.4 kB / 0.6005 GB, free: 92.36 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.7614, allocations: 0 / 0.6005 GB, free: 92.36 MB / 446.1 MB Notification: Performance of Templates: time 0.07311/0.8345, allocations: 54.48 MB / 0.6537 GB, free: 38.44 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches