Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008711/0.0008712, allocations: 175.7 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007452/0.0007453, allocations: 99.41 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002891, allocations: 19.94 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.203, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09599/0.299, allocations: 80.81 MB / 483.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.2993, allocations: 79.94 kB / 483.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.3148, allocations: 5.864 MB / 489.5 MB, free: 9.586 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3148, allocations: 4 kB / 489.5 MB, free: 9.582 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.3148, allocations: 4 kB / 489.5 MB, free: 9.578 MB / 362.7 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.0007307/0.3156, allocations: 0.5152 MB / 490 MB, free: 9.008 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3156, allocations: 12.03 kB / 490 MB, free: 8.996 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.3158, allocations: 28.66 kB / 490 MB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.3161, allocations: 260.8 kB / 490.3 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.3162, allocations: 12.38 kB / 490.3 MB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.3162, allocations: 24.22 kB / 490.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.3165, allocations: 161.9 kB / 490.5 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3165, allocations: 192 / 490.5 MB, free: 8.473 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.3166, allocations: 15.88 kB / 490.5 MB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3166, allocations: 4 kB / 490.5 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.3168, allocations: 119.9 kB / 490.6 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009404/0.3178, allocations: 0.5858 MB / 491.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.3181, allocations: 170.4 kB / 491.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.3183, allocations: 88.83 kB / 491.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.3183, allocations: 4 kB / 491.5 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.3185, allocations: 122 kB / 491.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.893e-06/0.3186, allocations: 0 / 491.6 MB, free: 7.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005152/0.3191, allocations: 229.7 kB / 491.8 MB, free: 7.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.3191, allocations: 51.41 kB / 491.9 MB, free: 7.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002887/0.3194, allocations: 264.9 kB / 492.1 MB, free: 6.738 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.3195, allocations: 25.7 kB / 492.2 MB, free: 6.707 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.3196, allocations: 144.4 kB / 492.3 MB, free: 6.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/0.3197, allocations: 74.92 kB / 492.4 MB, free: 6.484 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.3197, allocations: 8 kB / 492.4 MB, free: 6.477 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.3199, allocations: 334.8 kB / 492.7 MB, free: 6.141 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.32, allocations: 51.98 kB / 492.8 MB, free: 6.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.3201, allocations: 99.27 kB / 492.9 MB, free: 5.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.3204, allocations: 139.4 kB / 493 MB, free: 5.832 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3204, allocations: 3.984 kB / 493 MB, free: 5.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003785/0.3208, allocations: 215.5 kB / 493.2 MB, free: 5.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.3208, allocations: 4 kB / 493.2 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3209, allocations: 0 / 493.2 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3209, allocations: 4 kB / 493.2 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002492/0.3211, allocations: 47.91 kB / 493.3 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3212, allocations: 0 / 493.3 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.3213, allocations: 27.83 kB / 493.3 MB, free: 5.531 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.494e-05/0.3213, allocations: 4 kB / 493.3 MB, free: 5.527 MB / 362.7 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001542/0.3215, allocations: 157.5 kB / 493.4 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.3215, allocations: 23.72 kB / 493.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004016/0.3219, allocations: 211.7 kB / 493.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3219, allocations: 3.984 kB / 493.7 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.322, allocations: 0 / 493.7 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.322, allocations: 0 / 493.7 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.3223, allocations: 305.3 kB / 494 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3223, allocations: 0 / 494 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001871/0.3225, allocations: 39.92 kB / 494 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.3225, allocations: 8 kB / 494 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.3225, allocations: 7.984 kB / 494 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3225, allocations: 0 / 494 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3225, allocations: 0 / 494 MB, free: 4.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.3231, allocations: 306.7 kB / 494.3 MB, free: 4.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3232, allocations: 104.9 kB / 494.4 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.852e-05/0.3232, allocations: 4 kB / 494.4 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.792e-05/0.3233, allocations: 8.062 kB / 494.4 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.3234, allocations: 19.97 kB / 494.5 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3234, allocations: 7.938 kB / 494.5 MB, free: 4.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002017/0.3236, allocations: 192.5 kB / 494.7 MB, free: 4.062 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3236, allocations: 3.938 kB / 494.7 MB, free: 4.059 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.324, allocations: 71.78 kB / 494.7 MB, free: 3.988 MB / 362.7 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000922/0.3249, allocations: 428.9 kB / 495.2 MB, free: 3.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003216/0.3252, allocations: 150.9 kB / 495.3 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3252, allocations: 0 / 495.3 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.3254, allocations: 87.78 kB / 495.4 MB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003607/0.3258, allocations: 44.64 kB / 495.4 MB, free: 3.445 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.3268, allocations: 0.6588 MB / 496.1 MB, free: 2.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.3271, allocations: 0.7482 MB / 496.8 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3272, allocations: 37.86 kB / 496.9 MB, free: 1.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.038e-05/0.3273, allocations: 19.44 kB / 496.9 MB, free: 1.926 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3273, allocations: 0 / 496.9 MB, free: 1.926 MB / 362.7 MB Notification: Performance of Templates: time 0.005938/0.3333, allocations: 2.639 MB / 499.5 MB, free: 15.32 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches