Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009487/0.0009487, allocations: 140.5 kB / 24.89 MB, free: 9.215 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8911/0.8911, allocations: 173.4 MB / 201.5 MB, free: 9.215 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.75e-05/1.888e-05, allocations: 2.312 kB / 268.5 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002823/0.002842, allocations: 2.959 MB / 271.4 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.004322, allocations: 1.176 MB / 272.6 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.00445, allocations: 11.88 kB / 272.6 MB, free: 2.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000329/0.004779, allocations: 71.36 kB / 272.7 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.004944, allocations: 134.8 kB / 272.8 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.005523, allocations: 411.1 kB / 273.2 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005366/0.00606, allocations: 0.8228 MB / 274 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.006181, allocations: 61.72 kB / 274.1 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005054/0.006686, allocations: 499.1 kB / 274.6 MB, free: 64 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009321/0.007619, allocations: 1.287 MB / 275.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.007699, allocations: 68 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.007839, allocations: 116 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.007984, allocations: 235.8 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.008151, allocations: 239.3 kB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.00871, allocations: 0.7048 MB / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.008712, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.008713, allocations: 0 / 277.2 MB, free: 13.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.008719, allocations: 0 / 277.2 MB, free: 13.42 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001352/0.01007, allocations: 1.091 MB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.89e-05/0.0101, allocations: 8.922 kB / 278.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.0102, allocations: 80.86 kB / 278.4 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.01051, allocations: 321.5 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.01054, allocations: 25.38 kB / 278.7 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.171e-05/0.01061, allocations: 52.31 kB / 278.8 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007131/0.01133, allocations: 0.7054 MB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.01134, allocations: 192 / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.09e-05/0.01138, allocations: 20.12 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.01139, allocations: 8 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006357/0.01202, allocations: 0.7287 MB / 280.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.01402, allocations: 1.657 MB / 281.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.01447, allocations: 440.9 kB / 282.3 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.01471, allocations: 297.6 kB / 282.6 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.73e-05/0.01476, allocations: 11.94 kB / 282.6 MB, free: 7.863 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.01516, allocations: 499.1 kB / 283.1 MB, free: 7.355 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.563e-06/0.01517, allocations: 0 / 283.1 MB, free: 7.355 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.003274/0.01844, allocations: 2.638 MB / 285.8 MB, free: 4.656 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.01847, allocations: 85.11 kB / 285.8 MB, free: 4.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.01884, allocations: 0.6405 MB / 286.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.388e-05/0.01889, allocations: 45.7 kB / 286.5 MB, free: 3.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.019, allocations: 217.9 kB / 286.7 MB, free: 3.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.0191, allocations: 170.7 kB / 286.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.01923, allocations: 126.1 kB / 287 MB, free: 3.336 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.01934, allocations: 386.6 kB / 287.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.01967, allocations: 369.2 kB / 287.8 MB, free: 2.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.01998, allocations: 450.8 kB / 288.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.02056, allocations: 0.6875 MB / 288.9 MB, free: 1.398 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.02056, allocations: 0 / 288.9 MB, free: 1.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001026/0.02159, allocations: 1.162 MB / 290.1 MB, free: 228 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.02161, allocations: 8 kB / 290.1 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.02161, allocations: 0 / 290.1 MB, free: 220 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1004/0.122, allocations: 1.419 MB / 291.5 MB, free: 30.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003109/0.1223, allocations: 110.9 kB / 291.6 MB, free: 30.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003058/0.1254, allocations: 4.814 MB / 296.4 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004235/0.1258, allocations: 149.7 kB / 296.5 MB, free: 27.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.1259, allocations: 16.09 kB / 296.6 MB, free: 27.12 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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001733/0.126, allocations: 154.8 kB / 296.7 MB, free: 27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.1261, allocations: 63.86 kB / 296.8 MB, free: 27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.01e-05/0.1262, allocations: 92.12 kB / 296.9 MB, free: 26.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.1262, allocations: 5.562 kB / 296.9 MB, free: 26.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1262, allocations: 1.125 kB / 296.9 MB, free: 26.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1262, allocations: 3.672 kB / 296.9 MB, free: 26.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.1279, allocations: 1.652 MB / 298.5 MB, free: 26.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1279, allocations: 1.031 kB / 298.5 MB, free: 26.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.1281, allocations: 84.72 kB / 298.6 MB, free: 26.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/0.1292, allocations: 1.405 MB / 300 MB, free: 26.73 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.227e-05/0.1293, allocations: 27.31 kB / 300 MB, free: 26.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00243/0.1317, allocations: 4.526 MB / 304.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1317, allocations: 0 / 304.6 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.133, allocations: 1.63 MB / 306.2 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.1331, allocations: 87.84 kB / 306.3 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.117e-05/0.1332, allocations: 20 kB / 306.3 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004066/0.1336, allocations: 170.5 kB / 306.5 MB, free: 23.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005876/0.1342, allocations: 0.5232 MB / 307 MB, free: 22.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.1342, allocations: 16.06 kB / 307 MB, free: 22.81 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001598/0.1344, allocations: 325.2 kB / 307.3 MB, free: 22.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1344, allocations: 2.844 kB / 307.3 MB, free: 22.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004485/0.1348, allocations: 186.6 kB / 307.5 MB, free: 22.39 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.0001869/0.135, allocations: 142 kB / 307.7 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007495/0.1358, allocations: 1.005 MB / 308.7 MB, free: 21.34 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.1358, allocations: 8.438 kB / 308.7 MB, free: 21.34 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.1362, allocations: 0.6269 MB / 309.3 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.1365, allocations: 105.4 kB / 309.4 MB, free: 20.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.1381, allocations: 1.44 MB / 310.8 MB, free: 19.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.239e-05/0.1382, allocations: 165.7 kB / 311 MB, free: 19.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001086/0.1383, allocations: 35.28 kB / 311 MB, free: 19.19 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.1385, allocations: 131.3 kB / 311.2 MB, free: 19.06 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.1385, allocations: 0 / 311.2 MB, free: 19.06 MB / 266.7 MB Notification: Performance of Templates: time 0.01726/0.1557, allocations: 20.27 MB / 331.4 MB, free: 14.8 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.211144777946174]