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.0009918/0.0009918, allocations: 80.8 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.001046/0.001046, allocations: 171.5 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.9845/0.9845, allocations: 177.1 MB / 205.3 MB, free: 5.105 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.243e-06/1.243e-06, allocations: 3.938 kB / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.307e-05/1.432e-05, allocations: 2.312 kB / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.002799/0.002813, allocations: 3.078 MB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.004315, allocations: 1.343 MB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.004436, allocations: 7.938 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.0048, allocations: 103.1 kB / 278 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.004963, allocations: 134.8 kB / 278.1 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.005516, allocations: 419 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005548/0.006071, allocations: 0.8346 MB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.006199, allocations: 77.64 kB / 279.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.006664, allocations: 0.4992 MB / 279.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009649/0.007628, allocations: 1.416 MB / 281.3 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.103e-05/0.00771, allocations: 68 kB / 281.4 MB, free: 9.207 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.00788, allocations: 135.9 kB / 281.5 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.008032, allocations: 239.8 kB / 281.8 MB, free: 8.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.008194, allocations: 243.3 kB / 282 MB, free: 8.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005583/0.008752, allocations: 0.732 MB / 282.7 MB, free: 7.867 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.008753, allocations: 4 kB / 282.7 MB, free: 7.863 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.008754, allocations: 0 / 282.7 MB, free: 7.863 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.008763, allocations: 4 kB / 282.7 MB, free: 7.859 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.001296/0.01006, allocations: 1.114 MB / 283.9 MB, free: 6.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.01009, allocations: 12.03 kB / 283.9 MB, free: 6.707 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002616/0.01035, allocations: 100.8 kB / 284 MB, free: 6.609 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.01067, allocations: 321.6 kB / 284.3 MB, free: 6.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.0107, allocations: 29.38 kB / 284.3 MB, free: 6.238 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.323e-05/0.01077, allocations: 56.25 kB / 284.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.01131, allocations: 490.4 kB / 284.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.01133, allocations: 192 / 284.8 MB, free: 5.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.01137, allocations: 20.12 kB / 284.9 MB, free: 5.668 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.01137, allocations: 8 kB / 284.9 MB, free: 5.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.01175, allocations: 262.4 kB / 285.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.01305, allocations: 0.9846 MB / 286.1 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003541/0.0134, allocations: 256.9 kB / 286.4 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.01353, allocations: 105.7 kB / 286.5 MB, free: 3.992 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.597e-05/0.01358, allocations: 12 kB / 286.5 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.01387, allocations: 307.1 kB / 286.8 MB, free: 3.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.202e-06/0.01388, allocations: 0 / 286.8 MB, free: 3.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002353/0.01623, allocations: 1.3 MB / 288.1 MB, free: 2.297 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.01626, allocations: 93.03 kB / 288.2 MB, free: 2.188 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.01662, allocations: 0.6149 MB / 288.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/0.01667, allocations: 45.7 kB / 288.8 MB, free: 1.504 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.793e-05/0.01677, allocations: 221.9 kB / 289 MB, free: 1.281 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.01687, allocations: 178.6 kB / 289.2 MB, free: 1.105 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.01701, allocations: 118.2 kB / 289.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.01711, allocations: 382.6 kB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.01732, allocations: 133.2 kB / 289.8 MB, free: 484 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.01751, allocations: 207 kB / 290 MB, free: 244 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1064/0.1239, allocations: 271.3 kB / 290.3 MB, free: 24.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.124, allocations: 2.656 kB / 290.3 MB, free: 24.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009973/0.125, allocations: 490.5 kB / 290.8 MB, free: 24.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.125, allocations: 7.047 kB / 290.8 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.125, allocations: 1.906 kB / 290.8 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006192/0.1256, allocations: 417 kB / 291.2 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002535/0.1259, allocations: 102.2 kB / 291.3 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.128, allocations: 3.627 MB / 294.9 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004396/0.1285, allocations: 147.7 kB / 295.1 MB, free: 21.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.1285, allocations: 21.88 kB / 295.1 MB, free: 21.45 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.0002331/0.1287, allocations: 152.8 kB / 295.2 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1288, allocations: 59.52 kB / 295.3 MB, free: 21.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.382e-05/0.1289, allocations: 91.09 kB / 295.4 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1289, allocations: 13.72 kB / 295.4 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1289, allocations: 1 kB / 295.4 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1289, allocations: 9.75 kB / 295.4 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1301, allocations: 0.7115 MB / 296.1 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1301, allocations: 2.031 kB / 296.1 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.1303, allocations: 71.7 kB / 296.2 MB, free: 21.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005745/0.1309, allocations: 408.1 kB / 296.6 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.1309, allocations: 23.81 kB / 296.6 MB, free: 21.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/0.1327, allocations: 3.36 MB / 300 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1327, allocations: 0.8906 kB / 300 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000999/0.1337, allocations: 0.6449 MB / 300.6 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.1339, allocations: 90.95 kB / 300.7 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.281e-05/0.134, allocations: 21.59 kB / 300.7 MB, free: 18.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.1345, allocations: 173.3 kB / 300.9 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007977/0.1353, allocations: 0.5128 MB / 301.4 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/0.1353, allocations: 23.14 kB / 301.4 MB, free: 18.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002559/0.1356, allocations: 285 kB / 301.7 MB, free: 18.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1356, allocations: 0 / 301.7 MB, free: 18.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005107/0.1361, allocations: 185.8 kB / 301.9 MB, free: 18.01 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.001069/0.1372, allocations: 489.6 kB / 302.4 MB, free: 17.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007173/0.1379, allocations: 0.5791 MB / 303 MB, free: 17.63 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.1379, allocations: 9.531 kB / 303 MB, free: 17.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003774/0.1383, allocations: 453.3 kB / 303.4 MB, free: 17.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1386, allocations: 103.8 kB / 303.5 MB, free: 17.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001951/0.1406, allocations: 1.368 MB / 304.9 MB, free: 16.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.1407, allocations: 165.1 kB / 305 MB, free: 16.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.1408, allocations: 52.69 kB / 305.1 MB, free: 16.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001778/0.141, allocations: 128.6 kB / 305.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.141, allocations: 0 / 305.2 MB, free: 16.66 MB / 266.7 MB Notification: Performance of Templates: time 0.01446/0.1554, allocations: 15.32 MB / 320.5 MB, free: 4.793 MB / 266.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 -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.3207934042438865]