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.0008871/0.0008871, allocations: 80.8 kB / 22.28 MB, free: 2.211 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.0009201/0.0009201, allocations: 166.7 kB / 25.7 MB, free: 8.457 MB / 18.57 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 0.9919/0.9919, allocations: 158.6 MB / 187.6 MB, free: 2.77 MB / 170.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 2.054e-06/2.054e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.517e-05/2.722e-05, allocations: 2.312 kB / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004961/0.004988, allocations: 2.997 MB / 254.5 MB, free: 4.227 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002784/0.007772, allocations: 1.22 MB / 255.8 MB, free: 3.004 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002523/0.008025, allocations: 4 kB / 255.8 MB, free: 3 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004729/0.008497, allocations: 75.3 kB / 255.8 MB, free: 2.926 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002695/0.008767, allocations: 130.8 kB / 256 MB, free: 2.797 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.00977, allocations: 407.1 kB / 256.4 MB, free: 2.398 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007743/0.01054, allocations: 0.815 MB / 257.2 MB, free: 1.582 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.01071, allocations: 65.73 kB / 257.2 MB, free: 1.512 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006326/0.01134, allocations: 499.1 kB / 257.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.01291, allocations: 1.291 MB / 259 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.01309, allocations: 68 kB / 259.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003147/0.0134, allocations: 123.9 kB / 259.2 MB, free: 15.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002524/0.01365, allocations: 235.8 kB / 259.4 MB, free: 15.31 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.01389, allocations: 239.3 kB / 259.7 MB, free: 15.08 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000653/0.01454, allocations: 0.7009 MB / 260.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.01455, allocations: 0 / 260.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.01455, allocations: 0 / 260.4 MB, free: 14.38 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.01456, allocations: 0 / 260.4 MB, free: 14.38 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001576/0.01614, allocations: 1.091 MB / 261.5 MB, free: 13.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.01619, allocations: 15.98 kB / 261.5 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.01633, allocations: 76.86 kB / 261.6 MB, free: 13.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.01671, allocations: 325.5 kB / 261.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.668e-05/0.01675, allocations: 37.36 kB / 261.9 MB, free: 12.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.981e-05/0.01682, allocations: 40.33 kB / 262 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007406/0.01756, allocations: 0.7094 MB / 262.7 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.01758, allocations: 4.188 kB / 262.7 MB, free: 12.02 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.01762, allocations: 20.12 kB / 262.7 MB, free: 12 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.01763, allocations: 8 kB / 262.7 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006781/0.01831, allocations: 0.7287 MB / 263.4 MB, free: 11.26 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.02014, allocations: 1.642 MB / 265.1 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004942/0.02063, allocations: 440.9 kB / 265.5 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007066/0.02134, allocations: 297.6 kB / 265.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.15e-05/0.02139, allocations: 4 kB / 265.8 MB, free: 8.824 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004932/0.02188, allocations: 0.4995 MB / 266.3 MB, free: 8.309 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.02189, allocations: 0 / 266.3 MB, free: 8.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.003275/0.02516, allocations: 2.631 MB / 268.9 MB, free: 5.613 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.02521, allocations: 81.11 kB / 269 MB, free: 5.516 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004193/0.02563, allocations: 0.6444 MB / 269.6 MB, free: 4.859 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.02569, allocations: 45.7 kB / 269.7 MB, free: 4.809 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.02579, allocations: 221.9 kB / 269.9 MB, free: 4.586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.0259, allocations: 178.6 kB / 270.1 MB, free: 4.41 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.02604, allocations: 110.2 kB / 270.2 MB, free: 4.297 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.02616, allocations: 386.6 kB / 270.6 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.0265, allocations: 369.2 kB / 270.9 MB, free: 3.551 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.02681, allocations: 450.8 kB / 271.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005092/0.02732, allocations: 0.6798 MB / 272 MB, free: 2.367 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.02733, allocations: 0 / 272 MB, free: 2.367 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001358/0.02869, allocations: 1.171 MB / 273.2 MB, free: 1.18 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.0287, allocations: 4 kB / 273.2 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.02871, allocations: 4 kB / 273.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001082/0.02979, allocations: 1.42 MB / 274.6 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/0.03003, allocations: 115.8 kB / 274.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003278/0.03331, allocations: 4.822 MB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004131/0.03372, allocations: 143.8 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.03376, allocations: 20 kB / 279.7 MB, free: 10.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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004668/0.03422, allocations: 155.2 kB / 279.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.03431, allocations: 56.12 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.512e-05/0.03438, allocations: 90.17 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.187e-06/0.03439, allocations: 8 kB / 280 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.03439, allocations: 4 kB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.0344, allocations: 3.984 kB / 280 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.03586, allocations: 1.658 MB / 281.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.03587, allocations: 8.062 kB / 281.7 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/0.03606, allocations: 75.88 kB / 281.8 MB, free: 8.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009767/0.03704, allocations: 1.408 MB / 283.2 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.03709, allocations: 23.97 kB / 283.2 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00319/0.04028, allocations: 4.527 MB / 287.7 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.04028, allocations: 4 kB / 287.8 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001466/0.04175, allocations: 1.638 MB / 289.4 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.04195, allocations: 95.36 kB / 289.5 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/0.04202, allocations: 24 kB / 289.5 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.04246, allocations: 163.8 kB / 289.7 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007448/0.0432, allocations: 0.5107 MB / 290.2 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.021e-05/0.04325, allocations: 32.2 kB / 290.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002248/0.04348, allocations: 316.6 kB / 290.5 MB, free: 15.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.04348, allocations: 0 / 290.5 MB, free: 15.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005427/0.04402, allocations: 184 kB / 290.7 MB, free: 15.2 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002133/0.04424, allocations: 132.3 kB / 290.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009661/0.0452, allocations: 1.008 MB / 291.8 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.04521, allocations: 8 kB / 291.8 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005271/0.04574, allocations: 0.632 MB / 292.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004491/0.04619, allocations: 106.9 kB / 292.6 MB, free: 13.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.04872, allocations: 1.442 MB / 294 MB, free: 11.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.04919, allocations: 161.9 kB / 294.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.04934, allocations: 39.28 kB / 294.2 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.04955, allocations: 127.3 kB / 294.3 MB, free: 11.43 MB / 282.7 MB Notification: Performance of SimCode: time 2.925e-06/0.04955, allocations: 0 / 294.3 MB, free: 11.43 MB / 282.7 MB Notification: Performance of Templates: time 0.02474/0.0743, allocations: 20.28 MB / 314.6 MB, free: 7.023 MB / 298.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.351539646741003]