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.001341/0.001341, allocations: 73.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001301/0.001301, allocations: 152 kB / 24.49 MB, free: 3.723 MB / 14.72 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 1.415/1.415, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001571/0.001571, allocations: 48.77 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09135, allocations: 52.17 MB / 371.6 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00373/0.09508, allocations: 2.124 MB / 373.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.09689, allocations: 1.033 MB / 374.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001173/0.097, allocations: 4 kB / 374.7 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003129/0.09732, allocations: 91.5 kB / 374.8 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003103/0.09763, allocations: 127.2 kB / 374.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.09798, allocations: 151.5 kB / 375.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003585/0.09834, allocations: 286.8 kB / 375.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.09852, allocations: 64.78 kB / 375.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.09867, allocations: 107.6 kB / 375.5 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.09888, allocations: 119.4 kB / 375.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.666e-05/0.09891, allocations: 20 kB / 375.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001268/0.09904, allocations: 59.91 kB / 375.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.09913, allocations: 55.78 kB / 375.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.09926, allocations: 99.52 kB / 375.9 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003855/0.09964, allocations: 290.7 kB / 376.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.09965, allocations: 4 kB / 376.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09966, allocations: 0 / 376.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.09966, allocations: 4 kB / 376.2 MB, free: 2.695 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.0008418/0.1005, allocations: 481.5 kB / 376.6 MB, free: 2.195 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1005, allocations: 8.922 kB / 376.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.1007, allocations: 44.66 kB / 376.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.101, allocations: 183.1 kB / 376.9 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.1011, allocations: 16.38 kB / 376.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.1011, allocations: 24.12 kB / 376.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.1015, allocations: 161.4 kB / 377.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1015, allocations: 11.89 kB / 377.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.1015, allocations: 4 kB / 377.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1015, allocations: 4 kB / 377.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002717/0.1018, allocations: 119.9 kB / 377.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008442/0.1026, allocations: 463.9 kB / 377.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.103, allocations: 166.5 kB / 377.8 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.1032, allocations: 80.83 kB / 377.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.1032, allocations: 0 / 377.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.1034, allocations: 118.6 kB / 378 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.1034, allocations: 0 / 378 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.000538/0.104, allocations: 241.7 kB / 378.3 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.104, allocations: 55.39 kB / 378.3 MB, free: 436 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.1043, allocations: 243.2 kB / 378.5 MB, free: 184 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.1043, allocations: 33.7 kB / 378.6 MB, free: 144 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.1045, allocations: 156.5 kB / 378.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/0.1045, allocations: 67.42 kB / 378.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.248e-05/0.1046, allocations: 45.7 kB / 378.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1048, allocations: 334.6 kB / 379.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.1049, allocations: 51.97 kB / 379.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.1051, allocations: 83.41 kB / 379.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.1053, allocations: 151.3 kB / 379.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1053, allocations: 0 / 379.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003779/0.1057, allocations: 212.4 kB / 379.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.1057, allocations: 11.88 kB / 379.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1057, allocations: 0 / 379.7 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.1057, allocations: 7.984 kB / 379.7 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.106, allocations: 39.98 kB / 379.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.106, allocations: 7.938 kB / 379.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.711e-05/0.1061, allocations: 19.83 kB / 379.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.1061, allocations: 8 kB / 379.7 MB, free: 14.92 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.000153/0.1062, allocations: 148.7 kB / 379.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.1063, allocations: 23.86 kB / 379.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004416/0.1067, allocations: 223.3 kB / 380.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.1067, allocations: 4 kB / 380.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1067, allocations: 3.984 kB / 380.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.1067, allocations: 3.938 kB / 380.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002436/0.107, allocations: 201.1 kB / 380.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.107, allocations: 3.984 kB / 380.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.1072, allocations: 35.98 kB / 380.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1072, allocations: 0 / 380.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.1072, allocations: 15.98 kB / 380.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.512e-06/0.1072, allocations: 0 / 380.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1072, allocations: 0 / 380.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000537/0.1077, allocations: 304.7 kB / 380.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.1078, allocations: 31.81 kB / 380.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/0.1078, allocations: 0 / 380.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.131e-05/0.1079, allocations: 8 kB / 380.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.1079, allocations: 19.91 kB / 380.8 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.108, allocations: 12 kB / 380.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.1082, allocations: 188.6 kB / 380.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1082, allocations: 4.062 kB / 381 MB, free: 13.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003069/0.1085, allocations: 59.89 kB / 381 MB, free: 13.59 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 (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.001624/0.1101, allocations: 444.6 kB / 381.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.1104, allocations: 139 kB / 381.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1104, allocations: 0 / 381.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.1106, allocations: 75.91 kB / 381.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.1109, allocations: 59.06 kB / 381.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.1119, allocations: 0.5522 MB / 382.3 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001509/0.1121, allocations: 136.8 kB / 382.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.735e-05/0.1122, allocations: 29.62 kB / 382.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.1122, allocations: 24.48 kB / 382.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1122, allocations: 0 / 382.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Templates: time 0.007157/0.1194, allocations: 2.608 MB / 385.1 MB, free: 9.719 MB / 350.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 8.415409157983959]