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.001911/0.001911, allocations: 73.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.002369/0.002369, allocations: 160.8 kB / 24.5 MB, free: 3.715 MB / 14.72 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.439/1.439, allocations: 177.2 MB / 204.9 MB, free: 9.008 MB / 190.1 MB " [Timeout remaining time 178] 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 0.00223/0.00223, allocations: 55.02 kB / 325.6 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1249, allocations: 53.33 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004635/0.1295, allocations: 2.903 MB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.1319, allocations: 1.293 MB / 383.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.132, allocations: 7.938 kB / 383.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004532/0.1325, allocations: 95.22 kB / 383.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002359/0.1327, allocations: 122.9 kB / 383.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008835/0.1336, allocations: 438.7 kB / 383.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000863/0.1345, allocations: 0.8153 MB / 384.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1347, allocations: 73.72 kB / 384.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005245/0.1352, allocations: 375.1 kB / 385 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001706/0.1369, allocations: 1.451 MB / 386.4 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.137, allocations: 71.98 kB / 386.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000251/0.1373, allocations: 131.9 kB / 386.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002602/0.1375, allocations: 231.8 kB / 386.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003308/0.1379, allocations: 302.5 kB / 387.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009931/0.1389, allocations: 0.9145 MB / 388.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1389, allocations: 7.938 kB / 388.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1389, allocations: 0 / 388.1 MB, free: 6.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.1389, allocations: 0 / 388.1 MB, free: 6.438 MB / 350.1 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.003934/0.1428, allocations: 1.431 MB / 389.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.1428, allocations: 12.03 kB / 389.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000483/0.1433, allocations: 108.4 kB / 389.6 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006622/0.144, allocations: 382.2 kB / 390 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.525e-05/0.144, allocations: 29.38 kB / 390 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.953e-05/0.1441, allocations: 36.38 kB / 390.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001547/0.1457, allocations: 0.638 MB / 390.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/0.1457, allocations: 11.94 kB / 390.7 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.705e-05/0.1458, allocations: 20 kB / 390.7 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.1458, allocations: 8 kB / 390.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/0.1478, allocations: 0.6857 MB / 391.4 MB, free: 2.996 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003741/0.1515, allocations: 1.434 MB / 392.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/0.153, allocations: 480.8 kB / 393.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008778/0.1539, allocations: 286.1 kB / 393.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.442e-05/0.154, allocations: 8 kB / 393.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.1552, allocations: 499.1 kB / 394.1 MB, free: 220 kB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.024e-06/0.1552, allocations: 0 / 394.1 MB, free: 220 kB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.009294/0.1645, allocations: 2.441 MB / 396.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.1645, allocations: 85.05 kB / 396.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.1656, allocations: 0.9141 MB / 397.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.71e-05/0.1657, allocations: 49.69 kB / 397.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002598/0.166, allocations: 296.6 kB / 397.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.1661, allocations: 178.6 kB / 398.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002499/0.1664, allocations: 126.2 kB / 398.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.1666, allocations: 382.7 kB / 398.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009374/0.1675, allocations: 321.1 kB / 398.9 MB, free: 11.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.1686, allocations: 418.9 kB / 399.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.1701, allocations: 0.5031 MB / 399.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1701, allocations: 0 / 399.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002915/0.173, allocations: 0.995 MB / 400.8 MB, free: 9.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.1731, allocations: 8 kB / 400.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.1731, allocations: 0 / 400.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001158/0.1742, allocations: 0.5529 MB / 401.3 MB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005556/0.1748, allocations: 111.8 kB / 401.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006622/0.1814, allocations: 4.445 MB / 405.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.183, allocations: 231.7 kB / 406.1 MB, free: 3.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.316e-05/0.1831, allocations: 24.06 kB / 406.1 MB, free: 3.742 MB / 366.1 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 (supportFriction.free,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,stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1) * 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004698/0.1835, allocations: 264.1 kB / 406.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.1837, allocations: 75.53 kB / 406.5 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001916/0.1839, allocations: 110.1 kB / 406.6 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.1839, allocations: 4 kB / 406.6 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.1839, allocations: 0 / 406.6 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1839, allocations: 0 / 406.6 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003042/0.1869, allocations: 1.22 MB / 407.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1869, allocations: 0 / 407.8 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.1874, allocations: 87.94 kB / 407.9 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.1885, allocations: 0.5177 MB / 408.4 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.609e-05/0.1886, allocations: 31.89 kB / 408.4 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005899/0.1945, allocations: 4.083 MB / 412.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1945, allocations: 64 / 412.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00362/0.1981, allocations: 1.259 MB / 413.8 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003657/0.1984, allocations: 139.4 kB / 413.9 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.1986, allocations: 20 kB / 413.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/0.2003, allocations: 271.6 kB / 414.2 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001497/0.2018, allocations: 0.5771 MB / 414.8 MB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.304e-05/0.2019, allocations: 27.97 kB / 414.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007643/0.2027, allocations: 0.667 MB / 415.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2027, allocations: 0 / 415.5 MB, free: 10.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008753/0.2036, allocations: 179.9 kB / 415.7 MB, free: 9.895 MB / 382.1 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.001609/0.2052, allocations: 432.9 kB / 416.1 MB, free: 9.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.2079, allocations: 0.921 MB / 417 MB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.2079, allocations: 0 / 417 MB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.2094, allocations: 0.6496 MB / 417.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.2101, allocations: 86.31 kB / 417.7 MB, free: 7.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004576/0.2147, allocations: 1.899 MB / 419.6 MB, free: 5.984 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.215, allocations: 334.5 kB / 420 MB, free: 5.637 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002201/0.2153, allocations: 47.27 kB / 420 MB, free: 5.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.2154, allocations: 48.48 kB / 420 MB, free: 5.547 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2154, allocations: 3.938 kB / 420.1 MB, free: 5.543 MB / 382.1 MB Notification: Performance of Templates: time 0.02527/0.2407, allocations: 14.18 MB / 434.2 MB, free: 7.398 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.100543660926633]