Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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.002279/0.002279, allocations: 106 kB / 21.18 MB, free: 0.707 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.002443/0.002443, allocations: 185.3 kB / 24.47 MB, free: 4.074 MB / 14.72 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 1.543/1.543, allocations: 207.6 MB / 235.2 MB, free: 10.02 MB / 190.1 MB
"
[Timeout remaining time 178]
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.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.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 55.92 kB / 347.6 MB, free: 9.645 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2884, allocations: 49.15 MB / 396.8 MB, free: 9.496 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003343/0.2917, allocations: 2.236 MB / 399 MB, free: 7.941 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001547/0.2933, allocations: 0.9893 MB / 400 MB, free: 7.258 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.2934, allocations: 11.44 kB / 400 MB, free: 7.25 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0004324/0.2938, allocations: 97.8 kB / 400.1 MB, free: 7.215 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003434/0.2942, allocations: 120.1 kB / 400.2 MB, free: 7.148 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.2945, allocations: 129.1 kB / 400.4 MB, free: 7.078 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003294/0.2949, allocations: 283.6 kB / 400.6 MB, free: 6.945 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.2951, allocations: 66.16 kB / 400.7 MB, free: 6.91 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.2952, allocations: 114.6 kB / 400.8 MB, free: 6.863 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.2954, allocations: 130.7 kB / 401 MB, free: 6.809 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.951e-05/0.2955, allocations: 21.22 kB / 401 MB, free: 6.805 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.2956, allocations: 52.5 kB / 401 MB, free: 6.793 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.68e-05/0.2957, allocations: 64 kB / 401.1 MB, free: 6.754 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.2958, allocations: 112.6 kB / 401.2 MB, free: 6.688 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003898/0.2962, allocations: 286.4 kB / 401.5 MB, free: 6.582 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.2962, allocations: 0 / 401.5 MB, free: 6.582 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.733e-06/0.2962, allocations: 1.469 kB / 401.5 MB, free: 6.582 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 7.675e-06/0.2962, allocations: 0 / 401.5 MB, free: 6.582 MB / 318.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.0008037/0.297, allocations: 497.2 kB / 402 MB, free: 6.176 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2971, allocations: 13.62 kB / 402 MB, free: 6.172 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.2972, allocations: 33.42 kB / 402 MB, free: 6.156 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003378/0.2975, allocations: 193.3 kB / 402.2 MB, free: 5.98 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2976, allocations: 11.52 kB / 402.2 MB, free: 5.977 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.2976, allocations: 23.44 kB / 402.2 MB, free: 5.965 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.298, allocations: 164.1 kB / 402.4 MB, free: 5.883 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.298, allocations: 1.609 kB / 402.4 MB, free: 5.883 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.298, allocations: 13.06 kB / 402.4 MB, free: 5.871 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.298, allocations: 4.375 kB / 402.4 MB, free: 5.871 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.2983, allocations: 115.5 kB / 402.5 MB, free: 5.836 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008316/0.2991, allocations: 0.5279 MB / 403.1 MB, free: 5.465 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.2994, allocations: 157.8 kB / 403.2 MB, free: 5.391 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.2995, allocations: 77.67 kB / 403.3 MB, free: 5.359 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2996, allocations: 2.438 kB / 403.3 MB, free: 5.359 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.2998, allocations: 109.7 kB / 403.4 MB, free: 5.293 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.2998, allocations: 4 kB / 403.4 MB, free: 5.289 MB / 318.1 MB
Notification: Performance of matching and sorting (n=20): time 0.0004891/0.3003, allocations: 234.3 kB / 403.6 MB, free: 5.184 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.3003, allocations: 53.53 kB / 403.7 MB, free: 5.121 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.3005, allocations: 250.6 kB / 403.9 MB, free: 4.977 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.3006, allocations: 31.08 kB / 404 MB, free: 4.941 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.67e-05/0.3006, allocations: 151.6 kB / 404.1 MB, free: 4.805 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.3007, allocations: 74.11 kB / 404.2 MB, free: 4.746 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.3008, allocations: 43.2 kB / 404.2 MB, free: 4.715 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 6.687e-05/0.3008, allocations: 340.8 kB / 404.5 MB, free: 4.387 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3009, allocations: 49.72 kB / 404.6 MB, free: 4.371 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.3011, allocations: 82.34 kB / 404.7 MB, free: 4.32 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002486/0.3013, allocations: 149.6 kB / 404.8 MB, free: 4.23 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3013, allocations: 0.75 kB / 404.8 MB, free: 4.23 MB / 318.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003219/0.3016, allocations: 205.5 kB / 405 MB, free: 4.129 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3017, allocations: 6.859 kB / 405 MB, free: 4.129 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3017, allocations: 1.469 kB / 405 MB, free: 4.129 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.3017, allocations: 1.781 kB / 405 MB, free: 4.129 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.3019, allocations: 46.28 kB / 405.1 MB, free: 4.125 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.928e-06/0.3019, allocations: 6.062 kB / 405.1 MB, free: 4.121 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.302, allocations: 27.11 kB / 405.1 MB, free: 4.102 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.302, allocations: 5.656 kB / 405.1 MB, free: 4.102 MB / 318.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.0001309/0.3022, allocations: 144.9 kB / 405.3 MB, free: 3.969 MB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.3022, allocations: 19.08 kB / 405.3 MB, free: 3.961 MB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004043/0.3026, allocations: 207.6 kB / 405.5 MB, free: 3.855 MB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3026, allocations: 6 kB / 405.5 MB, free: 3.852 MB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3026, allocations: 1.125 kB / 405.5 MB, free: 3.852 MB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3026, allocations: 1.547 kB / 405.5 MB, free: 3.852 MB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.3029, allocations: 263.5 kB / 405.7 MB, free: 3.641 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3029, allocations: 0 / 405.7 MB, free: 3.641 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.3031, allocations: 32.89 kB / 405.8 MB, free: 3.641 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3031, allocations: 0.9062 kB / 405.8 MB, free: 3.641 MB / 318.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.3031, allocations: 5.703 kB / 405.8 MB, free: 3.637 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3031, allocations: 6.375 kB / 405.8 MB, free: 3.633 MB / 318.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3031, allocations: 0 / 405.8 MB, free: 3.633 MB / 318.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005044/0.3036, allocations: 286.9 kB / 406.1 MB, free: 3.477 MB / 318.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.831e-05/0.3037, allocations: 23.66 kB / 406.1 MB, free: 3.461 MB / 318.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.3037, allocations: 10.91 kB / 406.1 MB, free: 3.453 MB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.3038, allocations: 7 kB / 406.1 MB, free: 3.449 MB / 318.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.871e-05/0.3038, allocations: 10.97 kB / 406.1 MB, free: 3.449 MB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.3039, allocations: 10.25 kB / 406.1 MB, free: 3.445 MB / 318.1 MB
Notification: Performance of sorting global known variables: time 0.0001758/0.304, allocations: 187.5 kB / 406.3 MB, free: 3.34 MB / 318.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.304, allocations: 3.938 kB / 406.3 MB, free: 3.336 MB / 318.1 MB
Notification: Performance of remove unused functions: time 0.0002947/0.3043, allocations: 56.64 kB / 406.4 MB, free: 3.324 MB / 318.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.00153/0.3059, allocations: 408.4 kB / 406.8 MB, free: 2.969 MB / 318.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003506/0.3062, allocations: 136 kB / 406.9 MB, free: 2.926 MB / 318.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3062, allocations: 0 / 406.9 MB, free: 2.926 MB / 318.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.000145/0.3064, allocations: 68.48 kB / 407 MB, free: 2.906 MB / 318.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.3067, allocations: 59.3 kB / 407 MB, free: 2.871 MB / 318.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.3078, allocations: 0.5518 MB / 407.6 MB, free: 2.512 MB / 318.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.308, allocations: 0.7493 MB / 408.3 MB, free: 1.809 MB / 318.1 MB
Notification: Performance of simCode: alias equations: time 0.0001168/0.3081, allocations: 29.02 kB / 408.4 MB, free: 1.797 MB / 318.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.3082, allocations: 22.41 kB / 408.4 MB, free: 1.793 MB / 318.1 MB
Notification: Performance of SimCode: time 4e-07/0.3082, allocations: 0 / 408.4 MB, free: 1.793 MB / 318.1 MB
Notification: Performance of Templates: time 0.007334/0.3155, allocations: 2.797 MB / 411.2 MB, free: 0.9648 MB / 318.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.959082496352494]