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.001392/0.001392, allocations: 100.3 kB / 18.39 MB, free: 4.66 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.001762/0.001762, allocations: 188.2 kB / 19.33 MB, free: 3.738 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.476/1.476, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001288/0.001288, allocations: 55.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08527/0.08657, allocations: 46.61 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003838/0.09044, allocations: 2.241 MB / 378 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.09227, allocations: 0.9554 MB / 379 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002013/0.09249, allocations: 4 kB / 379 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004104/0.09295, allocations: 95.5 kB / 379.1 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004439/0.09341, allocations: 127.3 kB / 379.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.09387, allocations: 131.6 kB / 379.3 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004098/0.09429, allocations: 278.8 kB / 379.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.09453, allocations: 88.56 kB / 379.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.09478, allocations: 119.6 kB / 379.8 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.09502, allocations: 123.5 kB / 379.9 MB, free: 440 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.352e-05/0.09509, allocations: 20 kB / 380 MB, free: 420 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.09528, allocations: 47.98 kB / 380 MB, free: 372 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.919e-05/0.09538, allocations: 51.83 kB / 380.1 MB, free: 320 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.09556, allocations: 119.3 kB / 380.2 MB, free: 200 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1719/0.2674, allocations: 285.7 kB / 380.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.2675, allocations: 1.594 kB / 380.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.2675, allocations: 0 / 380.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.693e-05/0.2675, allocations: 0.5938 kB / 380.4 MB, free: 10.25 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.0007645/0.2683, allocations: 0.5426 MB / 381 MB, free: 9.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.2684, allocations: 9.922 kB / 381 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.2685, allocations: 32.02 kB / 381 MB, free: 9.832 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.2689, allocations: 256.2 kB / 381.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.2689, allocations: 11.61 kB / 381.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.2689, allocations: 19.03 kB / 381.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003218/0.2693, allocations: 169.6 kB / 381.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.2693, allocations: 0 / 381.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.2693, allocations: 5.891 kB / 381.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.2693, allocations: 4.891 kB / 381.5 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.2696, allocations: 121 kB / 381.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008257/0.2704, allocations: 0.553 MB / 382.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.2707, allocations: 164.8 kB / 382.3 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.2709, allocations: 87.58 kB / 382.4 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.2709, allocations: 6.031 kB / 382.4 MB, free: 9.246 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.2711, allocations: 121 kB / 382.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.2711, allocations: 0 / 382.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004962/0.2716, allocations: 233.5 kB / 382.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.2717, allocations: 54.72 kB / 382.8 MB, free: 9.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.2719, allocations: 256.7 kB / 383.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.272, allocations: 29.92 kB / 383.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.103e-05/0.272, allocations: 144.9 kB / 383.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.2721, allocations: 68.16 kB / 383.3 MB, free: 8.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.138e-05/0.2722, allocations: 40.02 kB / 383.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.404e-05/0.2722, allocations: 340.5 kB / 383.7 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.2724, allocations: 52.91 kB / 383.7 MB, free: 8.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/0.2725, allocations: 92.02 kB / 383.8 MB, free: 8.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.2728, allocations: 141.5 kB / 384 MB, free: 8.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2728, allocations: 4.594 kB / 384 MB, free: 8.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000357/0.2732, allocations: 212.3 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2732, allocations: 5.281 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.2732, allocations: 1.531 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2732, allocations: 2.25 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.2734, allocations: 46.89 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2735, allocations: 1.219 kB / 384.2 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.828e-05/0.2736, allocations: 21.66 kB / 384.2 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.2736, allocations: 13.06 kB / 384.3 MB, free: 8.336 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 9.949e-05/0.2737, allocations: 147.7 kB / 384.4 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.2737, allocations: 25.5 kB / 384.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.072e-05/0.2738, allocations: 29.23 kB / 384.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2738, allocations: 6.219 kB / 384.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2738, allocations: 0 / 384.5 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.2738, allocations: 5.531 kB / 384.5 MB, free: 8.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.2741, allocations: 282.3 kB / 384.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2741, allocations: 0 / 384.7 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.2743, allocations: 38.88 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2743, allocations: 1.312 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.2743, allocations: 9.344 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.123e-06/0.2743, allocations: 1.5 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2743, allocations: 0.7031 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004443/0.2747, allocations: 288 kB / 385.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.2748, allocations: 100.5 kB / 385.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.2748, allocations: 5.906 kB / 385.2 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.038e-05/0.2749, allocations: 7.219 kB / 385.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.275, allocations: 18.81 kB / 385.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.051e-05/0.275, allocations: 5.562 kB / 385.2 MB, free: 7.797 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001602/0.2752, allocations: 187.7 kB / 385.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2752, allocations: 3.469 kB / 385.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2755, allocations: 52.75 kB / 385.4 MB, free: 7.719 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.0008764/0.2763, allocations: 411.1 kB / 385.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.2767, allocations: 150.5 kB / 386 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2767, allocations: 1.531 kB / 386 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.2768, allocations: 75.34 kB / 386.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.2772, allocations: 51.48 kB / 386.1 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008862/0.278, allocations: 0.5653 MB / 386.7 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.2782, allocations: 0.7461 MB / 387.4 MB, free: 6.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.045e-05/0.2783, allocations: 27.16 kB / 387.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2783, allocations: 0 / 387.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of Templates: time 0.006034/0.2844, allocations: 3.19 MB / 390.6 MB, free: 5.996 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/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