Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
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.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses")
translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.92 kB / 371 MB, free: 9.348 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2968, allocations: 52.19 MB / 423.2 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01281/0.3096, allocations: 9.751 MB / 432.9 MB, free: 4.906 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.006998/0.3166, allocations: 3.592 MB / 436.5 MB, free: 1.305 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.318, allocations: 59.62 kB / 436.6 MB, free: 1.246 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001908/0.3199, allocations: 0.7024 MB / 437.3 MB, free: 0.543 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.002378/0.3223, allocations: 0.878 MB / 438.1 MB, free: 15.66 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.3234, allocations: 483 kB / 438.6 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.003211/0.3266, allocations: 2.65 MB / 441.3 MB, free: 12.53 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.001595/0.3282, allocations: 1.109 MB / 442.4 MB, free: 11.36 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.001767/0.33, allocations: 1.215 MB / 443.6 MB, free: 10.14 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.002318/0.3323, allocations: 1.545 MB / 445.1 MB, free: 8.59 MB / 350.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0005022/0.3328, allocations: 304 kB / 445.4 MB, free: 8.293 MB / 350.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.3341, allocations: 0.6478 MB / 446.1 MB, free: 7.645 MB / 350.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.001111/0.3352, allocations: 1.04 MB / 447.1 MB, free: 6.602 MB / 350.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.001998/0.3372, allocations: 1.481 MB / 448.6 MB, free: 5.113 MB / 350.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.005392/0.3426, allocations: 4.312 MB / 452.9 MB, free: 0.7852 MB / 350.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3426, allocations: 0 / 452.9 MB, free: 0.7852 MB / 350.1 MB
Notification: Performance of FrontEnd: time 1.343e-06/0.3426, allocations: 0 / 452.9 MB, free: 0.7852 MB / 350.1 MB
Notification: Performance of Transformations before backend: time 8.501e-05/0.3427, allocations: 0 / 452.9 MB, free: 0.7852 MB / 350.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 524
 * Number of variables: 524
Notification: Performance of Generate backend data structure: time 0.006801/0.3495, allocations: 3.165 MB / 456.1 MB, free: 13.56 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3495, allocations: 8.031 kB / 456.1 MB, free: 13.55 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008509/0.3504, allocations: 342.9 kB / 456.4 MB, free: 13.22 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.002973/0.3533, allocations: 1.634 MB / 458.1 MB, free: 11.55 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3535, allocations: 159.9 kB / 458.2 MB, free: 11.39 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003421/0.3538, allocations: 211.9 kB / 458.4 MB, free: 11.18 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.005192/0.359, allocations: 2.69 MB / 461.1 MB, free: 8.41 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 5.223e-05/0.3591, allocations: 7.953 kB / 461.1 MB, free: 8.402 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.3593, allocations: 84 kB / 461.2 MB, free: 8.32 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/0.3594, allocations: 99.92 kB / 461.3 MB, free: 8.223 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004504/0.3639, allocations: 2.28 MB / 463.6 MB, free: 5.941 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01459/0.3785, allocations: 8.013 MB / 471.6 MB, free: 13.73 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.3816, allocations: 1.325 MB / 472.9 MB, free: 12.39 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.00214/0.3837, allocations: 1.016 MB / 473.9 MB, free: 11.38 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002201/0.3839, allocations: 56.89 kB / 474 MB, free: 11.32 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/0.384, allocations: 47.5 kB / 474 MB, free: 11.27 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=116): time 2.906e-06/0.384, allocations: 0 / 474 MB, free: 11.27 MB / 382.1 MB
Notification: Performance of matching and sorting (n=132): time 0.01486/0.3988, allocations: 6.104 MB / 480.1 MB, free: 5.117 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.3989, allocations: 64.72 kB / 480.2 MB, free: 5.043 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003289/0.4022, allocations: 2.156 MB / 482.4 MB, free: 2.84 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001753/0.4024, allocations: 49.7 kB / 482.4 MB, free: 2.785 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.00103/0.4034, allocations: 1.129 MB / 483.5 MB, free: 1.645 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0004981/0.4039, allocations: 475.9 kB / 484 MB, free: 1.176 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004287/0.4043, allocations: 243.5 kB / 484.2 MB, free: 0.9336 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001744/0.4045, allocations: 365.9 kB / 484.6 MB, free: 0.5703 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.4059, allocations: 0.7535 MB / 485.3 MB, free: 15.81 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.4075, allocations: 1.013 MB / 486.4 MB, free: 14.71 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.003093/0.4106, allocations: 1.865 MB / 488.2 MB, free: 12.75 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4106, allocations: 0 / 488.2 MB, free: 12.75 MB / 398.1 MB
Notification: Performance of matching and sorting (n=172) (initialization): time 0.005512/0.4161, allocations: 2.75 MB / 491 MB, free: 9.984 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.4162, allocations: 8 kB / 491 MB, free: 9.977 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.4162, allocations: 8 kB / 491 MB, free: 9.969 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/0.4183, allocations: 0.7891 MB / 491.8 MB, free: 9.176 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.4195, allocations: 271.5 kB / 492 MB, free: 8.91 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.4326, allocations: 9.399 MB / 0.4897 GB, free: 15.28 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.4341, allocations: 91.89 kB / 0.4898 GB, free: 15.19 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.4342, allocations: 51.98 kB / 0.4898 GB, free: 15.14 MB / 414.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 29
 * 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 (126):
 * Single equations (assignments): 122
 * Array equations: 2
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,6,100.0%), (6,33,88.9%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.001412/0.4357, allocations: 0.7395 MB / 0.4905 GB, free: 14.39 MB / 414.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000435/0.4361, allocations: 210.6 kB / 0.4907 GB, free: 14.18 MB / 414.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005288/0.4414, allocations: 2.473 MB / 0.4932 GB, free: 11.69 MB / 414.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-05/0.4414, allocations: 20 kB / 0.4932 GB, free: 11.67 MB / 414.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.4414, allocations: 4 kB / 0.4932 GB, free: 11.66 MB / 414.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-05/0.4414, allocations: 11.91 kB / 0.4932 GB, free: 11.65 MB / 414.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009789/0.4512, allocations: 4.893 MB / 0.498 GB, free: 6.68 MB / 414.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.4512, allocations: 4.125 kB / 0.498 GB, free: 6.676 MB / 414.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.4523, allocations: 219.9 kB / 0.4982 GB, free: 6.461 MB / 414.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/0.4542, allocations: 0.6567 MB / 0.4988 GB, free: 5.793 MB / 414.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.4543, allocations: 35.97 kB / 0.4989 GB, free: 5.758 MB / 414.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.4656, allocations: 8.401 MB / 0.5071 GB, free: 13.03 MB / 430.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.4656, allocations: 11.92 kB / 0.5071 GB, free: 13.02 MB / 430.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007155/0.4728, allocations: 3.525 MB / 0.5105 GB, free: 9.441 MB / 430.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.001643/0.4744, allocations: 374.6 kB / 0.5109 GB, free: 9.074 MB / 430.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003027/0.4747, allocations: 35.97 kB / 0.5109 GB, free: 9.039 MB / 430.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4757, allocations: 83.91 kB / 0.511 GB, free: 8.957 MB / 430.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/0.4761, allocations: 104.8 kB / 0.5111 GB, free: 8.852 MB / 430.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.4762, allocations: 39.98 kB / 0.5111 GB, free: 8.812 MB / 430.1 MB
Notification: Performance of sorting global known variables: time 0.00246/0.4787, allocations: 1.527 MB / 0.5126 GB, free: 7.262 MB / 430.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.4787, allocations: 0 / 0.5126 GB, free: 7.262 MB / 430.1 MB
Notification: Performance of remove unused functions: time 0.001903/0.4806, allocations: 0.5195 MB / 0.5131 GB, free: 6.742 MB / 430.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x)
 * 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 (97):
 * Single equations (assignments): 91
 * Array equations: 2
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 1
 * Torn equation systems: 3
 * Mixed (continuous/discrete) equation systems: 0
Notification: Equation system details (not torn):
 * Constant Jacobian (size): 0 systems
 * Linear Jacobian (size,density): 1 system
   {(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): 3 systems
   {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.001599/0.4822, allocations: 471.1 kB / 0.5136 GB, free: 6.402 MB / 430.1 MB
Notification: Performance of simCode: created initialization part: time 0.004618/0.4868, allocations: 2.303 MB / 0.5158 GB, free: 4.074 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4868, allocations: 0 / 0.5158 GB, free: 4.074 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002795/0.4896, allocations: 1.455 MB / 0.5173 GB, free: 2.582 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.4919, allocations: 449.7 kB / 0.5177 GB, free: 2.141 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008769/0.5006, allocations: 5.218 MB / 0.5228 GB, free: 12.87 MB / 446.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/0.5025, allocations: 1.955 MB / 0.5247 GB, free: 10.88 MB / 446.1 MB
Notification: Performance of simCode: alias equations: time 0.001228/0.5037, allocations: 391.6 kB / 0.5251 GB, free: 10.49 MB / 446.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003974/0.5041, allocations: 127.4 kB / 0.5252 GB, free: 10.37 MB / 446.1 MB
Notification: Performance of SimCode: time 7.62e-07/0.5041, allocations: 4 kB / 0.5252 GB, free: 10.36 MB / 446.1 MB
Notification: Performance of Templates: time 0.295/0.7991, allocations: 31.81 MB / 0.5563 GB, free: 96.45 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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: 6.879170740954578]