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.001301/0.001301, allocations: 85.36 kB / 20.68 MB, free: 1.035 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.001402/0.001402, allocations: 164.8 kB / 23.95 MB, free: 4.168 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.435/1.435, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.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 1.373e-06/1.373e-06, allocations: 0 / 325 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.605e-05/2.742e-05, allocations: 10.81 kB / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003532/0.00356, allocations: 2.155 MB / 327.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002199/0.005759, allocations: 1.177 MB / 328.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.005866, allocations: 7.25 kB / 328.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003516/0.006217, allocations: 94.84 kB / 328.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.00666, allocations: 169.3 kB / 328.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000273/0.006933, allocations: 118.2 kB / 328.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.007314, allocations: 306.7 kB / 329.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.0075, allocations: 67.09 kB / 329.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002316/0.007732, allocations: 162.2 kB / 329.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.007926, allocations: 107.3 kB / 329.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.007966, allocations: 18.34 kB / 329.4 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.008105, allocations: 53.8 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.008205, allocations: 59.53 kB / 329.5 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.008324, allocations: 73.67 kB / 329.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004562/0.008781, allocations: 298.5 kB / 329.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.008783, allocations: 1.312 kB / 329.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.008784, allocations: 0 / 329.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.00879, allocations: 0 / 329.9 MB, free: 13.66 MB / 302.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.0008712/0.009661, allocations: 493.2 kB / 330.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.009695, allocations: 13.44 kB / 330.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.009847, allocations: 38.5 kB / 330.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.01016, allocations: 197.1 kB / 330.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.01019, allocations: 15.78 kB / 330.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.01023, allocations: 16.2 kB / 330.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.01059, allocations: 159.7 kB / 330.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.01061, allocations: 5.375 kB / 330.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.316e-05/0.01063, allocations: 5.25 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.01064, allocations: 4.375 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.01092, allocations: 123.5 kB / 330.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008395/0.01176, allocations: 472.2 kB / 331.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/0.0121, allocations: 161.6 kB / 331.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001609/0.01226, allocations: 85.72 kB / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.01228, allocations: 2.188 kB / 331.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002246/0.01251, allocations: 116.5 kB / 331.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.01251, allocations: 0 / 331.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005532/0.01306, allocations: 241.3 kB / 332 MB, free: 12.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.0131, allocations: 57.41 kB / 332 MB, free: 12.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000269/0.01337, allocations: 257.4 kB / 332.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.01341, allocations: 30.83 kB / 332.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.01352, allocations: 144.4 kB / 332.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.621e-05/0.01358, allocations: 72.19 kB / 332.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.093e-05/0.01366, allocations: 48.72 kB / 332.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.01381, allocations: 328.9 kB / 332.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.01394, allocations: 53.09 kB / 333 MB, free: 11.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.01409, allocations: 99.92 kB / 333.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002845/0.01437, allocations: 155.6 kB / 333.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.01438, allocations: 0 / 333.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003731/0.01475, allocations: 212.2 kB / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.01476, allocations: 5.125 kB / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.01477, allocations: 1.125 kB / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.01479, allocations: 2.25 kB / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.01502, allocations: 52.69 kB / 333.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/0.01502, allocations: 2.406 kB / 333.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.01512, allocations: 20.77 kB / 333.5 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.01514, allocations: 5.625 kB / 333.5 MB, free: 11 MB / 302.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.0001546/0.0153, allocations: 153.6 kB / 333.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.071e-05/0.01534, allocations: 21.89 kB / 333.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004518/0.01579, allocations: 215.5 kB / 333.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.01579, allocations: 2.656 kB / 333.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.0158, allocations: 0 / 333.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.0158, allocations: 1.344 kB / 333.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.01606, allocations: 210.8 kB / 334.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.01606, allocations: 4 kB / 334.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.01626, allocations: 43.41 kB / 334.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.01626, allocations: 1.062 kB / 334.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.191e-05/0.01628, allocations: 5.219 kB / 334.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.01628, allocations: 0.9688 kB / 334.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01629, allocations: 1.375 kB / 334.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005741/0.01686, allocations: 300.9 kB / 334.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.0169, allocations: 23.52 kB / 334.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.01693, allocations: 5.344 kB / 334.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.664e-05/0.01702, allocations: 6.141 kB / 334.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.01708, allocations: 18.08 kB / 334.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.01711, allocations: 9.109 kB / 334.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001961/0.0173, allocations: 197.6 kB / 334.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.0173, allocations: 0 / 334.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.0176, allocations: 61.86 kB / 334.8 MB, free: 10.15 MB / 302.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 (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.001692/0.01929, allocations: 451.9 kB / 335.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003338/0.01962, allocations: 142.7 kB / 335.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.01962, allocations: 4.188 kB / 335.3 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.01978, allocations: 76.25 kB / 335.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003482/0.02013, allocations: 52.03 kB / 335.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009862/0.02111, allocations: 0.4948 MB / 336 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.02127, allocations: 141.1 kB / 336.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.02138, allocations: 33.52 kB / 336.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.02144, allocations: 25.75 kB / 336.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of SimCode: time 3.6e-07/0.02144, allocations: 4 kB / 336.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of Templates: time 0.007028/0.02847, allocations: 2.651 MB / 338.8 MB, free: 7.367 MB / 302.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.382297039031982]