Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001436/0.00144, allocations: 186 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 86.92 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003791/0.0003791, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3208, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1243/0.4451, allocations: 79.48 MB / 454 MB, free: 1.285 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002832/0.4454, allocations: 75.95 kB / 454.1 MB, free: 1.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02624/0.4717, allocations: 5.808 MB / 459.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4717, allocations: 0 / 459.9 MB, free: 11.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.4718, allocations: 4 kB / 459.9 MB, free: 11.4 MB / 346.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.001079/0.4729, allocations: 0.5227 MB / 460.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.4729, allocations: 12.03 kB / 460.4 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.4732, allocations: 23.72 kB / 460.4 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.4737, allocations: 259.5 kB / 460.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.795e-05/0.4738, allocations: 12 kB / 460.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/0.4738, allocations: 23.95 kB / 460.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004876/0.4743, allocations: 161.4 kB / 460.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.4744, allocations: 4 kB / 460.9 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.4744, allocations: 7.938 kB / 460.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.4744, allocations: 4 kB / 460.9 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004164/0.4749, allocations: 127.7 kB / 461 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.4763, allocations: 0.5782 MB / 461.6 MB, free: 9.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.4768, allocations: 170.3 kB / 461.8 MB, free: 9.348 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.4768, allocations: 4 kB / 461.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003825/0.4772, allocations: 127.8 kB / 461.9 MB, free: 9.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 2.835e-06/0.4773, allocations: 4 kB / 461.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008065/0.4781, allocations: 237.4 kB / 462.1 MB, free: 8.969 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.4781, allocations: 55.36 kB / 462.2 MB, free: 8.902 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.4785, allocations: 232.2 kB / 462.4 MB, free: 8.668 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.634e-05/0.4786, allocations: 33.7 kB / 462.5 MB, free: 8.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.4787, allocations: 198.8 kB / 462.7 MB, free: 8.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.692e-05/0.4788, allocations: 59.11 kB / 462.7 MB, free: 8.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.4789, allocations: 8 kB / 462.7 MB, free: 8.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.479, allocations: 322.8 kB / 463 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.4792, allocations: 51.97 kB / 463.1 MB, free: 7.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.4795, allocations: 101.4 kB / 463.2 MB, free: 7.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.4797, allocations: 65.05 kB / 463.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4797, allocations: 0 / 463.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005604/0.4803, allocations: 196.1 kB / 463.4 MB, free: 7.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.4803, allocations: 4 kB / 463.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4804, allocations: 3.984 kB / 463.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.4804, allocations: 4 kB / 463.4 MB, free: 7.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.4808, allocations: 47.92 kB / 463.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.4808, allocations: 0 / 463.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.4811, allocations: 39.62 kB / 463.5 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.4811, allocations: 8.094 kB / 463.5 MB, free: 7.523 MB / 346.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.0002273/0.4814, allocations: 145.8 kB / 463.7 MB, free: 7.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.138e-05/0.4814, allocations: 19.81 kB / 463.7 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006743/0.4821, allocations: 219.6 kB / 463.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.4821, allocations: 3.938 kB / 463.9 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.4822, allocations: 0 / 463.9 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.4822, allocations: 4 kB / 463.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004668/0.4826, allocations: 301.4 kB / 464.2 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4827, allocations: 4 kB / 464.2 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.483, allocations: 35.98 kB / 464.3 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.4831, allocations: 4 kB / 464.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.4831, allocations: 0 / 464.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.4831, allocations: 0 / 464.3 MB, free: 6.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4831, allocations: 4 kB / 464.3 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.484, allocations: 307.4 kB / 464.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.4841, allocations: 108.9 kB / 464.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.346e-05/0.4842, allocations: 4 kB / 464.7 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/0.4844, allocations: 11.98 kB / 464.7 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.4845, allocations: 11.98 kB / 464.7 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.4845, allocations: 8 kB / 464.7 MB, free: 6.258 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003029/0.4848, allocations: 192.5 kB / 464.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4848, allocations: 0 / 464.9 MB, free: 6.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004437/0.4853, allocations: 67.84 kB / 465 MB, free: 6.004 MB / 346.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.001221/0.4865, allocations: 428.6 kB / 465.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005844/0.4871, allocations: 148 kB / 465.5 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.4871, allocations: 0 / 465.5 MB, free: 5.461 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.4874, allocations: 83.84 kB / 465.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005014/0.4879, allocations: 48.58 kB / 465.7 MB, free: 5.328 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.4896, allocations: 0.6922 MB / 466.3 MB, free: 4.602 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.49, allocations: 0.7521 MB / 467.1 MB, free: 3.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.4902, allocations: 27.44 kB / 467.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of SimCode: time 1.552e-06/0.4902, allocations: 0 / 467.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of Templates: time 0.0086/0.4988, allocations: 3.159 MB / 470.3 MB, free: 0.6328 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches