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.001158/0.001158, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001215/0.001215, allocations: 160.2 kB / 24.91 MB, free: 8.723 MB / 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 0.9489/0.9489, allocations: 177 MB / 205.2 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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.613e-06/1.613e-06, allocations: 0 / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.471e-05/2.632e-05, allocations: 2.312 kB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003897/0.003923, allocations: 3.066 MB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.005984, allocations: 1.347 MB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001817/0.006165, allocations: 7.938 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004661/0.006631, allocations: 107.1 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002371/0.006868, allocations: 122.9 kB / 278 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008664/0.007735, allocations: 438.9 kB / 278.4 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007858/0.008521, allocations: 0.8307 MB / 279.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.008701, allocations: 77.58 kB / 279.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006577/0.009359, allocations: 0.503 MB / 279.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.01073, allocations: 1.412 MB / 281.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.01083, allocations: 72 kB / 281.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.01105, allocations: 127.9 kB / 281.5 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.01127, allocations: 247.8 kB / 281.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.01149, allocations: 239.4 kB / 281.9 MB, free: 8.633 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008567/0.01235, allocations: 0.732 MB / 282.7 MB, free: 7.898 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.01235, allocations: 0 / 282.7 MB, free: 7.898 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.01235, allocations: 0 / 282.7 MB, free: 7.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.01236, allocations: 0 / 282.7 MB, free: 7.898 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.001767/0.01413, allocations: 1.126 MB / 283.8 MB, free: 6.746 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.01417, allocations: 11.98 kB / 283.8 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.01454, allocations: 104.8 kB / 283.9 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004046/0.01495, allocations: 317.6 kB / 284.2 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.01499, allocations: 37.3 kB / 284.3 MB, free: 6.262 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.69e-05/0.01507, allocations: 44.33 kB / 284.3 MB, free: 6.219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000733/0.01581, allocations: 490.5 kB / 284.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.01582, allocations: 4.172 kB / 284.8 MB, free: 5.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.01587, allocations: 20.12 kB / 284.8 MB, free: 5.695 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.01589, allocations: 15.94 kB / 284.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005195/0.01641, allocations: 258.4 kB / 285.1 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.01815, allocations: 0.9769 MB / 286 MB, free: 4.402 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004758/0.01863, allocations: 256.9 kB / 286.3 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.0188, allocations: 101.7 kB / 286.4 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.01885, allocations: 12 kB / 286.4 MB, free: 4.016 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.01925, allocations: 311 kB / 286.7 MB, free: 3.695 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.753e-06/0.01925, allocations: 0 / 286.7 MB, free: 3.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003061/0.02231, allocations: 1.311 MB / 288 MB, free: 2.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.02234, allocations: 85.11 kB / 288.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004718/0.02282, allocations: 0.6149 MB / 288.7 MB, free: 1.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.235e-05/0.02288, allocations: 49.7 kB / 288.8 MB, free: 1.539 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.02299, allocations: 225.8 kB / 289 MB, free: 1.312 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.02311, allocations: 174.6 kB / 289.2 MB, free: 1.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.02328, allocations: 122.2 kB / 289.3 MB, free: 1.016 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.02339, allocations: 382.6 kB / 289.6 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.02365, allocations: 133.2 kB / 289.8 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.02389, allocations: 207 kB / 290 MB, free: 276 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1138/0.1377, allocations: 269.2 kB / 290.2 MB, free: 25.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1377, allocations: 0 / 290.2 MB, free: 25.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001003/0.1387, allocations: 493.5 kB / 290.7 MB, free: 25.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1387, allocations: 6.312 kB / 290.7 MB, free: 25.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1387, allocations: 3.219 kB / 290.7 MB, free: 25.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005557/0.1393, allocations: 414.5 kB / 291.1 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.1395, allocations: 104.1 kB / 291.2 MB, free: 25.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.1416, allocations: 3.624 MB / 294.9 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.1421, allocations: 145.8 kB / 295 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.1421, allocations: 17.53 kB / 295 MB, free: 22.09 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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.free) * 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,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001954/0.1423, allocations: 158.8 kB / 295.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.1424, allocations: 60.22 kB / 295.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/0.1425, allocations: 91.05 kB / 295.3 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1425, allocations: 9.516 kB / 295.3 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1425, allocations: 4.844 kB / 295.3 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.1425, allocations: 3.766 kB / 295.3 MB, free: 21.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.1436, allocations: 0.7132 MB / 296.1 MB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1436, allocations: 0.6094 kB / 296.1 MB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.1438, allocations: 75.31 kB / 296.1 MB, free: 21.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004705/0.1443, allocations: 410.5 kB / 296.5 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.082e-05/0.1443, allocations: 19.36 kB / 296.6 MB, free: 21.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00173/0.1461, allocations: 3.36 MB / 299.9 MB, free: 18.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1461, allocations: 5.312 kB / 299.9 MB, free: 18.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008832/0.147, allocations: 0.6441 MB / 300.6 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.1471, allocations: 89.34 kB / 300.6 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.087e-05/0.1472, allocations: 25.42 kB / 300.7 MB, free: 18.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.1477, allocations: 173.6 kB / 300.8 MB, free: 18.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007199/0.1484, allocations: 0.5116 MB / 301.4 MB, free: 18.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.669e-05/0.1484, allocations: 23.97 kB / 301.4 MB, free: 18.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002324/0.1487, allocations: 286.8 kB / 301.7 MB, free: 18.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1487, allocations: 0 / 301.7 MB, free: 18.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005097/0.1492, allocations: 186.6 kB / 301.8 MB, free: 18.65 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.0009301/0.1501, allocations: 464.5 kB / 302.3 MB, free: 18.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006662/0.1508, allocations: 0.5859 MB / 302.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.1508, allocations: 10.95 kB / 302.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003743/0.1512, allocations: 452.6 kB / 303.3 MB, free: 18.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003339/0.1515, allocations: 119.8 kB / 303.4 MB, free: 18.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.1534, allocations: 1.358 MB / 304.8 MB, free: 17.44 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.1535, allocations: 170.9 kB / 305 MB, free: 17.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.1536, allocations: 47.88 kB / 305 MB, free: 17.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.1538, allocations: 126.2 kB / 305.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1538, allocations: 0 / 305.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01496/0.1687, allocations: 15.31 MB / 320.4 MB, free: 5.043 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.131959008052945]