Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 47.92 kB / 378.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2569, allocations: 53.35 MB / 431.6 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00376/0.2606, allocations: 2.279 MB / 433.9 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.2628, allocations: 1.251 MB / 435.1 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.2629, allocations: 4 kB / 435.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.2633, allocations: 91.5 kB / 435.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000424/0.2637, allocations: 167.1 kB / 435.4 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002776/0.264, allocations: 119.6 kB / 435.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000374/0.2644, allocations: 298.7 kB / 435.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001965/0.2646, allocations: 72.77 kB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001784/0.2647, allocations: 119.5 kB / 436 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.265, allocations: 127.5 kB / 436.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.265, allocations: 23.94 kB / 436.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.2651, allocations: 55.94 kB / 436.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.432e-05/0.2652, allocations: 55.83 kB / 436.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.2653, allocations: 119.3 kB / 436.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.2657, allocations: 288.1 kB / 436.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2658, allocations: 7.938 kB / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2658, allocations: 0 / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2658, allocations: 0 / 436.6 MB, free: 1.879 MB / 334.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.000839/0.2666, allocations: 493.2 kB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2666, allocations: 8.031 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.2668, allocations: 40.73 kB / 437.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.2672, allocations: 209.9 kB / 437.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.2672, allocations: 12.38 kB / 437.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.791e-05/0.2673, allocations: 20.12 kB / 437.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003336/0.2676, allocations: 153.6 kB / 437.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.2676, allocations: 0 / 437.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.2676, allocations: 15.98 kB / 437.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.2676, allocations: 4 kB / 437.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.2679, allocations: 119.7 kB / 437.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008822/0.2688, allocations: 0.5266 MB / 438.2 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003155/0.2691, allocations: 161.5 kB / 438.4 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.2693, allocations: 84.16 kB / 438.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.2693, allocations: 4.344 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002352/0.2695, allocations: 118.4 kB / 438.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 3.747e-06/0.2695, allocations: 3.984 kB / 438.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005099/0.27, allocations: 233.4 kB / 438.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/0.2701, allocations: 59.41 kB / 438.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/0.2704, allocations: 257 kB / 439.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.2704, allocations: 33.69 kB / 439.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.2705, allocations: 148.3 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.984e-05/0.2706, allocations: 71.44 kB / 439.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.736e-05/0.2706, allocations: 41.66 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.2708, allocations: 338.8 kB / 439.7 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2709, allocations: 51.98 kB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.2711, allocations: 91.33 kB / 439.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.2713, allocations: 141.6 kB / 440 MB, free: 14.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2713, allocations: 0 / 440 MB, free: 14.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003538/0.2717, allocations: 209.4 kB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2717, allocations: 4 kB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2717, allocations: 0 / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.2717, allocations: 4 kB / 440.2 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.2719, allocations: 51.91 kB / 440.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.272, allocations: 7.875 kB / 440.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.698e-05/0.2721, allocations: 19.89 kB / 440.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.2721, allocations: 4 kB / 440.3 MB, free: 14 MB / 350.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.0001446/0.2722, allocations: 152.5 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.2722, allocations: 23.86 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004079/0.2727, allocations: 210 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2727, allocations: 3.938 kB / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.2727, allocations: 0 / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.2727, allocations: 0 / 440.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.273, allocations: 268.4 kB / 441 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.273, allocations: 0 / 441 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001864/0.2731, allocations: 35.98 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.2731, allocations: 4 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.2732, allocations: 4 kB / 441 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.2732, allocations: 7.875 kB / 441 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2732, allocations: 0 / 441 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004983/0.2737, allocations: 286 kB / 441.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.767e-05/0.2737, allocations: 19.84 kB / 441.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.331e-05/0.2737, allocations: 11.94 kB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.2738, allocations: 4 kB / 441.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.2739, allocations: 16.03 kB / 441.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.2739, allocations: 8 kB / 441.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.2741, allocations: 196.5 kB / 441.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2741, allocations: 0 / 441.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.2745, allocations: 63.83 kB / 441.6 MB, free: 12.65 MB / 350.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.nextTimeEvent,lossTable.nextTimeEventScaled) * 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.0016/0.2761, allocations: 412.1 kB / 442 MB, free: 12.4 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003194/0.2764, allocations: 139.8 kB / 442.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2764, allocations: 0 / 442.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.2765, allocations: 70.31 kB / 442.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003273/0.2769, allocations: 48.78 kB / 442.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.2779, allocations: 0.5525 MB / 442.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.2782, allocations: 0.744 MB / 443.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.756e-05/0.2783, allocations: 29.89 kB / 443.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.869e-05/0.2784, allocations: 27.42 kB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2784, allocations: 0 / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of Templates: time 0.007016/0.2854, allocations: 2.841 MB / 446.5 MB, free: 7.926 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 8.6462270130869]