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.001291/0.001291, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.0009842/0.0009842, allocations: 165.4 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9991/0.9991, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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 1.623e-06/1.623e-06, allocations: 0 / 272.9 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.367e-05, allocations: 2.312 kB / 272.9 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002573/0.002597, allocations: 2.296 MB / 275.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.004016, allocations: 1.196 MB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.004125, allocations: 7.938 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003115/0.004436, allocations: 95.48 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.004812, allocations: 170.9 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.005083, allocations: 115.5 kB / 276.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.005357, allocations: 310.5 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.005496, allocations: 68.77 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.005647, allocations: 155.7 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.005788, allocations: 103.7 kB / 277.4 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.005813, allocations: 16 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.005924, allocations: 59.86 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.38e-05/0.005988, allocations: 59.77 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.959e-05/0.006067, allocations: 79.77 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002633/0.00633, allocations: 215.2 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.006334, allocations: 4 kB / 277.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.006335, allocations: 4 kB / 277.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.00634, allocations: 0 / 277.9 MB, free: 12.6 MB / 266.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.0006215/0.006961, allocations: 0.5817 MB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.006995, allocations: 8.031 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.007141, allocations: 52.69 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.007351, allocations: 200.1 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.00737, allocations: 8.375 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.768e-05/0.007398, allocations: 24.38 kB / 278.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.007631, allocations: 138.7 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.007644, allocations: 3.938 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.007659, allocations: 7.984 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.007667, allocations: 4 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.007798, allocations: 75.72 kB / 279 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.008413, allocations: 0.5069 MB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/0.008662, allocations: 138.8 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.008766, allocations: 55.66 kB / 279.7 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.008784, allocations: 4.344 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.008987, allocations: 108.2 kB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.008988, allocations: 0 / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002872/0.009275, allocations: 185.4 kB / 280 MB, free: 10.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.009306, allocations: 55.41 kB / 280 MB, free: 10.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001564/0.009462, allocations: 274.7 kB / 280.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.009477, allocations: 29.7 kB / 280.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.00956, allocations: 207 kB / 280.5 MB, free: 9.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.0096, allocations: 67.44 kB / 280.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.009657, allocations: 43.36 kB / 280.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.009787, allocations: 0.5079 MB / 281.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.336e-05/0.00986, allocations: 31.98 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.758e-05/0.009938, allocations: 75.38 kB / 281.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.01007, allocations: 125.6 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01007, allocations: 0 / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001862/0.01025, allocations: 169.4 kB / 281.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.01027, allocations: 4 kB / 281.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.01027, allocations: 3.938 kB / 281.5 MB, free: 8.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.01029, allocations: 7.984 kB / 281.5 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.01044, allocations: 39.98 kB / 281.6 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.01045, allocations: 4 kB / 281.6 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.323e-05/0.0105, allocations: 15.89 kB / 281.6 MB, free: 8.637 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.01051, allocations: 8 kB / 281.6 MB, free: 8.629 MB / 266.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 ($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.312e-05/0.0106, allocations: 176.5 kB / 281.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.842e-05/0.01063, allocations: 31.86 kB / 281.8 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003163/0.01095, allocations: 171.3 kB / 282 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.01095, allocations: 4 kB / 282 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.01096, allocations: 0 / 282 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01096, allocations: 0 / 282 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.01115, allocations: 220.4 kB / 282.2 MB, free: 7.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01115, allocations: 4 kB / 282.2 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.01128, allocations: 39.92 kB / 282.2 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.01128, allocations: 4 kB / 282.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.01129, allocations: 3.984 kB / 282.2 MB, free: 7.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.0113, allocations: 4 kB / 282.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.0113, allocations: 0 / 282.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.01157, allocations: 251.1 kB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.01159, allocations: 23.84 kB / 282.5 MB, free: 7.645 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.01161, allocations: 4 kB / 282.5 MB, free: 7.641 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.69e-05/0.01166, allocations: 4 kB / 282.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.78e-05/0.0117, allocations: 15.97 kB / 282.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.01171, allocations: 4 kB / 282.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.705e-05/0.01181, allocations: 205.5 kB / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01181, allocations: 0 / 282.7 MB, free: 7.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.012, allocations: 67.86 kB / 282.8 MB, free: 7.352 MB / 266.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 (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.0007892/0.01279, allocations: 389.6 kB / 283.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002097/0.013, allocations: 117.5 kB / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.013, allocations: 0 / 283.3 MB, free: 6.992 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.858e-05/0.01308, allocations: 70.59 kB / 283.4 MB, free: 6.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002305/0.01331, allocations: 53.39 kB / 283.4 MB, free: 6.871 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008571/0.01417, allocations: 482.6 kB / 283.9 MB, free: 6.363 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.278e-05/0.01422, allocations: 83.97 kB / 284 MB, free: 6.262 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.491e-05/0.01428, allocations: 21.94 kB / 284 MB, free: 6.242 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.056e-05/0.01433, allocations: 28.5 kB / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01434, allocations: 0 / 284 MB, free: 6.215 MB / 266.7 MB Notification: Performance of Templates: time 0.005501/0.01984, allocations: 2.857 MB / 286.9 MB, free: 3.402 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 5.851144090294838]