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.0008147/0.0008147, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001217/0.002032, allocations: 449.8 kB / 10.44 MB, free: 252 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.001136/0.001136, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00152/0.002656, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 1.019/1.019, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08176/1.101, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.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.333e-06/1.333e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.866e-06/1.02e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002698/0.002708, allocations: 3.118 MB / 247.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.004235, allocations: 1.347 MB / 249.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.004356, allocations: 11.94 kB / 249.2 MB, free: 9.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002554/0.004611, allocations: 107.1 kB / 249.3 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001862/0.004797, allocations: 134.7 kB / 249.4 MB, free: 9.5 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.005327, allocations: 434.9 kB / 249.8 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.005847, allocations: 0.8152 MB / 250.7 MB, free: 8.258 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.005966, allocations: 65.73 kB / 250.7 MB, free: 8.191 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004835/0.006449, allocations: 0.5437 MB / 251.3 MB, free: 7.645 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001013/0.007462, allocations: 1.384 MB / 252.6 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.884e-05/0.007551, allocations: 68 kB / 252.7 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.007759, allocations: 135.8 kB / 252.8 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.007896, allocations: 172 kB / 253 MB, free: 5.891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.008045, allocations: 179.6 kB / 253.2 MB, free: 5.715 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005241/0.00857, allocations: 0.619 MB / 253.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.156e-05/0.008581, allocations: 0 / 253.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.008582, allocations: 0 / 253.8 MB, free: 5.094 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.008597, allocations: 0 / 253.8 MB, free: 5.094 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001459/0.01006, allocations: 1.258 MB / 255.1 MB, free: 3.809 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.902e-05/0.01009, allocations: 11.97 kB / 255.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.0104, allocations: 181.9 kB / 255.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.01073, allocations: 321.6 kB / 255.6 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.01076, allocations: 33.38 kB / 255.6 MB, free: 3.227 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.267e-05/0.01082, allocations: 40.38 kB / 255.6 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005423/0.01136, allocations: 490.5 kB / 256.1 MB, free: 2.691 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.01138, allocations: 8.141 kB / 256.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.01142, allocations: 20.12 kB / 256.1 MB, free: 2.664 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.01143, allocations: 8 kB / 256.2 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.01181, allocations: 278.3 kB / 256.4 MB, free: 2.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.0131, allocations: 0.9651 MB / 257.4 MB, free: 1.371 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.01346, allocations: 264.7 kB / 257.7 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.0136, allocations: 109.2 kB / 257.8 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.01364, allocations: 8 kB / 257.8 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003047/0.01395, allocations: 311 kB / 258.1 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 1.193e-06/0.01395, allocations: 0 / 258.1 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.002428/0.01638, allocations: 1.338 MB / 259.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.01641, allocations: 85.11 kB / 259.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003487/0.01676, allocations: 0.6148 MB / 260.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.41e-05/0.01681, allocations: 49.69 kB / 260.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.239e-05/0.01691, allocations: 233.8 kB / 260.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.838e-05/0.017, allocations: 178.6 kB / 260.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.01714, allocations: 122.2 kB / 260.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.01725, allocations: 382.6 kB / 261 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.01745, allocations: 125.2 kB / 261.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.01764, allocations: 203 kB / 261.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003111/0.01795, allocations: 290 kB / 261.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.01795, allocations: 0 / 261.7 MB, free: 12.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006569/0.01861, allocations: 491.5 kB / 262.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.01862, allocations: 8 kB / 262.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.01863, allocations: 0 / 262.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000533/0.01916, allocations: 414.4 kB / 262.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.01938, allocations: 115.8 kB / 262.7 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.0218, allocations: 3.622 MB / 266.3 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/0.02216, allocations: 151.8 kB / 266.4 MB, free: 7.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.02219, allocations: 19.98 kB / 266.4 MB, free: 7.875 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.0001463/0.02233, allocations: 159.1 kB / 266.6 MB, free: 7.711 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.02241, allocations: 59.94 kB / 266.7 MB, free: 7.652 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.38e-05/0.0225, allocations: 94.16 kB / 266.8 MB, free: 7.547 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.02251, allocations: 8 kB / 266.8 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.02251, allocations: 0 / 266.8 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.02252, allocations: 0 / 266.8 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009663/0.02348, allocations: 0.7087 MB / 267.5 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.02349, allocations: 7.938 kB / 267.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.02368, allocations: 84 kB / 267.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.02382, allocations: 99.45 kB / 267.7 MB, free: 6.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006826/0.0245, allocations: 414.1 kB / 268.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.265e-05/0.02454, allocations: 19.91 kB / 268.1 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.02645, allocations: 3.341 MB / 271.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02645, allocations: 0 / 271.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008035/0.02726, allocations: 0.6696 MB / 272.1 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/0.02732, allocations: 20 kB / 272.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004215/0.02774, allocations: 167.8 kB / 272.3 MB, free: 1.742 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006426/0.02838, allocations: 0.5106 MB / 272.8 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.246e-05/0.02842, allocations: 23.95 kB / 272.8 MB, free: 1.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001731/0.02859, allocations: 288.6 kB / 273.1 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02859, allocations: 0 / 273.1 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003822/0.02897, allocations: 179.9 kB / 273.3 MB, free: 0.7539 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.000969/0.02994, allocations: 0.5258 MB / 273.8 MB, free: 468 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006081/0.03055, allocations: 0.5923 MB / 274.4 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/0.03056, allocations: 12 kB / 274.4 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003514/0.03091, allocations: 462.6 kB / 274.8 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/0.03158, allocations: 499.4 kB / 275.3 MB, free: 14.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.03403, allocations: 1.335 MB / 276.7 MB, free: 13.4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.528e-05/0.03412, allocations: 165.6 kB / 276.8 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000119/0.03424, allocations: 51.39 kB / 276.9 MB, free: 13.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.03442, allocations: 127.3 kB / 277 MB, free: 13.05 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.03442, allocations: 0 / 277 MB, free: 13.05 MB / 282.7 MB Notification: Performance of Templates: time 0.1078/0.1423, allocations: 15.44 MB / 292.4 MB, free: 34.95 MB / 282.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.081444464623928]