Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.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.0009504/0.0009504, allocations: 79.73 kB / 21.97 MB, free: 2.594 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.0008983/0.0008983, allocations: 165.5 kB / 25.33 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8396/0.8396, allocations: 158.6 MB / 187.2 MB, free: 2.523 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 3.938 kB / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.915e-05/2.071e-05, allocations: 9.406 kB / 251 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002704/0.002724, allocations: 2.968 MB / 254 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001549/0.004273, allocations: 1.197 MB / 255.2 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.004399, allocations: 7.938 kB / 255.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003492/0.004748, allocations: 83.22 kB / 255.3 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.004909, allocations: 122.9 kB / 255.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005868/0.005496, allocations: 419.1 kB / 255.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.00603, allocations: 0.8188 MB / 256.6 MB, free: 13.97 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.006161, allocations: 57.75 kB / 256.7 MB, free: 13.91 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004182/0.006579, allocations: 495.2 kB / 257.2 MB, free: 13.42 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009347/0.007514, allocations: 1.291 MB / 258.5 MB, free: 12.13 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.884e-05/0.007603, allocations: 68 kB / 258.5 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.007756, allocations: 123.9 kB / 258.7 MB, free: 11.94 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000143/0.007899, allocations: 231.8 kB / 258.9 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001627/0.008062, allocations: 235.4 kB / 259.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005887/0.008651, allocations: 0.7009 MB / 259.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.008654, allocations: 4 kB / 259.8 MB, free: 10.78 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.008655, allocations: 3.984 kB / 259.8 MB, free: 10.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.008663, allocations: 0 / 259.8 MB, free: 10.77 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001723/0.01039, allocations: 1.382 MB / 261.2 MB, free: 9.332 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.01043, allocations: 15.98 kB / 261.2 MB, free: 9.316 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.01061, allocations: 112.4 kB / 261.3 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.01105, allocations: 376.3 kB / 261.7 MB, free: 8.812 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.417e-05/0.01111, allocations: 29.38 kB / 261.7 MB, free: 8.785 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.796e-05/0.01119, allocations: 48.27 kB / 261.8 MB, free: 8.738 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.01237, allocations: 0.9883 MB / 262.8 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.01239, allocations: 4.188 kB / 262.8 MB, free: 7.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.858e-05/0.01244, allocations: 24.11 kB / 262.8 MB, free: 7.707 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.01245, allocations: 16 kB / 262.8 MB, free: 7.691 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.01352, allocations: 1.308 MB / 264.1 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.01592, allocations: 2.151 MB / 266.3 MB, free: 4.168 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.01666, allocations: 0.6814 MB / 266.9 MB, free: 3.461 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004248/0.01708, allocations: 0.5187 MB / 267.5 MB, free: 2.934 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.885e-05/0.01713, allocations: 12 kB / 267.5 MB, free: 2.922 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006524/0.01778, allocations: 0.7293 MB / 268.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 2.355e-06/0.01778, allocations: 0 / 268.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.004423/0.02221, allocations: 4.371 MB / 272.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.02224, allocations: 89.05 kB / 272.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005701/0.02281, allocations: 0.8666 MB / 273.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.107e-05/0.02287, allocations: 49.7 kB / 273.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.02304, allocations: 355.4 kB / 273.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.02314, allocations: 166.7 kB / 274.1 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.02328, allocations: 131.9 kB / 274.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.02344, allocations: 0.5665 MB / 274.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005497/0.02399, allocations: 0.6572 MB / 275.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005278/0.02452, allocations: 0.7608 MB / 276.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.0253, allocations: 1.157 MB / 277.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.02531, allocations: 4 kB / 277.4 MB, free: 8.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001687/0.02699, allocations: 2.026 MB / 279.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.02701, allocations: 11.94 kB / 279.4 MB, free: 6.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.02701, allocations: 3.938 kB / 279.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.02816, allocations: 1.643 MB / 281 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.02839, allocations: 103.9 kB / 281.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/0.03247, allocations: 7.113 MB / 288.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004074/0.03288, allocations: 155.8 kB / 288.4 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.855e-05/0.03292, allocations: 20 kB / 288.4 MB, free: 13.4 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,supportFriction.mode,$PRE.supportFriction.mode,supportFriction.locked,supportFriction.startBackward,$PRE.supportFriction.startBackward,supportFriction.startForward,$PRE.supportFriction.startForward,stop1.stopped,stop1.mode,$PRE.stop1.mode,stop1.locked,stop1.startBackward,$PRE.stop1.startBackward,stop1.startForward,$PRE.stop1.startForward,stop1.free,$whenCondition2,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001774/0.0331, allocations: 199.1 kB / 288.6 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.922e-05/0.03319, allocations: 87.58 kB / 288.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.555e-05/0.03327, allocations: 90.11 kB / 288.8 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.03327, allocations: 8 kB / 288.8 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.03328, allocations: 4 kB / 288.8 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.03328, allocations: 3.984 kB / 288.8 MB, free: 13.01 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002032/0.03532, allocations: 2.624 MB / 291.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.03532, allocations: 0 / 291.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002013/0.03552, allocations: 71.89 kB / 291.5 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.03659, allocations: 1.635 MB / 293.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.267e-05/0.03663, allocations: 20.03 kB / 293.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003603/0.04023, allocations: 6.668 MB / 299.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.04023, allocations: 0 / 299.8 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1185/0.1587, allocations: 2.633 MB / 302.5 MB, free: 56.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.1591, allocations: 143.8 kB / 302.6 MB, free: 56.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.871e-05/0.1592, allocations: 19.89 kB / 302.6 MB, free: 56.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/0.1599, allocations: 173.8 kB / 302.8 MB, free: 56.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001102/0.161, allocations: 0.5139 MB / 303.3 MB, free: 56.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-05/0.1611, allocations: 26.31 kB / 303.3 MB, free: 56.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005496/0.1616, allocations: 0.5747 MB / 303.9 MB, free: 56.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1616, allocations: 0 / 303.9 MB, free: 56.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007883/0.1624, allocations: 193.1 kB / 304.1 MB, free: 56.27 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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,5), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002782/0.1627, allocations: 148 kB / 304.2 MB, free: 56.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.1647, allocations: 1.637 MB / 305.9 MB, free: 55.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1647, allocations: 1.156 kB / 305.9 MB, free: 55.83 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009216/0.1656, allocations: 0.9663 MB / 306.8 MB, free: 55.47 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005662/0.1661, allocations: 110 kB / 306.9 MB, free: 55.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.169, allocations: 1.641 MB / 308.6 MB, free: 54.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001524/0.1692, allocations: 168.4 kB / 308.8 MB, free: 54.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.1694, allocations: 41.09 kB / 308.8 MB, free: 54.79 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.1695, allocations: 45.84 kB / 308.8 MB, free: 54.79 MB / 282.7 MB Notification: Performance of SimCode: time 1.182e-06/0.1695, allocations: 0 / 308.8 MB, free: 54.79 MB / 282.7 MB Notification: Performance of Templates: time 0.0237/0.1932, allocations: 20.41 MB / 329.2 MB, free: 38.35 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3612515926361084]