Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008428/0.0008428, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008665/0.0008665, allocations: 158.3 kB / 25.45 MB, free: 9.344 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9104/0.9104, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 299.7 MB, free: 6.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.548e-05, allocations: 2.281 kB / 299.7 MB, free: 6.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.01594/0.01596, allocations: 20.71 MB / 320.5 MB, free: 2.066 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.02852, allocations: 6.853 MB / 327.3 MB, free: 11.19 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004035/0.03255, allocations: 155.1 kB / 327.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003288/0.03584, allocations: 1.572 MB / 329 MB, free: 9.453 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005706/0.04155, allocations: 2.39 MB / 331.4 MB, free: 7.047 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002632/0.04418, allocations: 1.477 MB / 332.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00713/0.05131, allocations: 7.516 MB / 340.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003945/0.05525, allocations: 2.977 MB / 343.4 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005835/0.06109, allocations: 4.803 MB / 348.2 MB, free: 6.145 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003982/0.06507, allocations: 3.214 MB / 351.4 MB, free: 2.922 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001459/0.06653, allocations: 0.8749 MB / 352.3 MB, free: 2.047 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001881/0.06841, allocations: 1.269 MB / 353.5 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1769/0.2454, allocations: 2.19 MB / 355.7 MB, free: 26.68 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007265/0.2526, allocations: 2.584 MB / 358.3 MB, free: 26.68 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01427/0.2669, allocations: 11.59 MB / 369.9 MB, free: 26.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.2669, allocations: 0 / 369.9 MB, free: 26.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.2669, allocations: 0 / 369.9 MB, free: 26.17 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003958/0.2673, allocations: 1.5 kB / 369.9 MB, free: 26.17 MB / 330.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.0211/0.2884, allocations: 7.435 MB / 377.3 MB, free: 22.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2884, allocations: 14.23 kB / 377.4 MB, free: 22.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003556/0.292, allocations: 1.257 MB / 378.6 MB, free: 21.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006045/0.298, allocations: 3.837 MB / 382.5 MB, free: 18.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.2982, allocations: 433.1 kB / 382.9 MB, free: 18.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006226/0.2989, allocations: 0.5544 MB / 383.4 MB, free: 18.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/0.3089, allocations: 7.552 MB / 391 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.3091, allocations: 10.67 kB / 391 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004132/0.3095, allocations: 237.8 kB / 391.2 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002469/0.3097, allocations: 261.3 kB / 391.5 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007495/0.3172, allocations: 6.092 MB / 397.6 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0279/0.3451, allocations: 20.29 MB / 417.9 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004587/0.3497, allocations: 3.87 MB / 421.7 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002513/0.3522, allocations: 2.175 MB / 423.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008905/0.3611, allocations: 5.567 MB / 429.5 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.995e-05/0.3612, allocations: 56.56 kB / 429.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=238): time 5.951e-06/0.3612, allocations: 0 / 429.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=282): time 0.02222/0.3834, allocations: 13.07 MB / 442.6 MB, free: 13.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.3835, allocations: 84.42 kB / 442.7 MB, free: 12.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004579/0.3881, allocations: 3.044 MB / 445.7 MB, free: 9.867 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001972/0.3882, allocations: 69.7 kB / 445.8 MB, free: 9.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001614/0.3899, allocations: 2.767 MB / 448.6 MB, free: 7.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006998/0.3906, allocations: 0.9937 MB / 449.6 MB, free: 6.039 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007411/0.3913, allocations: 0.64 MB / 450.2 MB, free: 5.395 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/0.3914, allocations: 309.1 kB / 450.5 MB, free: 5.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00193/0.3933, allocations: 1.545 MB / 452 MB, free: 3.543 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.3959, allocations: 2.789 MB / 454.8 MB, free: 240 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004823/0.4008, allocations: 4.593 MB / 459.4 MB, free: 11.23 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.224e-05/0.4008, allocations: 12 kB / 459.4 MB, free: 11.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007601/0.4084, allocations: 5.283 MB / 464.7 MB, free: 6.113 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.896e-05/0.4084, allocations: 24 kB / 464.7 MB, free: 6.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.897e-05/0.4085, allocations: 39.56 kB / 464.8 MB, free: 6.055 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.4097, allocations: 0.6612 MB / 465.4 MB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.4115, allocations: 0.8656 MB / 466.3 MB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008176/0.4196, allocations: 9.749 MB / 476.1 MB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002678/0.4223, allocations: 223.6 kB / 476.3 MB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.4226, allocations: 168 kB / 476.4 MB, free: 10.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.003781/0.4263, allocations: 1.627 MB / 478.1 MB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007966/0.4271, allocations: 365.7 kB / 478.4 MB, free: 8.164 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005714/0.4329, allocations: 4.227 MB / 482.7 MB, free: 3.891 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.901e-05/0.4329, allocations: 32 kB / 482.7 MB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-05/0.4329, allocations: 7.984 kB / 482.7 MB, free: 3.852 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.075e-05/0.4329, allocations: 18.69 kB / 482.7 MB, free: 3.836 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.4455, allocations: 8.336 MB / 491 MB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.4455, allocations: 4.656 kB / 491.1 MB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.4467, allocations: 0.5047 MB / 491.6 MB, free: 10.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001239/0.4479, allocations: 0.7226 MB / 492.3 MB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001988/0.4481, allocations: 71.97 kB / 492.3 MB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.4591, allocations: 13.24 MB / 0.4937 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.4591, allocations: 7.469 kB / 0.4937 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01032/0.4694, allocations: 6.314 MB / 0.4999 GB, free: 5.898 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/0.4713, allocations: 0.6655 MB / 0.5006 GB, free: 5.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.4716, allocations: 63.98 kB / 0.5006 GB, free: 5.168 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.4726, allocations: 163.8 kB / 0.5008 GB, free: 5.008 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.473, allocations: 219.2 kB / 0.501 GB, free: 4.801 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.4731, allocations: 83.98 kB / 0.5011 GB, free: 4.719 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002648/0.4758, allocations: 1.991 MB / 0.503 GB, free: 2.734 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4758, allocations: 0 / 0.503 GB, free: 2.734 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003293/0.4791, allocations: 1.089 MB / 0.5041 GB, free: 1.648 MB / 442.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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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.0005784/0.4797, allocations: 278.4 kB / 0.5043 GB, free: 1.395 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.1596/0.6393, allocations: 4.354 MB / 0.5086 GB, free: 158.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.6393, allocations: 2.344 kB / 0.5086 GB, free: 158.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.6424, allocations: 2.691 MB / 0.5112 GB, free: 158.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/0.6452, allocations: 0.7251 MB / 0.5119 GB, free: 158.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.6576, allocations: 10.36 MB / 0.522 GB, free: 154 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/0.6596, allocations: 2.91 MB / 0.5249 GB, free: 153.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000717/0.6604, allocations: 274.9 kB / 0.5252 GB, free: 153.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.673e-06/0.6604, allocations: 0 / 0.5252 GB, free: 153.2 MB / 442.7 MB Notification: Performance of Templates: time 0.2693/0.9297, allocations: 239.3 MB / 0.7588 GB, free: 69.73 MB / 442.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.917840337380767]