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) 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 3.2.3+maint.om/package.mo", uses=false) 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=1440000,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=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 114.5 kB / 17.73 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001511/0.001512, allocations: 187 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB 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.001309/0.001309, allocations: 55.92 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003585/0.1136, allocations: 2.228 MB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.1152, allocations: 0.9594 MB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1153, allocations: 7.938 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004641/0.1158, allocations: 95.55 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.1162, allocations: 123.2 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.1168, allocations: 127.7 kB / 378.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004495/0.1173, allocations: 286.8 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.1175, allocations: 88.56 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.1178, allocations: 115.6 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.118, allocations: 119.5 kB / 379.3 MB, free: 448 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.516e-05/0.1181, allocations: 20 kB / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001689/0.1182, allocations: 47.98 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1183, allocations: 59.77 kB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.1185, allocations: 119.3 kB / 379.5 MB, free: 200 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.233/0.3515, allocations: 280.8 kB / 379.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3515, allocations: 1.562 kB / 379.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3516, allocations: 0 / 379.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.3516, allocations: 0.8125 kB / 379.8 MB, free: 10.28 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.0008891/0.3525, allocations: 0.5482 MB / 380.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3525, allocations: 12.44 kB / 380.3 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.3527, allocations: 36.78 kB / 380.4 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.3531, allocations: 250.5 kB / 380.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3531, allocations: 10.62 kB / 380.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.3531, allocations: 19.03 kB / 380.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003271/0.3535, allocations: 168.5 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3535, allocations: 0 / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.3535, allocations: 4.906 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3535, allocations: 7.344 kB / 380.8 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002363/0.3538, allocations: 117.3 kB / 380.9 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008323/0.3546, allocations: 0.565 MB / 381.5 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.3549, allocations: 166.8 kB / 381.7 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.3551, allocations: 89.47 kB / 381.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3551, allocations: 3.266 kB / 381.8 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.3554, allocations: 109.9 kB / 381.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.294e-06/0.3554, allocations: 0 / 381.9 MB, free: 9.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.000533/0.3559, allocations: 236.8 kB / 382.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.3559, allocations: 55.59 kB / 382.1 MB, free: 9.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.3562, allocations: 252.8 kB / 382.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.3563, allocations: 32.83 kB / 382.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.581e-05/0.3564, allocations: 148.8 kB / 382.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.3564, allocations: 70.64 kB / 382.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.3565, allocations: 42.05 kB / 382.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.565e-05/0.3566, allocations: 337.1 kB / 383 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3567, allocations: 54.47 kB / 383.1 MB, free: 8.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.3569, allocations: 93.61 kB / 383.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002815/0.3572, allocations: 148.8 kB / 383.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3572, allocations: 0.5312 kB / 383.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003713/0.3575, allocations: 206.8 kB / 383.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3576, allocations: 6.438 kB / 383.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3576, allocations: 1.25 kB / 383.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.3576, allocations: 2.688 kB / 383.5 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.3578, allocations: 46.83 kB / 383.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.3578, allocations: 5.844 kB / 383.6 MB, free: 8.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.224e-05/0.3579, allocations: 20.61 kB / 383.6 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.358, allocations: 11 kB / 383.6 MB, free: 8.32 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.0001085/0.3581, allocations: 150.9 kB / 383.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.3581, allocations: 21.7 kB / 383.8 MB, free: 8.191 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.499e-05/0.3582, allocations: 30.03 kB / 383.8 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3582, allocations: 3.219 kB / 383.8 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3582, allocations: 3.5 kB / 383.8 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3582, allocations: 6.656 kB / 383.8 MB, free: 8.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.3585, allocations: 287.5 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3585, allocations: 1.359 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.3587, allocations: 31.66 kB / 384.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3587, allocations: 6.062 kB / 384.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3587, allocations: 6.25 kB / 384.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.3587, allocations: 0.9062 kB / 384.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3587, allocations: 0.6094 kB / 384.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005108/0.3592, allocations: 289.8 kB / 384.4 MB, free: 7.895 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.3593, allocations: 96.92 kB / 384.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.3593, allocations: 6.375 kB / 384.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.493e-05/0.3594, allocations: 9.625 kB / 384.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.3595, allocations: 14.5 kB / 384.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.3595, allocations: 5.75 kB / 384.5 MB, free: 7.781 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.3597, allocations: 190.6 kB / 384.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3597, allocations: 1.594 kB / 384.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002809/0.3599, allocations: 59.25 kB / 384.8 MB, free: 7.695 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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.0009373/0.3609, allocations: 424 kB / 385.2 MB, free: 7.387 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.3612, allocations: 145.8 kB / 385.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3612, allocations: 0 / 385.3 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.3614, allocations: 76.84 kB / 385.4 MB, free: 7.379 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.3617, allocations: 47.58 kB / 385.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008987/0.3626, allocations: 0.534 MB / 386 MB, free: 7.066 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.3629, allocations: 0.7472 MB / 386.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.363, allocations: 31.81 kB / 386.8 MB, free: 6.363 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.3631, allocations: 23.02 kB / 386.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3631, allocations: 0 / 386.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of Templates: time 0.007975/0.371, allocations: 2.684 MB / 389.5 MB, free: 6.109 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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) 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) Reference file matches