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.001423/0.001423, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008059/0.0008061, allocations: 91.88 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.542e-05/1.553e-05, allocations: 0 / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09599, allocations: 50.42 MB / 387.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3007/0.3967, allocations: 80.02 MB / 467.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.397, allocations: 75.91 kB / 467.5 MB, free: 14.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01581/0.4128, allocations: 5.812 MB / 473.4 MB, free: 8.957 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4128, allocations: 0 / 473.4 MB, free: 8.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.149e-05/0.4129, allocations: 4 kB / 473.4 MB, free: 8.953 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.0006918/0.4136, allocations: 0.492 MB / 473.8 MB, free: 8.414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.4136, allocations: 8.031 kB / 473.9 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.4138, allocations: 43.55 kB / 473.9 MB, free: 8.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003926/0.4142, allocations: 247.6 kB / 474.1 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.4142, allocations: 4 kB / 474.1 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.208e-05/0.4142, allocations: 12 kB / 474.2 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002568/0.4145, allocations: 104 kB / 474.3 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.4148, allocations: 137.4 kB / 474.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.4148, allocations: 4 kB / 474.4 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.4148, allocations: 3.953 kB / 474.4 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.4149, allocations: 4 kB / 474.4 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008801/0.4157, allocations: 0.528 MB / 474.9 MB, free: 7.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.416, allocations: 154.5 kB / 475.1 MB, free: 7.078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.4161, allocations: 80.84 kB / 475.2 MB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.4162, allocations: 352 / 475.2 MB, free: 6.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.4164, allocations: 111.3 kB / 475.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.643e-06/0.4164, allocations: 0 / 475.3 MB, free: 6.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=20): time 0.000355/0.4168, allocations: 166.8 kB / 475.4 MB, free: 6.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.4168, allocations: 55.41 kB / 475.5 MB, free: 6.641 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.4171, allocations: 218.1 kB / 475.7 MB, free: 6.418 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.4171, allocations: 25.7 kB / 475.7 MB, free: 6.387 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.4172, allocations: 156.2 kB / 475.9 MB, free: 6.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.4173, allocations: 59.11 kB / 475.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.666e-06/0.4173, allocations: 0 / 475.9 MB, free: 6.172 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.4174, allocations: 330.8 kB / 476.3 MB, free: 5.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.19e-05/0.4175, allocations: 48 kB / 476.3 MB, free: 5.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001064/0.4176, allocations: 83.55 kB / 476.4 MB, free: 5.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000103/0.4177, allocations: 60.84 kB / 476.4 MB, free: 5.641 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.4177, allocations: 0 / 476.4 MB, free: 5.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002745/0.418, allocations: 191.8 kB / 476.6 MB, free: 5.449 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.418, allocations: 9.25 kB / 476.6 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.4181, allocations: 0 / 476.6 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.4181, allocations: 12.08 kB / 476.7 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.4183, allocations: 47.91 kB / 476.7 MB, free: 5.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.4183, allocations: 3.984 kB / 476.7 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.4185, allocations: 15.84 kB / 476.7 MB, free: 5.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.4185, allocations: 12 kB / 476.7 MB, free: 5.352 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 () * 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 9.85e-05/0.4186, allocations: 105 kB / 476.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.969e-05/0.4186, allocations: 27.7 kB / 476.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003633/0.419, allocations: 202 kB / 477.1 MB, free: 5.016 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.419, allocations: 7.984 kB / 477.1 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.419, allocations: 4 kB / 477.1 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4191, allocations: 0 / 477.1 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003059/0.4194, allocations: 254 kB / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.4194, allocations: 0 / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.4196, allocations: 39.92 kB / 477.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.4196, allocations: 0 / 477.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.4196, allocations: 8 kB / 477.4 MB, free: 4.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.4197, allocations: 7.938 kB / 477.4 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.4197, allocations: 4 kB / 477.4 MB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.4201, allocations: 268.7 kB / 477.6 MB, free: 4.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/0.4202, allocations: 104.8 kB / 477.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.4202, allocations: 0 / 477.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.4203, allocations: 4 kB / 477.7 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-05/0.4204, allocations: 23.92 kB / 477.8 MB, free: 4.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.4204, allocations: 4 kB / 477.8 MB, free: 4.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001899/0.4206, allocations: 172.7 kB / 477.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4206, allocations: 0 / 477.9 MB, free: 4.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003209/0.4209, allocations: 71.77 kB / 478 MB, free: 3.988 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) * 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.0008876/0.4218, allocations: 349.6 kB / 478.4 MB, free: 3.723 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002569/0.4221, allocations: 138.5 kB / 478.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4221, allocations: 0 / 478.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.4222, allocations: 75.86 kB / 478.6 MB, free: 3.516 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002962/0.4225, allocations: 30.61 kB / 478.6 MB, free: 3.488 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008281/0.4234, allocations: 429.7 kB / 479 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003093/0.4237, allocations: 0.7516 MB / 479.8 MB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.4238, allocations: 29.84 kB / 479.8 MB, free: 2.238 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.991e-05/0.4239, allocations: 27.42 kB / 479.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4239, allocations: 0 / 479.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of Templates: time 0.005805/0.4297, allocations: 2.367 MB / 482.2 MB, free: 15.86 MB / 362.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/jenkins/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