Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002287/0.002287, allocations: 77.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002397/0.002397, allocations: 160.8 kB / 24.5 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 177.1 MB / 204.7 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 62.06 kB / 325.5 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1053, allocations: 53.39 MB / 378.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00671/0.112, allocations: 4.06 MB / 383 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00369/0.1157, allocations: 1.531 MB / 384.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005959/0.1163, allocations: 11.94 kB / 384.5 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005901/0.1169, allocations: 134.7 kB / 384.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.118, allocations: 277.7 kB / 384.9 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.1193, allocations: 439.2 kB / 385.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001591/0.1209, allocations: 1.174 MB / 386.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000443/0.1214, allocations: 178.2 kB / 386.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1224, allocations: 0.5103 MB / 387.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000948/0.1233, allocations: 494 kB / 387.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002929/0.1236, allocations: 99.98 kB / 387.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005136/0.1241, allocations: 163.9 kB / 388 MB, free: 6.363 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003878/0.1245, allocations: 247.3 kB / 388.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006698/0.1252, allocations: 394.3 kB / 388.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001621/0.1268, allocations: 1.14 MB / 389.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1268, allocations: 0 / 389.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1268, allocations: 0 / 389.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.732e-05/0.1269, allocations: 0 / 389.7 MB, free: 4.59 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.004096/0.131, allocations: 1.399 MB / 391.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.131, allocations: 15.98 kB / 391.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006012/0.1316, allocations: 116.3 kB / 391.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000898/0.1325, allocations: 408 kB / 391.6 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.248e-05/0.1326, allocations: 58.38 kB / 391.7 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.1327, allocations: 80.08 kB / 391.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/0.1345, allocations: 0.7959 MB / 392.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.966e-05/0.1346, allocations: 0 / 392.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.087e-05/0.1346, allocations: 28 kB / 392.6 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.1347, allocations: 16 kB / 392.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.1367, allocations: 0.8431 MB / 393.5 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004642/0.1414, allocations: 1.87 MB / 395.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/0.1431, allocations: 0.6784 MB / 396 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009997/0.1441, allocations: 420.2 kB / 396.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.702e-05/0.1441, allocations: 16.94 kB / 396.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001242/0.1454, allocations: 0.5322 MB / 397 MB, free: 13.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=90): time 1.261e-05/0.1454, allocations: 4 kB / 397 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.01183/0.1572, allocations: 3.806 MB / 400.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/0.1573, allocations: 60.41 kB / 400.8 MB, free: 9.262 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005136/0.1578, allocations: 409.8 kB / 401.2 MB, free: 8.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.1579, allocations: 57.69 kB / 401.3 MB, free: 8.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.1581, allocations: 281.6 kB / 401.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003485/0.1585, allocations: 396.7 kB / 402 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003294/0.1588, allocations: 182.9 kB / 402.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.159, allocations: 374.8 kB / 402.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.16, allocations: 414.4 kB / 402.9 MB, free: 7.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.1611, allocations: 0.511 MB / 403.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00179/0.1629, allocations: 0.744 MB / 404.2 MB, free: 5.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1629, allocations: 0 / 404.2 MB, free: 5.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00324/0.1662, allocations: 1.288 MB / 405.5 MB, free: 4.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1662, allocations: 8 kB / 405.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1662, allocations: 0 / 405.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.1673, allocations: 0.5372 MB / 406 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008166/0.1682, allocations: 195.8 kB / 406.2 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00459/0.1727, allocations: 3.257 MB / 409.4 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.174, allocations: 172 kB / 409.6 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.85e-05/0.1741, allocations: 43.92 kB / 409.7 MB, free: 204 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.000409/0.1745, allocations: 233.6 kB / 409.9 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.1747, allocations: 75.53 kB / 410 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.1749, allocations: 103.1 kB / 410.1 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.1749, allocations: 19.88 kB / 410.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.175, allocations: 0 / 410.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.175, allocations: 7.969 kB / 410.1 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004824/0.1798, allocations: 2.141 MB / 412.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.1798, allocations: 0 / 412.2 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008458/0.1806, allocations: 171.8 kB / 412.4 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.1817, allocations: 0.5024 MB / 412.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.1818, allocations: 35.97 kB / 412.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004211/0.186, allocations: 3.046 MB / 416 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.1861, allocations: 4 kB / 416 MB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00408/0.1901, allocations: 1.757 MB / 417.7 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004568/0.1906, allocations: 167.3 kB / 417.9 MB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.1907, allocations: 32 kB / 417.9 MB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.1921, allocations: 203.7 kB / 418.1 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/0.1931, allocations: 392.2 kB / 418.5 MB, free: 7.039 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.1932, allocations: 43.97 kB / 418.6 MB, free: 6.996 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003625/0.1936, allocations: 279.1 kB / 418.8 MB, free: 6.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1936, allocations: 0 / 418.8 MB, free: 6.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008735/0.1945, allocations: 243.9 kB / 419.1 MB, free: 6.484 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.001592/0.1961, allocations: 425.3 kB / 419.5 MB, free: 6.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002764/0.1988, allocations: 1.083 MB / 420.6 MB, free: 5.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.1988, allocations: 4.062 kB / 420.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.2006, allocations: 0.7231 MB / 421.3 MB, free: 4.348 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.2015, allocations: 147.5 kB / 421.4 MB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/0.2059, allocations: 2.017 MB / 423.5 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.2062, allocations: 353.5 kB / 423.8 MB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000399/0.2066, allocations: 85.66 kB / 423.9 MB, free: 1.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.2069, allocations: 68.47 kB / 424 MB, free: 1.613 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2069, allocations: 0 / 424 MB, free: 1.613 MB / 382.1 MB Notification: Performance of Templates: time 0.02781/0.2347, allocations: 15.92 MB / 439.9 MB, free: 1.789 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.106776155997068]