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.001981/0.001981, allocations: 92.62 kB / 20.96 MB, free: 3.477 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.002322/0.002322, allocations: 149.3 kB / 24.25 MB, free: 188 kB / 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 1.446/1.446, allocations: 173.4 MB / 200.8 MB, free: 9.285 MB / 186.7 MB " [Timeout remaining time 178] 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.413e-06/1.413e-06, allocations: 0 / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.665e-05/2.806e-05, allocations: 6.312 kB / 267.3 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004557/0.004585, allocations: 2.787 MB / 270.1 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002414/0.006999, allocations: 1.13 MB / 271.2 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.007195, allocations: 11.94 kB / 271.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004559/0.007651, allocations: 79.23 kB / 271.3 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002629/0.007914, allocations: 126.8 kB / 271.4 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.008921, allocations: 411.2 kB / 271.8 MB, free: 2.156 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000992/0.009913, allocations: 0.8266 MB / 272.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.0101, allocations: 69.69 kB / 272.7 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007305/0.01083, allocations: 491.2 kB / 273.2 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00172/0.01255, allocations: 1.287 MB / 274.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.01269, allocations: 68 kB / 274.6 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.01293, allocations: 112 kB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.01319, allocations: 239.8 kB / 274.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000316/0.01351, allocations: 235.4 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001224/0.01473, allocations: 0.9542 MB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.01474, allocations: 0 / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01474, allocations: 0 / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.01475, allocations: 0 / 276.1 MB, free: 13.88 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.004132/0.01888, allocations: 1.408 MB / 277.5 MB, free: 12.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.01892, allocations: 8.922 kB / 277.5 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002655/0.01919, allocations: 112.4 kB / 277.6 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/0.0199, allocations: 373.5 kB / 278 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.021e-05/0.01995, allocations: 33.38 kB / 278 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.02008, allocations: 44.36 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.0222, allocations: 1.154 MB / 279.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.02222, allocations: 4.188 kB / 279.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/0.0223, allocations: 20.12 kB / 279.2 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.02231, allocations: 8 kB / 279.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003016/0.02533, allocations: 1.736 MB / 281 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004851/0.03018, allocations: 2.27 MB / 283.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/0.03204, allocations: 0.8834 MB / 284.1 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001327/0.03336, allocations: 0.7084 MB / 284.8 MB, free: 4.957 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-05/0.03342, allocations: 8.281 kB / 284.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001686/0.03511, allocations: 0.8974 MB / 285.8 MB, free: 4.039 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 2.074e-06/0.03511, allocations: 0 / 285.8 MB, free: 4.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.1278/0.1629, allocations: 5.424 MB / 291.2 MB, free: 33.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.163, allocations: 83.58 kB / 291.3 MB, free: 33.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.1642, allocations: 0.9107 MB / 292.2 MB, free: 33.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.1643, allocations: 47.5 kB / 292.2 MB, free: 33.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1645, allocations: 295 kB / 292.5 MB, free: 33.24 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.1646, allocations: 171.3 kB / 292.7 MB, free: 33.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002498/0.1649, allocations: 119.2 kB / 292.8 MB, free: 33.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.165, allocations: 384.3 kB / 293.2 MB, free: 32.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.1663, allocations: 0.8474 MB / 294 MB, free: 32.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.1676, allocations: 0.9342 MB / 294.9 MB, free: 32.3 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002058/0.1696, allocations: 1.462 MB / 296.4 MB, free: 31.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.1696, allocations: 1.344 kB / 296.4 MB, free: 31.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003868/0.1735, allocations: 2.506 MB / 298.9 MB, free: 31.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1735, allocations: 7.25 kB / 298.9 MB, free: 31.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1735, allocations: 0.8906 kB / 298.9 MB, free: 31.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/0.1752, allocations: 1.904 MB / 300.8 MB, free: 30.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.1757, allocations: 115.3 kB / 300.9 MB, free: 30.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006421/0.1821, allocations: 6.44 MB / 307.4 MB, free: 23.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.1836, allocations: 236.9 kB / 307.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.894e-05/0.1837, allocations: 22.84 kB / 307.6 MB, free: 23.68 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 (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,6), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003358/0.184, allocations: 253.9 kB / 307.9 MB, free: 23.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.1842, allocations: 86.11 kB / 308 MB, free: 23.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001641/0.1843, allocations: 100.5 kB / 308.1 MB, free: 23.26 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1843, allocations: 9.969 kB / 308.1 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.1844, allocations: 3.938 kB / 308.1 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1844, allocations: 7.562 kB / 308.1 MB, free: 23.25 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003057/0.1874, allocations: 2.894 MB / 311 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.83e-06/0.1874, allocations: 0.875 kB / 311 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000452/0.1879, allocations: 83.88 kB / 311.1 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.1892, allocations: 1.878 MB / 312.9 MB, free: 18.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.958e-05/0.1893, allocations: 23.91 kB / 313 MB, free: 18.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005088/0.1944, allocations: 6.069 MB / 319 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1944, allocations: 1.719 kB / 319 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.1983, allocations: 3.25 MB / 322.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.1986, allocations: 134.7 kB / 322.4 MB, free: 8.758 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.1987, allocations: 20 kB / 322.4 MB, free: 8.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.2003, allocations: 267.6 kB / 322.7 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001283/0.2016, allocations: 0.5771 MB / 323.3 MB, free: 7.898 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.295e-05/0.2017, allocations: 35.97 kB / 323.3 MB, free: 7.863 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004842/0.2021, allocations: 0.6747 MB / 324 MB, free: 7.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2021, allocations: 0 / 324 MB, free: 7.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007427/0.2029, allocations: 186.2 kB / 324.2 MB, free: 7.016 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.000243/0.2031, allocations: 158.8 kB / 324.3 MB, free: 6.859 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.2056, allocations: 1.883 MB / 326.2 MB, free: 4.957 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.2056, allocations: 0 / 326.2 MB, free: 4.957 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.207, allocations: 1.071 MB / 327.3 MB, free: 3.859 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006162/0.2076, allocations: 109.3 kB / 327.4 MB, free: 3.758 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.211, allocations: 1.856 MB / 329.2 MB, free: 1.879 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.2112, allocations: 326.7 kB / 329.6 MB, free: 1.535 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000195/0.2114, allocations: 35.28 kB / 329.6 MB, free: 1.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.2116, allocations: 52.47 kB / 329.6 MB, free: 1.453 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2116, allocations: 0 / 329.6 MB, free: 1.453 MB / 266.7 MB Notification: Performance of Templates: time 0.03457/0.2461, allocations: 19.65 MB / 349.3 MB, free: 13.83 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.376697272993624]