Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005098/0.005098, allocations: 148.3 kB / 24.68 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8401/0.8401, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 319.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.584e-05, allocations: 6.219 kB / 319.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002429/0.002455, allocations: 2.127 MB / 321.8 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.003632, allocations: 1.029 MB / 322.8 MB, free: 2.68 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.891e-05/0.003731, allocations: 4 kB / 322.8 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.004054, allocations: 91.48 kB / 322.9 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.004326, allocations: 131 kB / 323 MB, free: 2.457 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.004599, allocations: 146.4 kB / 323.2 MB, free: 2.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.004847, allocations: 302.5 kB / 323.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.005006, allocations: 68.7 kB / 323.5 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.005144, allocations: 159.7 kB / 323.7 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001315/0.005276, allocations: 103.8 kB / 323.8 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.688e-05/0.005302, allocations: 19.94 kB / 323.8 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.415e-05/0.005397, allocations: 51.97 kB / 323.9 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.487e-05/0.005461, allocations: 59.77 kB / 323.9 MB, free: 1.559 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.412e-05/0.005526, allocations: 71.83 kB / 324 MB, free: 1.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.005814, allocations: 295 kB / 324.3 MB, free: 1.199 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.005818, allocations: 3.984 kB / 324.3 MB, free: 1.195 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.005819, allocations: 4 kB / 324.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.005825, allocations: 0 / 324.3 MB, free: 1.191 MB / 282.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.0008335/0.006658, allocations: 484.7 kB / 324.8 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.006696, allocations: 8.922 kB / 324.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.006804, allocations: 32.75 kB / 324.8 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.007066, allocations: 190.3 kB / 325 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.007084, allocations: 16.38 kB / 325 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.007113, allocations: 24.31 kB / 325 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002187/0.007332, allocations: 161.7 kB / 325.2 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.007344, allocations: 11.88 kB / 325.2 MB, free: 228 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.007361, allocations: 11.98 kB / 325.2 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.007367, allocations: 4 kB / 325.2 MB, free: 212 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.007527, allocations: 115.9 kB / 325.3 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/0.008111, allocations: 475.8 kB / 325.8 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002237/0.008334, allocations: 154.5 kB / 326 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.064e-05/0.008425, allocations: 84.81 kB / 326 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.008441, allocations: 0 / 326 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.008587, allocations: 115.3 kB / 326.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.302e-06/0.008589, allocations: 0 / 326.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003372/0.008926, allocations: 241.8 kB / 326.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.008957, allocations: 51.41 kB / 326.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.009114, allocations: 251.2 kB / 326.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.009128, allocations: 33.7 kB / 326.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.928e-05/0.009197, allocations: 152.3 kB / 326.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.786e-05/0.009235, allocations: 63.44 kB / 326.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.752e-05/0.009283, allocations: 45.7 kB / 327 MB, free: 14.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.843e-05/0.009361, allocations: 330.8 kB / 327.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.055e-05/0.009432, allocations: 51.97 kB / 327.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.329e-05/0.009515, allocations: 92 kB / 327.4 MB, free: 13.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.009675, allocations: 158.3 kB / 327.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.009677, allocations: 0 / 327.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002054/0.009882, allocations: 209.3 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.009896, allocations: 4 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.009905, allocations: 7.984 kB / 327.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.009916, allocations: 3.984 kB / 327.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.01005, allocations: 47.92 kB / 327.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.01005, allocations: 4 kB / 327.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.776e-05/0.0101, allocations: 15.84 kB / 327.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.01011, allocations: 12.09 kB / 327.9 MB, free: 13.41 MB / 298.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.094e-05/0.0102, allocations: 146.1 kB / 328 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.01022, allocations: 19.91 kB / 328 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.01047, allocations: 222.5 kB / 328.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.01047, allocations: 7.984 kB / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.01048, allocations: 0 / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01048, allocations: 0 / 328.3 MB, free: 13.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.01064, allocations: 217 kB / 328.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.01064, allocations: 0 / 328.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.01076, allocations: 43.92 kB / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01076, allocations: 4 kB / 328.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.01077, allocations: 4 kB / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01077, allocations: 0 / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01077, allocations: 3.938 kB / 328.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.01109, allocations: 300.8 kB / 328.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.665e-05/0.01112, allocations: 31.81 kB / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.01114, allocations: 0 / 328.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.835e-05/0.01118, allocations: 8 kB / 328.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.01121, allocations: 15.97 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.01123, allocations: 8 kB / 328.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001033/0.01134, allocations: 188.7 kB / 329.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01134, allocations: 0 / 329.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001829/0.01152, allocations: 59.89 kB / 329.1 MB, free: 12.09 MB / 298.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.0006944/0.01221, allocations: 446.5 kB / 329.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002086/0.01242, allocations: 139 kB / 329.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01242, allocations: 4 kB / 329.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.681e-05/0.01251, allocations: 75.84 kB / 329.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002216/0.01273, allocations: 56.83 kB / 329.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006665/0.0134, allocations: 0.5237 MB / 330.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.075e-05/0.01349, allocations: 140.8 kB / 330.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.01354, allocations: 24.48 kB / 330.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01354, allocations: 0 / 330.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of Templates: time 0.003867/0.0174, allocations: 3.215 MB / 333.7 MB, free: 7.625 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.2033813102170825]