Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.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.0009674/0.0009674, allocations: 83.89 kB / 21.19 MB, free: 3.387 MB / 18.57 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.0009117/0.0009117, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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.023/1.023, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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.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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.047e-05/3.191e-05, allocations: 10.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00374/0.003772, allocations: 2.984 MB / 271 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.006092, allocations: 1.157 MB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.006352, allocations: 4 kB / 272.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004684/0.00682, allocations: 75.25 kB / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000277/0.007097, allocations: 126.8 kB / 272.3 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009326/0.00803, allocations: 419 kB / 272.7 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008549/0.008885, allocations: 0.8189 MB / 273.6 MB, free: 0.832 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.009073, allocations: 61.73 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00074/0.009813, allocations: 495.2 kB / 274.1 MB, free: 288 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.0112, allocations: 1.295 MB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001823/0.01139, allocations: 68 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002436/0.01163, allocations: 112 kB / 275.6 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.01183, allocations: 239.8 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.01206, allocations: 231.4 kB / 276 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009002/0.01296, allocations: 0.7009 MB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.01297, allocations: 0 / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.01297, allocations: 0 / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.01299, allocations: 0 / 276.7 MB, free: 13.64 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002004/0.015, allocations: 1.39 MB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.01504, allocations: 8.922 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/0.01523, allocations: 112.4 kB / 278.2 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.01568, allocations: 384.2 kB / 278.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.01572, allocations: 25.38 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.0158, allocations: 40.38 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.017, allocations: 0.9883 MB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.01703, allocations: 8.125 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.392e-05/0.01708, allocations: 20.12 kB / 279.7 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.0171, allocations: 19.92 kB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.01835, allocations: 1.311 MB / 281 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/0.02099, allocations: 2.158 MB / 283.2 MB, free: 7.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007704/0.02177, allocations: 0.6853 MB / 283.9 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004316/0.0222, allocations: 0.5265 MB / 284.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.922e-05/0.02226, allocations: 8 kB / 284.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000663/0.02292, allocations: 0.7249 MB / 285.1 MB, free: 5.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 2.946e-06/0.02292, allocations: 0 / 285.1 MB, free: 5.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.004789/0.02771, allocations: 4.363 MB / 289.5 MB, free: 0.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.02776, allocations: 85.09 kB / 289.6 MB, free: 492 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1346/0.1624, allocations: 0.8678 MB / 290.4 MB, free: 30.35 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.1626, allocations: 50.88 kB / 290.5 MB, free: 30.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.1628, allocations: 354.3 kB / 290.8 MB, free: 30.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.1629, allocations: 172.4 kB / 291 MB, free: 30.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.1631, allocations: 122.8 kB / 291.1 MB, free: 30.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1632, allocations: 0.572 MB / 291.7 MB, free: 29.64 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008429/0.1641, allocations: 0.6561 MB / 292.4 MB, free: 29.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000867/0.165, allocations: 0.7563 MB / 293.1 MB, free: 29.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.1661, allocations: 1.171 MB / 294.3 MB, free: 29.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.1661, allocations: 0 / 294.3 MB, free: 29.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002394/0.1685, allocations: 2.035 MB / 296.3 MB, free: 29.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.1685, allocations: 6.531 kB / 296.3 MB, free: 29.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1685, allocations: 2.5 kB / 296.3 MB, free: 29.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/0.1702, allocations: 1.64 MB / 298 MB, free: 29.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002951/0.1705, allocations: 101.3 kB / 298.1 MB, free: 29.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004139/0.1746, allocations: 7.114 MB / 305.2 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005289/0.1751, allocations: 147 kB / 305.3 MB, free: 23.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.978e-05/0.1752, allocations: 23.45 kB / 305.3 MB, free: 23.92 MB / 266.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.0002146/0.1754, allocations: 204.1 kB / 305.5 MB, free: 23.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.1755, allocations: 83.52 kB / 305.6 MB, free: 23.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.908e-05/0.1756, allocations: 94.83 kB / 305.7 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1756, allocations: 8.453 kB / 305.7 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1756, allocations: 0 / 305.7 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1756, allocations: 2.719 kB / 305.7 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.1776, allocations: 2.615 MB / 308.3 MB, free: 21.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.1776, allocations: 0 / 308.3 MB, free: 21.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.1778, allocations: 77.11 kB / 308.4 MB, free: 21.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000959/0.1788, allocations: 1.632 MB / 310 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.237e-05/0.1788, allocations: 23.92 kB / 310.1 MB, free: 19.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003164/0.182, allocations: 6.659 MB / 316.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.182, allocations: 7.281 kB / 316.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/0.1839, allocations: 2.644 MB / 319.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.1842, allocations: 140.8 kB / 319.5 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.1842, allocations: 20 kB / 319.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.1847, allocations: 175.8 kB / 319.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007028/0.1854, allocations: 0.5107 MB / 320.2 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/0.1855, allocations: 27.97 kB / 320.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003371/0.1858, allocations: 0.5732 MB / 320.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1858, allocations: 0 / 320.8 MB, free: 9.008 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006266/0.1864, allocations: 190.4 kB / 321 MB, free: 8.824 MB / 266.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.0002348/0.1866, allocations: 151.2 kB / 321.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1879, allocations: 1.643 MB / 322.8 MB, free: 7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1879, allocations: 0 / 322.8 MB, free: 7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005855/0.1884, allocations: 0.973 MB / 323.8 MB, free: 5.984 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.1889, allocations: 112.8 kB / 323.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.191, allocations: 1.639 MB / 325.5 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.517e-05/0.1911, allocations: 169.7 kB / 325.7 MB, free: 4.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001152/0.1912, allocations: 39.28 kB / 325.7 MB, free: 4.004 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.1913, allocations: 51.27 kB / 325.8 MB, free: 3.957 MB / 266.7 MB Notification: Performance of SimCode: time 1.653e-06/0.1913, allocations: 4 kB / 325.8 MB, free: 3.953 MB / 266.7 MB Notification: Performance of Templates: time 0.02253/0.2139, allocations: 19.61 MB / 345.4 MB, free: 376 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.6212880280800164]