Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009152/0.0009152, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009781/0.0009781, allocations: 169 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9882/0.9882, allocations: 177.1 MB / 205.3 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 273.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.428e-05/1.548e-05, allocations: 3.344 kB / 273.5 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003159/0.003174, allocations: 3.106 MB / 276.6 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.004844, allocations: 1.353 MB / 277.9 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.004984, allocations: 7.938 kB / 278 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000368/0.005352, allocations: 103.1 kB / 278.1 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.00552, allocations: 126.9 kB / 278.2 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005999/0.00612, allocations: 431 kB / 278.6 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005399/0.00666, allocations: 0.8346 MB / 279.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.006781, allocations: 69.7 kB / 279.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004644/0.007246, allocations: 0.4952 MB / 280 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009539/0.0082, allocations: 1.42 MB / 281.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.4e-05/0.008284, allocations: 68 kB / 281.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.008467, allocations: 135.9 kB / 281.6 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001542/0.008621, allocations: 247.8 kB / 281.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001561/0.008778, allocations: 239.4 kB / 282.1 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005831/0.009361, allocations: 0.7398 MB / 282.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.009362, allocations: 0 / 282.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.009363, allocations: 0 / 282.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.009371, allocations: 0 / 282.8 MB, free: 11.04 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.001253/0.01062, allocations: 1.11 MB / 283.9 MB, free: 9.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.01065, allocations: 12.03 kB / 284 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002776/0.01093, allocations: 100.8 kB / 284.1 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.01125, allocations: 329.5 kB / 284.4 MB, free: 9.438 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.01128, allocations: 29.38 kB / 284.4 MB, free: 9.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.095e-05/0.01134, allocations: 44.31 kB / 284.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.01188, allocations: 494.5 kB / 284.9 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.0119, allocations: 4.141 kB / 284.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.01194, allocations: 20.12 kB / 285 MB, free: 8.844 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.01194, allocations: 8 kB / 285 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000397/0.01234, allocations: 270.3 kB / 285.2 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.01363, allocations: 0.9769 MB / 286.2 MB, free: 7.547 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.01398, allocations: 249 kB / 286.4 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.01411, allocations: 98.94 kB / 286.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.01415, allocations: 15.98 kB / 286.6 MB, free: 7.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002843/0.01444, allocations: 315 kB / 286.9 MB, free: 6.844 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.332e-06/0.01444, allocations: 0 / 286.9 MB, free: 6.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.00226/0.0167, allocations: 1.302 MB / 288.2 MB, free: 5.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.01673, allocations: 81.11 kB / 288.2 MB, free: 5.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.01708, allocations: 0.6187 MB / 288.9 MB, free: 4.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.01713, allocations: 49.7 kB / 288.9 MB, free: 4.691 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.01723, allocations: 221.9 kB / 289.1 MB, free: 4.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.01733, allocations: 178.6 kB / 289.3 MB, free: 4.293 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.01746, allocations: 114.2 kB / 289.4 MB, free: 4.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.01756, allocations: 386.6 kB / 289.8 MB, free: 3.789 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.01776, allocations: 133.2 kB / 289.9 MB, free: 3.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.01795, allocations: 203 kB / 290.1 MB, free: 3.434 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/0.01821, allocations: 273.8 kB / 290.4 MB, free: 3.137 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.01821, allocations: 4 kB / 290.4 MB, free: 3.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006303/0.01884, allocations: 491.4 kB / 290.9 MB, free: 2.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.01885, allocations: 8.219 kB / 290.9 MB, free: 2.629 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.01886, allocations: 4 kB / 290.9 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004856/0.01934, allocations: 422.1 kB / 291.3 MB, free: 2.203 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.01956, allocations: 107.9 kB / 291.4 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.02188, allocations: 3.618 MB / 295 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.02223, allocations: 155.8 kB / 295.2 MB, free: 14.13 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.02226, allocations: 16 kB / 295.2 MB, free: 14.11 MB / 282.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.0001468/0.02241, allocations: 159.1 kB / 295.3 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.427e-05/0.02248, allocations: 63.97 kB / 295.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.072e-05/0.02255, allocations: 86.17 kB / 295.5 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.02256, allocations: 8 kB / 295.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.02256, allocations: 0 / 295.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.02256, allocations: 7.984 kB / 295.5 MB, free: 13.79 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009713/0.02354, allocations: 0.7132 MB / 296.2 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.02354, allocations: 7.938 kB / 296.2 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.02373, allocations: 75.89 kB / 296.3 MB, free: 12.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004375/0.02416, allocations: 406.2 kB / 296.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.468e-05/0.0242, allocations: 23.97 kB / 296.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001946/0.02615, allocations: 3.368 MB / 300.1 MB, free: 8.945 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.02615, allocations: 0 / 300.1 MB, free: 8.945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000795/0.02694, allocations: 0.6408 MB / 300.7 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.02708, allocations: 99.34 kB / 300.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.233e-05/0.02714, allocations: 20 kB / 300.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.02756, allocations: 179.7 kB / 301 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006635/0.02822, allocations: 0.5107 MB / 301.5 MB, free: 7.469 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.02827, allocations: 27.95 kB / 301.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001754/0.02844, allocations: 284.6 kB / 301.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02844, allocations: 0 / 301.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004038/0.02885, allocations: 176 kB / 302 MB, free: 6.992 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,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008744/0.02972, allocations: 484.5 kB / 302.5 MB, free: 6.715 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006027/0.03032, allocations: 0.5807 MB / 303.1 MB, free: 6.098 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.03033, allocations: 12 kB / 303.1 MB, free: 6.086 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.03068, allocations: 443.3 kB / 303.5 MB, free: 5.625 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.03101, allocations: 110.8 kB / 303.6 MB, free: 5.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.03287, allocations: 1.371 MB / 305 MB, free: 4.105 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.03299, allocations: 169.6 kB / 305.1 MB, free: 3.922 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001258/0.03311, allocations: 43.27 kB / 305.2 MB, free: 3.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.03331, allocations: 127.3 kB / 305.3 MB, free: 3.75 MB / 282.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03331, allocations: 0 / 305.3 MB, free: 3.75 MB / 282.7 MB Notification: Performance of Templates: time 0.01536/0.04866, allocations: 15.34 MB / 320.7 MB, free: 4.5 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.0400158129632473]