Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.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.001916/0.001916, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002257/0.002257, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.603/1.603, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 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.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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.679e-05/2.837e-05, allocations: 6.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004757/0.004786, allocations: 2.895 MB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.007358, allocations: 1.301 MB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.007513, allocations: 7.938 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004897/0.008002, allocations: 103.1 kB / 276.5 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002632/0.008265, allocations: 134.8 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009223/0.009188, allocations: 427 kB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009159/0.0101, allocations: 0.8307 MB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.01028, allocations: 65.72 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007409/0.01102, allocations: 0.4991 MB / 278.4 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0018/0.01282, allocations: 1.416 MB / 279.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.01295, allocations: 68 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.01322, allocations: 135.8 kB / 280.1 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.0135, allocations: 239.8 kB / 280.3 MB, free: 9.688 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003092/0.01381, allocations: 247.3 kB / 280.5 MB, free: 9.445 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.01501, allocations: 0.9854 MB / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.01502, allocations: 0 / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.01502, allocations: 0 / 281.5 MB, free: 8.457 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.01502, allocations: 0 / 281.5 MB, free: 8.457 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.003954/0.01898, allocations: 1.431 MB / 282.9 MB, free: 6.98 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.01902, allocations: 15.98 kB / 283 MB, free: 6.965 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005877/0.0196, allocations: 132.4 kB / 283.1 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007262/0.02033, allocations: 381.5 kB / 283.5 MB, free: 6.438 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.245e-05/0.02038, allocations: 29.38 kB / 283.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.02051, allocations: 48.31 kB / 283.5 MB, free: 6.363 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.02211, allocations: 0.6268 MB / 284.2 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.02214, allocations: 12.14 kB / 284.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.392e-05/0.02222, allocations: 20.12 kB / 284.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.02223, allocations: 8 kB / 284.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002098/0.02433, allocations: 0.6896 MB / 284.9 MB, free: 4.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003721/0.02805, allocations: 1.434 MB / 286.3 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.02951, allocations: 480.8 kB / 286.8 MB, free: 3.012 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00089/0.0304, allocations: 285.6 kB / 287.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.315e-05/0.03046, allocations: 11.94 kB / 287.1 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001265/0.03173, allocations: 491.2 kB / 287.6 MB, free: 2.215 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 5.019e-06/0.03173, allocations: 4 kB / 287.6 MB, free: 2.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1242/0.156, allocations: 2.447 MB / 290 MB, free: 28.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.156, allocations: 87.14 kB / 290.1 MB, free: 28.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.157, allocations: 0.9138 MB / 291 MB, free: 28.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.1571, allocations: 47.2 kB / 291.1 MB, free: 28.44 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.1573, allocations: 295.8 kB / 291.4 MB, free: 28.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.1574, allocations: 175.1 kB / 291.5 MB, free: 28.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002467/0.1577, allocations: 120.1 kB / 291.6 MB, free: 28.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.1578, allocations: 381.7 kB / 292 MB, free: 27.85 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008574/0.1587, allocations: 318.8 kB / 292.3 MB, free: 27.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000886/0.1595, allocations: 421.2 kB / 292.7 MB, free: 27.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.1609, allocations: 0.5017 MB / 293.2 MB, free: 27.32 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1609, allocations: 1.125 kB / 293.2 MB, free: 27.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002667/0.1636, allocations: 1.028 MB / 294.3 MB, free: 26.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1636, allocations: 6.25 kB / 294.3 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1636, allocations: 4.031 kB / 294.3 MB, free: 26.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.1646, allocations: 0.5473 MB / 294.8 MB, free: 26.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.1651, allocations: 114.6 kB / 294.9 MB, free: 26.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005143/0.1703, allocations: 4.46 MB / 299.4 MB, free: 23.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/0.1716, allocations: 240.2 kB / 299.6 MB, free: 23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.337e-05/0.1717, allocations: 23.84 kB / 299.7 MB, free: 22.99 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003241/0.172, allocations: 257.1 kB / 299.9 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.1722, allocations: 88.39 kB / 300 MB, free: 22.78 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001782/0.1724, allocations: 105 kB / 300.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-06/0.1724, allocations: 9.5 kB / 300.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.1724, allocations: 1 kB / 300.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.1724, allocations: 3.359 kB / 300.1 MB, free: 22.71 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/0.1752, allocations: 1.214 MB / 301.3 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1752, allocations: 1.125 kB / 301.3 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.1756, allocations: 86.72 kB / 301.4 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008919/0.1765, allocations: 0.5157 MB / 301.9 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.399e-05/0.1766, allocations: 23.41 kB / 301.9 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004404/0.181, allocations: 4.097 MB / 306 MB, free: 18.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.181, allocations: 5.25 kB / 306 MB, free: 18.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003132/0.1841, allocations: 1.271 MB / 307.3 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002817/0.1844, allocations: 143.8 kB / 307.5 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.1845, allocations: 20.22 kB / 307.5 MB, free: 17.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.1861, allocations: 269.5 kB / 307.7 MB, free: 17.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001269/0.1873, allocations: 0.5823 MB / 308.3 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.1874, allocations: 25.62 kB / 308.4 MB, free: 17.45 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004958/0.1879, allocations: 0.6667 MB / 309 MB, free: 17.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1879, allocations: 0 / 309 MB, free: 17.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006778/0.1886, allocations: 179.1 kB / 309.2 MB, free: 17.1 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00165/0.1902, allocations: 412.3 kB / 309.6 MB, free: 16.94 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.1921, allocations: 0.9332 MB / 310.5 MB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1921, allocations: 0 / 310.5 MB, free: 16.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.1933, allocations: 0.6506 MB / 311.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.1939, allocations: 119.5 kB / 311.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003194/0.1971, allocations: 1.778 MB / 313.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.1973, allocations: 322.9 kB / 313.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.1975, allocations: 47.25 kB / 313.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001418/0.1976, allocations: 52.48 kB / 313.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of SimCode: time 6.22e-07/0.1976, allocations: 4 kB / 313.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of Templates: time 0.01751/0.2151, allocations: 14.22 MB / 327.7 MB, free: 14.98 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.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.173819195944816]