Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001888/0.001888, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002301/0.002301, allocations: 213.2 kB / 24.54 MB, free: 4.02 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.561/1.561, allocations: 230.3 MB / 258 MB, free: 8.242 MB / 206.1 MB
"
[Timeout remaining time 178]
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)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor")
translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 63.89 kB / 378.7 MB, free: 2.793 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2509, allocations: 53.35 MB / 432.1 MB, free: 7.074 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003874/0.2547, allocations: 2.289 MB / 434.4 MB, free: 4.777 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002297/0.257, allocations: 1.246 MB / 435.6 MB, free: 3.523 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.2572, allocations: 7.938 kB / 435.6 MB, free: 3.516 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003869/0.2576, allocations: 91.56 kB / 435.7 MB, free: 3.426 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0005013/0.2581, allocations: 163 kB / 435.9 MB, free: 3.266 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003449/0.2584, allocations: 115.6 kB / 436 MB, free: 3.152 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004197/0.2588, allocations: 302.7 kB / 436.3 MB, free: 2.855 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.259, allocations: 68.77 kB / 436.4 MB, free: 2.785 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.2592, allocations: 119.6 kB / 436.5 MB, free: 2.668 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.2595, allocations: 131.5 kB / 436.6 MB, free: 2.539 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.567e-05/0.2595, allocations: 16 kB / 436.6 MB, free: 2.523 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001516/0.2597, allocations: 55.92 kB / 436.7 MB, free: 2.469 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.979e-05/0.2597, allocations: 55.77 kB / 436.7 MB, free: 2.414 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.2599, allocations: 119.4 kB / 436.9 MB, free: 2.297 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.2603, allocations: 300.4 kB / 437.1 MB, free: 2.008 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2603, allocations: 4 kB / 437.1 MB, free: 2.004 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.653e-06/0.2603, allocations: 0 / 437.1 MB, free: 2.004 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.726e-06/0.2604, allocations: 0 / 437.1 MB, free: 2.004 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: 41
 * Number of variables: 41
Notification: Performance of Generate backend data structure: time 0.0009141/0.2613, allocations: 485.2 kB / 437.6 MB, free: 1.5 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.2613, allocations: 12.03 kB / 437.6 MB, free: 1.488 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001748/0.2615, allocations: 28.75 kB / 437.7 MB, free: 1.461 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.2619, allocations: 213.9 kB / 437.9 MB, free: 1.227 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.2619, allocations: 16.38 kB / 437.9 MB, free: 1.211 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.2619, allocations: 16.38 kB / 437.9 MB, free: 1.195 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.2623, allocations: 161.9 kB / 438.1 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.2623, allocations: 0 / 438.1 MB, free: 1.031 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.2623, allocations: 8 kB / 438.1 MB, free: 1.023 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.2623, allocations: 4 kB / 438.1 MB, free: 1.02 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002678/0.2626, allocations: 123.6 kB / 438.2 MB, free: 0.8984 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009677/0.2636, allocations: 0.5305 MB / 438.7 MB, free: 332 kB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.2639, allocations: 154.4 kB / 438.9 MB, free: 168 kB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.2641, allocations: 84.2 kB / 439 MB, free: 84 kB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.2641, allocations: 8.344 kB / 439 MB, free: 76 kB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.2644, allocations: 126 kB / 439.1 MB, free: 15.94 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.2644, allocations: 0 / 439.1 MB, free: 15.94 MB / 350.1 MB
Notification: Performance of matching and sorting (n=20): time 0.0005431/0.2649, allocations: 229.4 kB / 439.3 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.2649, allocations: 55.41 kB / 439.4 MB, free: 15.64 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003061/0.2653, allocations: 260.9 kB / 439.6 MB, free: 15.38 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2653, allocations: 29.7 kB / 439.6 MB, free: 15.35 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000124/0.2654, allocations: 152.3 kB / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.2655, allocations: 75.41 kB / 439.9 MB, free: 15.12 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.2656, allocations: 41.67 kB / 439.9 MB, free: 15.07 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001602/0.2657, allocations: 338.8 kB / 440.2 MB, free: 14.73 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.2658, allocations: 51.97 kB / 440.3 MB, free: 14.68 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.266, allocations: 84.06 kB / 440.4 MB, free: 14.59 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002782/0.2663, allocations: 154.9 kB / 440.5 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2663, allocations: 4 kB / 440.5 MB, free: 14.43 MB / 350.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003799/0.2667, allocations: 197.4 kB / 440.7 MB, free: 14.23 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2667, allocations: 4 kB / 440.7 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2667, allocations: 0 / 440.7 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.2667, allocations: 8.094 kB / 440.7 MB, free: 14.21 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.2669, allocations: 47.92 kB / 440.8 MB, free: 14.17 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.2669, allocations: 4 kB / 440.8 MB, free: 14.16 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.267, allocations: 23.81 kB / 440.8 MB, free: 14.14 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.267, allocations: 4 kB / 440.8 MB, free: 14.14 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (26):
 * Single equations (assignments): 26
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001469/0.2672, allocations: 144.7 kB / 441 MB, free: 13.99 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.235e-05/0.2672, allocations: 27.84 kB / 441 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004228/0.2677, allocations: 206.4 kB / 441.2 MB, free: 13.75 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.2677, allocations: 7.938 kB / 441.2 MB, free: 13.75 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2677, allocations: 0 / 441.2 MB, free: 13.75 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.2677, allocations: 11.92 kB / 441.2 MB, free: 13.73 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.268, allocations: 256.5 kB / 441.5 MB, free: 13.44 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.268, allocations: 0 / 441.5 MB, free: 13.44 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001898/0.2682, allocations: 31.98 kB / 441.5 MB, free: 13.41 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.2682, allocations: 4 kB / 441.5 MB, free: 13.41 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.2682, allocations: 4 kB / 441.5 MB, free: 13.4 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.808e-06/0.2682, allocations: 3.984 kB / 441.5 MB, free: 13.4 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2682, allocations: 0 / 441.5 MB, free: 13.4 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000526/0.2687, allocations: 292.8 kB / 441.8 MB, free: 13.09 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.689e-05/0.2688, allocations: 15.89 kB / 441.8 MB, free: 13.08 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.2688, allocations: 8 kB / 441.8 MB, free: 13.07 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.2689, allocations: 7.922 kB / 441.8 MB, free: 13.06 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.236e-05/0.2689, allocations: 15.98 kB / 441.8 MB, free: 13.05 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.052e-05/0.2689, allocations: 4 kB / 441.8 MB, free: 13.04 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002006/0.2692, allocations: 196.5 kB / 442 MB, free: 12.85 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.2692, allocations: 8 kB / 442 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0002958/0.2694, allocations: 59.83 kB / 442.1 MB, free: 12.79 MB / 350.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (winding.T,core.T)
 * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled)
 * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (20):
 * Single equations (assignments): 18
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 2
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.001493/0.2709, allocations: 405.3 kB / 442.5 MB, free: 12.52 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.000334/0.2713, allocations: 135.8 kB / 442.6 MB, free: 12.39 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2713, allocations: 0 / 442.6 MB, free: 12.39 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001457/0.2714, allocations: 74.48 kB / 442.7 MB, free: 12.32 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.2718, allocations: 58.61 kB / 442.7 MB, free: 12.27 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.2729, allocations: 0.5406 MB / 443.3 MB, free: 11.7 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.2733, allocations: 0.7519 MB / 444 MB, free: 10.92 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.00011/0.2734, allocations: 29.94 kB / 444.1 MB, free: 10.89 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.2735, allocations: 19.44 kB / 444.1 MB, free: 10.87 MB / 350.1 MB
Notification: Performance of SimCode: time 3.5e-07/0.2735, allocations: 4 kB / 444.1 MB, free: 10.86 MB / 350.1 MB
Notification: Performance of Templates: time 0.007145/0.2806, allocations: 2.841 MB / 446.9 MB, free: 8.043 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 658]
Reference file matches
[Calling sys.exit(0), Time elapsed: 8.123811347410083]