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.0008297/0.0008297, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001241/0.002071, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007301/0.0007301, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001043/0.001773, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 1.013/1.013, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1772/1.19, allocations: 49.51 MB / 220.7 MB, free: 1.348 MB / 218.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.323e-06/1.323e-06, allocations: 0 / 222 MB, free: 76 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.653e-05/1.785e-05, allocations: 6.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002928/0.002946, allocations: 2.989 MB / 225 MB, free: 13.04 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.005058, allocations: 1.216 MB / 226.2 MB, free: 11.82 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002784/0.005336, allocations: 8 kB / 226.2 MB, free: 11.82 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003737/0.00571, allocations: 91.16 kB / 226.3 MB, free: 11.73 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003821/0.006092, allocations: 122.8 kB / 226.4 MB, free: 11.61 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.00731, allocations: 403.1 kB / 226.8 MB, free: 11.21 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.008443, allocations: 0.8111 MB / 227.6 MB, free: 10.4 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001918/0.008635, allocations: 69.69 kB / 227.7 MB, free: 10.33 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008817/0.009517, allocations: 0.5037 MB / 228.2 MB, free: 9.824 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.01098, allocations: 1.256 MB / 229.4 MB, free: 8.566 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001876/0.01117, allocations: 68 kB / 229.5 MB, free: 8.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002806/0.01145, allocations: 123.9 kB / 229.6 MB, free: 8.379 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.01162, allocations: 172 kB / 229.8 MB, free: 8.211 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002272/0.01185, allocations: 171.6 kB / 230 MB, free: 8.043 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007832/0.01263, allocations: 0.5801 MB / 230.5 MB, free: 7.461 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.484e-05/0.01265, allocations: 0 / 230.5 MB, free: 7.461 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.01265, allocations: 4 kB / 230.5 MB, free: 7.457 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.01267, allocations: 0 / 230.5 MB, free: 7.457 MB / 234.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.002521/0.01519, allocations: 1.227 MB / 231.8 MB, free: 6.203 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.01524, allocations: 12.03 kB / 231.8 MB, free: 6.191 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.01544, allocations: 72.88 kB / 231.9 MB, free: 6.121 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.01597, allocations: 317.6 kB / 232.2 MB, free: 5.785 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.085e-05/0.01602, allocations: 29.38 kB / 232.2 MB, free: 5.758 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.01612, allocations: 48.33 kB / 232.2 MB, free: 5.711 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.01724, allocations: 0.7093 MB / 232.9 MB, free: 4.984 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.01726, allocations: 192 / 232.9 MB, free: 4.984 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.01732, allocations: 24.06 kB / 233 MB, free: 4.961 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.01733, allocations: 8 kB / 233 MB, free: 4.953 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.01834, allocations: 0.7248 MB / 233.7 MB, free: 4.227 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002936/0.02128, allocations: 1.653 MB / 235.4 MB, free: 2.527 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007554/0.02203, allocations: 439 kB / 235.8 MB, free: 2.082 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.02239, allocations: 301.6 kB / 236.1 MB, free: 1.781 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-05/0.02245, allocations: 11.94 kB / 236.1 MB, free: 1.77 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006716/0.02312, allocations: 491.6 kB / 236.6 MB, free: 1.27 MB / 234.7 MB Notification: Performance of pre-optimization done (n=47): time 3.396e-06/0.02313, allocations: 0 / 236.6 MB, free: 1.27 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.005714/0.02884, allocations: 2.776 MB / 239.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.0289, allocations: 81.11 kB / 239.4 MB, free: 14.31 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000685/0.02959, allocations: 0.6406 MB / 240.1 MB, free: 13.66 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.31e-05/0.02967, allocations: 45.7 kB / 240.1 MB, free: 13.61 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.02985, allocations: 225.9 kB / 240.3 MB, free: 13.38 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.03003, allocations: 170.6 kB / 240.5 MB, free: 13.21 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.03026, allocations: 110.2 kB / 240.6 MB, free: 13.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.03044, allocations: 394.5 kB / 241 MB, free: 12.71 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005801/0.03102, allocations: 369.2 kB / 241.4 MB, free: 12.35 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.03158, allocations: 442.9 kB / 241.8 MB, free: 11.88 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.03243, allocations: 0.751 MB / 242.5 MB, free: 11.1 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.03243, allocations: 0 / 242.5 MB, free: 11.1 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001772/0.0342, allocations: 1.159 MB / 243.7 MB, free: 9.926 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.03423, allocations: 12.03 kB / 243.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.03424, allocations: 3.984 kB / 243.7 MB, free: 9.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001558/0.0358, allocations: 1.42 MB / 245.1 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003758/0.03617, allocations: 115.8 kB / 245.2 MB, free: 8.367 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004588/0.04076, allocations: 4.817 MB / 250.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006531/0.04141, allocations: 151.8 kB / 250.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-05/0.04147, allocations: 19.98 kB / 250.2 MB, free: 3.184 MB / 250.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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002822/0.04175, allocations: 163.1 kB / 250.4 MB, free: 3.016 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.04189, allocations: 55.94 kB / 250.4 MB, free: 2.961 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/0.04202, allocations: 90.17 kB / 250.5 MB, free: 2.867 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.04202, allocations: 4 kB / 250.5 MB, free: 2.863 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.04203, allocations: 4.047 kB / 250.5 MB, free: 2.859 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.04203, allocations: 3.984 kB / 250.5 MB, free: 2.855 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.04432, allocations: 1.654 MB / 252.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.04432, allocations: 3.938 kB / 252.2 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/0.04465, allocations: 88 kB / 252.3 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.04488, allocations: 87.52 kB / 252.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.04635, allocations: 1.416 MB / 253.8 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.346e-05/0.0464, allocations: 19.97 kB / 253.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004249/0.05065, allocations: 4.512 MB / 258.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.05066, allocations: 7.875 kB / 258.3 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/0.05274, allocations: 1.643 MB / 260 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001237/0.05286, allocations: 24 kB / 260 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007124/0.05357, allocations: 167.8 kB / 260.2 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001115/0.05469, allocations: 0.5107 MB / 260.7 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.478e-05/0.05477, allocations: 27.95 kB / 260.7 MB, free: 8.418 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003529/0.05513, allocations: 316.6 kB / 261 MB, free: 8.113 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.05513, allocations: 3.938 kB / 261 MB, free: 8.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008355/0.05596, allocations: 192 kB / 261.2 MB, free: 7.922 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.0003126/0.05627, allocations: 132.2 kB / 261.3 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.05768, allocations: 1.012 MB / 262.3 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-05/0.0577, allocations: 11.98 kB / 262.3 MB, free: 6.734 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.05847, allocations: 0.6366 MB / 263 MB, free: 6.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006852/0.05915, allocations: 465.8 kB / 263.4 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.06335, allocations: 1.464 MB / 264.9 MB, free: 4.039 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.06351, allocations: 173.6 kB / 265.1 MB, free: 3.852 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001929/0.06371, allocations: 43.28 kB / 265.1 MB, free: 3.809 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.06397, allocations: 119.3 kB / 265.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of SimCode: time 1.152e-06/0.06397, allocations: 0 / 265.2 MB, free: 3.691 MB / 266.7 MB Notification: Performance of Templates: time 0.1379/0.2019, allocations: 20.42 MB / 285.6 MB, free: 55.03 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.465758734382689]