Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.001577/0.001577, allocations: 74.58 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.001682/0.001682, allocations: 152.5 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.42/1.42, 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.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 47.89 kB / 319.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09379, allocations: 52.15 MB / 371.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005699/0.09949, allocations: 3.927 MB / 375.5 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002578/0.1021, allocations: 1.329 MB / 376.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.1023, allocations: 19.88 kB / 376.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.1027, allocations: 114.8 kB / 376.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004156/0.1031, allocations: 234 kB / 377.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1041, allocations: 438.2 kB / 377.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.1053, allocations: 1.127 MB / 378.7 MB, free: 140 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.1056, allocations: 178.2 kB / 378.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000619/0.1062, allocations: 498.5 kB / 379.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006324/0.1069, allocations: 482.1 kB / 379.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.107, allocations: 92 kB / 380 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002903/0.1073, allocations: 140 kB / 380.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002629/0.1076, allocations: 227.3 kB / 380.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004045/0.108, allocations: 386.4 kB / 380.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.1091, allocations: 1.07 MB / 381.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1091, allocations: 0 / 381.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1091, allocations: 0 / 381.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.1091, allocations: 4 kB / 381.8 MB, free: 13.08 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.003346/0.1125, allocations: 1.353 MB / 383.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1125, allocations: 12.92 kB / 383.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.1127, allocations: 92.38 kB / 383.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006974/0.1134, allocations: 392 kB / 383.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.1135, allocations: 50.38 kB / 383.6 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.1136, allocations: 72.33 kB / 383.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.1153, allocations: 0.8155 MB / 384.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.1154, allocations: 7.953 kB / 384.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.403e-05/0.1155, allocations: 28 kB / 384.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.1155, allocations: 16 kB / 384.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002131/0.1176, allocations: 0.8588 MB / 385.4 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004154/0.1218, allocations: 1.843 MB / 387.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.1233, allocations: 0.6811 MB / 388 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009956/0.1243, allocations: 436.3 kB / 388.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.56e-05/0.1244, allocations: 13 kB / 388.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001231/0.1256, allocations: 0.5439 MB / 389 MB, free: 5.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=86): time 2.845e-06/0.1256, allocations: 0 / 389 MB, free: 5.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.01151/0.1371, allocations: 3.86 MB / 392.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1371, allocations: 60.41 kB / 392.9 MB, free: 1.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.1376, allocations: 385.5 kB / 393.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.055e-05/0.1377, allocations: 57.69 kB / 393.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.1379, allocations: 277.5 kB / 393.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.1382, allocations: 380.8 kB / 393.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.1385, allocations: 190.9 kB / 394.1 MB, free: 496 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.1387, allocations: 366.8 kB / 394.5 MB, free: 120 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.1398, allocations: 434.5 kB / 394.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.1409, allocations: 0.5345 MB / 395.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.1427, allocations: 0.783 MB / 396.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1427, allocations: 0 / 396.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003215/0.1459, allocations: 1.346 MB / 397.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.146, allocations: 10.81 kB / 397.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.146, allocations: 0 / 397.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.1472, allocations: 0.6503 MB / 398.2 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008373/0.148, allocations: 207.7 kB / 398.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004847/0.1528, allocations: 3.293 MB / 401.7 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.1541, allocations: 171.9 kB / 401.9 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.791e-05/0.1542, allocations: 35.98 kB / 401.9 MB, free: 8.457 MB / 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,7), (1,5), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003879/0.1545, allocations: 229.6 kB / 402.2 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1547, allocations: 75.58 kB / 402.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002291/0.1549, allocations: 98.91 kB / 402.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.1549, allocations: 8 kB / 402.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1549, allocations: 0 / 402.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.1549, allocations: 3.984 kB / 402.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004781/0.1597, allocations: 2.179 MB / 404.5 MB, free: 5.789 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.1597, allocations: 4 kB / 404.5 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/0.1606, allocations: 179.9 kB / 404.7 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.1617, allocations: 0.6192 MB / 405.3 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.254e-05/0.1618, allocations: 31.97 kB / 405.4 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004086/0.1659, allocations: 3.089 MB / 408.4 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1659, allocations: 11.91 kB / 408.5 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004401/0.1703, allocations: 1.845 MB / 410.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004233/0.1707, allocations: 155.4 kB / 410.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.1708, allocations: 28 kB / 410.5 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.1722, allocations: 207.7 kB / 410.7 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000949/0.1732, allocations: 392.2 kB / 411.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.615e-05/0.1733, allocations: 47.95 kB / 411.1 MB, free: 14.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003021/0.1736, allocations: 255.2 kB / 411.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1736, allocations: 0 / 411.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007889/0.1744, allocations: 244 kB / 411.6 MB, free: 14.5 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 (89): * Single equations (assignments): 86 * 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,6), (1,6), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003021/0.1747, allocations: 173 kB / 411.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002758/0.1774, allocations: 1.114 MB / 412.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.1774, allocations: 8.062 kB / 412.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001726/0.1792, allocations: 0.7425 MB / 413.6 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008392/0.18, allocations: 129.5 kB / 413.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.184, allocations: 1.96 MB / 415.7 MB, free: 10.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.1844, allocations: 332.8 kB / 416 MB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003234/0.1847, allocations: 85.33 kB / 416.1 MB, free: 9.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.1849, allocations: 64.48 kB / 416.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1849, allocations: 0 / 416.2 MB, free: 9.793 MB / 382.1 MB Notification: Performance of Templates: time 0.02691/0.2118, allocations: 15.7 MB / 431.9 MB, free: 10.21 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.094597443006933]