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.000991/0.000991, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.001074/0.001074, allocations: 165 kB / 25.75 MB, free: 8.539 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.9074/0.9074, allocations: 158.6 MB / 187.5 MB, free: 2.934 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.543e-06/1.543e-06, allocations: 0 / 251.1 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.03e-05/2.184e-05, allocations: 2.312 kB / 251.1 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.00297/0.002992, allocations: 2.969 MB / 254.1 MB, free: 4.832 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.004497, allocations: 1.193 MB / 255.2 MB, free: 3.637 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.004645, allocations: 7.938 kB / 255.3 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003486/0.004993, allocations: 79.28 kB / 255.3 MB, free: 3.551 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.005147, allocations: 130.8 kB / 255.5 MB, free: 3.422 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008608/0.006008, allocations: 411.2 kB / 255.9 MB, free: 3.02 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005127/0.00652, allocations: 0.8227 MB / 256.7 MB, free: 2.195 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.006667, allocations: 61.75 kB / 256.7 MB, free: 2.129 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004287/0.007095, allocations: 495.2 kB / 257.2 MB, free: 1.645 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000928/0.008023, allocations: 1.291 MB / 258.5 MB, free: 356 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.599e-05/0.008099, allocations: 68 kB / 258.6 MB, free: 288 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.008238, allocations: 119.9 kB / 258.7 MB, free: 168 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.008391, allocations: 227.8 kB / 258.9 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001672/0.008559, allocations: 243.3 kB / 259.2 MB, free: 15.7 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005427/0.009101, allocations: 0.7048 MB / 259.9 MB, free: 15 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.009104, allocations: 0 / 259.9 MB, free: 15 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.009104, allocations: 0 / 259.9 MB, free: 15 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.009111, allocations: 0 / 259.9 MB, free: 15 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.00154/0.01065, allocations: 1.394 MB / 261.3 MB, free: 13.54 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.01068, allocations: 11.98 kB / 261.3 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.01083, allocations: 108.5 kB / 261.4 MB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003434/0.01117, allocations: 372.3 kB / 261.7 MB, free: 13.04 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.0112, allocations: 33.36 kB / 261.8 MB, free: 13 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.829e-05/0.01127, allocations: 48.33 kB / 261.8 MB, free: 12.96 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009425/0.01221, allocations: 0.9844 MB / 262.8 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.01223, allocations: 12.19 kB / 262.8 MB, free: 11.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002831/0.01251, allocations: 20.11 kB / 262.8 MB, free: 11.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.01252, allocations: 8 kB / 262.8 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001006/0.01353, allocations: 1.308 MB / 264.2 MB, free: 10.61 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.01553, allocations: 2.154 MB / 266.3 MB, free: 8.391 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006696/0.0162, allocations: 0.6815 MB / 267 MB, free: 7.684 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004015/0.0166, allocations: 0.5265 MB / 267.5 MB, free: 7.148 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.01665, allocations: 16 kB / 267.5 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000575/0.01723, allocations: 0.7137 MB / 268.2 MB, free: 6.398 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 1.583e-06/0.01723, allocations: 0 / 268.2 MB, free: 6.398 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.005183/0.02241, allocations: 4.369 MB / 272.6 MB, free: 1.953 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.02245, allocations: 85.11 kB / 272.7 MB, free: 1.852 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007224/0.02317, allocations: 0.8665 MB / 273.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.487e-05/0.02324, allocations: 49.69 kB / 273.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002043/0.02344, allocations: 355.4 kB / 274 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.02357, allocations: 174.7 kB / 274.1 MB, free: 400 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.02376, allocations: 127.9 kB / 274.3 MB, free: 264 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.02395, allocations: 0.5625 MB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007114/0.02466, allocations: 0.6572 MB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/0.02535, allocations: 0.7608 MB / 276.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.02661, allocations: 1.161 MB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.02662, allocations: 4 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002102/0.02872, allocations: 2.03 MB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.02873, allocations: 11.44 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.02874, allocations: 11.92 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.03014, allocations: 1.639 MB / 281.1 MB, free: 9.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002875/0.03043, allocations: 99.83 kB / 281.2 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004994/0.03542, allocations: 7.117 MB / 288.3 MB, free: 1.797 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.03594, allocations: 147.8 kB / 288.4 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.771e-05/0.03599, allocations: 27.97 kB / 288.5 MB, free: 1.625 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.0001823/0.03617, allocations: 195.1 kB / 288.7 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.0363, allocations: 91.58 kB / 288.8 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.03641, allocations: 94.09 kB / 288.8 MB, free: 1.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.03641, allocations: 8 kB / 288.9 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.03641, allocations: 0 / 288.9 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.03642, allocations: 0 / 288.9 MB, free: 1.234 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002879/0.0393, allocations: 2.617 MB / 291.5 MB, free: 14.56 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.0393, allocations: 7.922 kB / 291.5 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/0.03958, allocations: 71.89 kB / 291.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001378/0.04096, allocations: 1.635 MB / 293.2 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.041, allocations: 23.95 kB / 293.2 MB, free: 12.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.04574, allocations: 6.66 MB / 299.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.04574, allocations: 4.031 kB / 299.9 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.0483, allocations: 2.642 MB / 302.5 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002456/0.04854, allocations: 139.4 kB / 302.7 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.04863, allocations: 23.94 kB / 302.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006329/0.04926, allocations: 175.7 kB / 302.8 MB, free: 2.848 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009424/0.0502, allocations: 0.5146 MB / 303.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.05026, allocations: 31.95 kB / 303.4 MB, free: 2.301 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004356/0.05069, allocations: 0.5693 MB / 304 MB, free: 1.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.05069, allocations: 0 / 304 MB, free: 1.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005999/0.05129, allocations: 191.9 kB / 304.1 MB, free: 1.547 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.0002273/0.05152, allocations: 147.2 kB / 304.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.05328, allocations: 1.638 MB / 305.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.05328, allocations: 448 / 305.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000788/0.05407, allocations: 0.9684 MB / 306.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.05457, allocations: 113.7 kB / 307 MB, free: 14.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002634/0.0572, allocations: 1.657 MB / 308.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.05733, allocations: 161.9 kB / 308.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001409/0.05747, allocations: 35.28 kB / 308.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.05758, allocations: 48.48 kB / 308.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of SimCode: time 8.52e-07/0.05758, allocations: 0 / 308.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of Templates: time 0.02252/0.0801, allocations: 19.59 MB / 328.5 MB, free: 8.98 MB / 314.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.4520440800115466]