Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001281/0.001281, allocations: 73.41 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.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.001378/0.001378, allocations: 160.5 kB / 24.5 MB, free: 3.715 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.41/1.41, allocations: 177.2 MB / 204.9 MB, free: 8.996 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.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 50.95 kB / 325.6 MB, free: 248 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0912/0.09272, allocations: 53.33 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005882/0.09861, allocations: 4.064 MB / 383 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002804/0.1014, allocations: 1.528 MB / 384.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.1016, allocations: 15.88 kB / 384.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004/0.102, allocations: 138.7 kB / 384.6 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005603/0.1026, allocations: 277.7 kB / 384.9 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008784/0.1035, allocations: 439 kB / 385.3 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.1047, allocations: 1.163 MB / 386.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003288/0.105, allocations: 178.2 kB / 386.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006876/0.1057, allocations: 0.518 MB / 387.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006849/0.1064, allocations: 498 kB / 387.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.1065, allocations: 96 kB / 387.8 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/0.1069, allocations: 164 kB / 387.9 MB, free: 6.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003674/0.1072, allocations: 247.2 kB / 388.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006382/0.1079, allocations: 394.3 kB / 388.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001904/0.1098, allocations: 1.14 MB / 389.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1098, allocations: 0 / 389.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1098, allocations: 0 / 389.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.1098, allocations: 0 / 389.7 MB, free: 4.789 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.005161/0.1149, allocations: 1.399 MB / 391.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.115, allocations: 12.03 kB / 391.1 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008149/0.1158, allocations: 116.3 kB / 391.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.117, allocations: 408 kB / 391.6 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.57e-05/0.1171, allocations: 54.38 kB / 391.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002123/0.1173, allocations: 84.08 kB / 391.8 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002609/0.1199, allocations: 0.7958 MB / 392.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.222e-05/0.1199, allocations: 3.984 kB / 392.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.1201, allocations: 35.98 kB / 392.6 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.1201, allocations: 20 kB / 392.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.1233, allocations: 0.8354 MB / 393.4 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006581/0.1299, allocations: 1.862 MB / 395.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.1323, allocations: 0.6909 MB / 396 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/0.1338, allocations: 416.3 kB / 396.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.644e-05/0.1339, allocations: 9 kB / 396.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001784/0.1357, allocations: 0.5399 MB / 397 MB, free: 13.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 3.927e-06/0.1357, allocations: 4 kB / 397 MB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.01728/0.153, allocations: 3.798 MB / 400.8 MB, free: 9.531 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.473e-05/0.153, allocations: 64.34 kB / 400.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008011/0.1538, allocations: 409.8 kB / 401.2 MB, free: 9.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000142/0.154, allocations: 53.7 kB / 401.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.1543, allocations: 281.6 kB / 401.5 MB, free: 8.711 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005292/0.1549, allocations: 400.7 kB / 401.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/0.1553, allocations: 182.9 kB / 402.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000283/0.1556, allocations: 374.8 kB / 402.5 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001507/0.1571, allocations: 414.4 kB / 402.9 MB, free: 7.352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.1588, allocations: 0.5072 MB / 403.4 MB, free: 6.824 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002362/0.1611, allocations: 0.744 MB / 404.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1611, allocations: 0 / 404.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00466/0.1658, allocations: 1.288 MB / 405.4 MB, free: 4.758 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.1658, allocations: 10.97 kB / 405.4 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1658, allocations: 3.984 kB / 405.4 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/0.1674, allocations: 0.5333 MB / 406 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.1687, allocations: 199.7 kB / 406.2 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006137/0.1748, allocations: 3.265 MB / 409.4 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.1763, allocations: 167.9 kB / 409.6 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.593e-05/0.1764, allocations: 39.98 kB / 409.6 MB, free: 392 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,massWithStopAndFriction.stopped,massWithStopAndFriction.mode,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.locked,massWithStopAndFriction.startBackward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,elastoGap.contact,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,9), (1,5), (1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003984/0.1768, allocations: 236.9 kB / 409.9 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.1769, allocations: 75.53 kB / 409.9 MB, free: 72 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003114/0.1772, allocations: 111.2 kB / 410.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.775e-05/0.1773, allocations: 15.94 kB / 410.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.126e-06/0.1773, allocations: 0 / 410.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/0.1773, allocations: 3.984 kB / 410.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005003/0.1823, allocations: 2.137 MB / 412.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-06/0.1823, allocations: 0 / 412.2 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008121/0.1831, allocations: 175.7 kB / 412.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.1841, allocations: 0.5023 MB / 412.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.172e-05/0.1842, allocations: 35.97 kB / 412.9 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003839/0.188, allocations: 3.049 MB / 416 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.188, allocations: 4 kB / 416 MB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00381/0.1918, allocations: 1.761 MB / 417.7 MB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003856/0.1922, allocations: 167.3 kB / 417.9 MB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.1924, allocations: 32 kB / 417.9 MB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.1937, allocations: 203.9 kB / 418.1 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009279/0.1947, allocations: 388.2 kB / 418.5 MB, free: 7.219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/0.1948, allocations: 43.95 kB / 418.5 MB, free: 7.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003151/0.1951, allocations: 283.1 kB / 418.8 MB, free: 6.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1951, allocations: 3.938 kB / 418.8 MB, free: 6.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007532/0.1958, allocations: 243.9 kB / 419.1 MB, free: 6.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,7), (1,8), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001465/0.1973, allocations: 434 kB / 419.5 MB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.1997, allocations: 1.079 MB / 420.6 MB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1997, allocations: 4.062 kB / 420.6 MB, free: 5.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.2013, allocations: 0.7153 MB / 421.3 MB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008391/0.2021, allocations: 161.5 kB / 421.4 MB, free: 4.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003978/0.2061, allocations: 2.015 MB / 423.5 MB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.2065, allocations: 349.5 kB / 423.8 MB, free: 1.965 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003135/0.2068, allocations: 81.66 kB / 423.9 MB, free: 1.883 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002021/0.207, allocations: 68.48 kB / 424 MB, free: 1.816 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.207, allocations: 0 / 424 MB, free: 1.816 MB / 382.1 MB Notification: Performance of Templates: time 0.02613/0.2331, allocations: 15.92 MB / 439.9 MB, free: 2.016 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.019115288974717]