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.002562/0.002562, allocations: 99.59 kB / 20.97 MB, free: 3.441 MB / 18.57 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.002906/0.002906, allocations: 157.7 kB / 24.27 MB, free: 144 kB / 18.57 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.612/1.612, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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 1.623e-06/1.623e-06, allocations: 0 / 272.3 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.703e-05/2.865e-05, allocations: 2.312 kB / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.006739/0.006768, allocations: 4.381 MB / 276.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003194/0.009961, allocations: 1.543 MB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002986/0.01026, allocations: 19.88 kB / 278.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000425/0.01068, allocations: 138.6 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006435/0.01133, allocations: 289.5 kB / 278.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009937/0.01232, allocations: 439 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.01365, allocations: 1.205 MB / 280.3 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000341/0.01399, allocations: 178.2 kB / 280.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.01501, allocations: 0.7056 MB / 281.2 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006736/0.01568, allocations: 438.9 kB / 281.6 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000177/0.01586, allocations: 92 kB / 281.7 MB, free: 8.398 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003706/0.01623, allocations: 175.8 kB / 281.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.01666, allocations: 243.2 kB / 282.1 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004427/0.0171, allocations: 339.2 kB / 282.4 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.01863, allocations: 1.219 MB / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.01864, allocations: 0 / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.01864, allocations: 0 / 283.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.01865, allocations: 0 / 283.7 MB, free: 6.434 MB / 266.7 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.003329/0.02198, allocations: 1.512 MB / 285.2 MB, free: 4.871 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.02202, allocations: 8.031 kB / 285.2 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006288/0.02265, allocations: 180.3 kB / 285.3 MB, free: 4.688 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007762/0.02342, allocations: 422 kB / 285.8 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.248e-05/0.02348, allocations: 50.38 kB / 285.8 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/0.02363, allocations: 72.38 kB / 285.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.02532, allocations: 0.7769 MB / 286.7 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.02536, allocations: 7.891 kB / 286.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.827e-05/0.02544, allocations: 32 kB / 286.7 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.02546, allocations: 16 kB / 286.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.02749, allocations: 0.7924 MB / 287.5 MB, free: 2.496 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/0.03211, allocations: 2.017 MB / 289.5 MB, free: 428 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1106/0.1427, allocations: 0.6546 MB / 290.2 MB, free: 27.9 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009388/0.1437, allocations: 403.4 kB / 290.6 MB, free: 27.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.543e-05/0.1438, allocations: 16.08 kB / 290.6 MB, free: 27.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001026/0.1448, allocations: 0.5351 MB / 291.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=90): time 2.525e-06/0.1448, allocations: 3.188 kB / 291.1 MB, free: 27.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=110): time 0.009182/0.154, allocations: 3.549 MB / 294.7 MB, free: 26.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.154, allocations: 66.86 kB / 294.7 MB, free: 26.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005102/0.1545, allocations: 0.4921 MB / 295.2 MB, free: 26.41 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.773e-05/0.1546, allocations: 56.81 kB / 295.3 MB, free: 26.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.1548, allocations: 342.8 kB / 295.6 MB, free: 26.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.1551, allocations: 417.2 kB / 296 MB, free: 25.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/0.1554, allocations: 215.5 kB / 296.2 MB, free: 25.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1555, allocations: 0.5805 MB / 296.8 MB, free: 25.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000861/0.1564, allocations: 396.9 kB / 297.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009605/0.1573, allocations: 0.5329 MB / 297.7 MB, free: 24.86 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.1588, allocations: 0.7971 MB / 298.5 MB, free: 24.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1588, allocations: 5 kB / 298.5 MB, free: 24.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002839/0.1616, allocations: 1.323 MB / 299.9 MB, free: 24.04 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1617, allocations: 7.422 kB / 299.9 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.1617, allocations: 2.75 kB / 299.9 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.1627, allocations: 0.5381 MB / 300.4 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007499/0.1635, allocations: 194.8 kB / 300.6 MB, free: 23.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00327/0.1667, allocations: 4.339 MB / 304.9 MB, free: 19.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008777/0.1676, allocations: 117.4 kB / 305.1 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.748e-05/0.1677, allocations: 38.95 kB / 305.1 MB, free: 19.89 MB / 266.7 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.0003289/0.168, allocations: 272.5 kB / 305.4 MB, free: 19.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001862/0.1682, allocations: 112.7 kB / 305.5 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.1684, allocations: 108.3 kB / 305.6 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.1684, allocations: 14.81 kB / 305.6 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.1685, allocations: 0 / 305.6 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.1685, allocations: 5.531 kB / 305.6 MB, free: 19.51 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003947/0.1724, allocations: 2.311 MB / 307.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.1724, allocations: 4 kB / 307.9 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006602/0.1731, allocations: 169.6 kB / 308.1 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009373/0.174, allocations: 0.5033 MB / 308.6 MB, free: 17.64 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.576e-05/0.1741, allocations: 34.59 kB / 308.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002743/0.1768, allocations: 4.06 MB / 312.7 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1768, allocations: 11.28 kB / 312.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002948/0.1798, allocations: 1.802 MB / 314.5 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003447/0.1801, allocations: 163.9 kB / 314.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.1803, allocations: 43.92 kB / 314.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008964/0.1812, allocations: 123.9 kB / 314.8 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006745/0.1818, allocations: 408.2 kB / 315.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-05/0.1819, allocations: 39.95 kB / 315.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002423/0.1821, allocations: 323.1 kB / 315.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1821, allocations: 4 kB / 315.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007703/0.1829, allocations: 243.9 kB / 315.8 MB, free: 10.35 MB / 266.7 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.002419/0.1853, allocations: 438.2 kB / 316.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.1875, allocations: 1.193 MB / 317.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1875, allocations: 0 / 317.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.1885, allocations: 0.7292 MB / 318.2 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008193/0.1893, allocations: 200.9 kB / 318.4 MB, free: 7.961 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.1922, allocations: 1.821 MB / 320.2 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1924, allocations: 357.5 kB / 320.5 MB, free: 5.703 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002842/0.1927, allocations: 86.64 kB / 320.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.1929, allocations: 72.47 kB / 320.7 MB, free: 5.547 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1929, allocations: 0 / 320.7 MB, free: 5.547 MB / 266.7 MB Notification: Performance of Templates: time 0.02503/0.2179, allocations: 16.04 MB / 336.7 MB, free: 5.648 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/HeatLosses/HeatLosses.csv","/var/lib/jenkins/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.357492930023]