Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001921/0.001921, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 160.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Translational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.791e-05/3.964e-05, allocations: 9.125 kB / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005381/0.005421, allocations: 3.061 MB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.00841, allocations: 1.312 MB / 276.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.008644, allocations: 7.938 kB / 276.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004911/0.009135, allocations: 103.1 kB / 276.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003074/0.009442, allocations: 138.8 kB / 276.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000991/0.01043, allocations: 427 kB / 277.2 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00099/0.01142, allocations: 0.8307 MB / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.01162, allocations: 69.73 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008224/0.01244, allocations: 0.4991 MB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.01445, allocations: 1.416 MB / 280 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001692/0.01462, allocations: 68 kB / 280.1 MB, free: 9.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000323/0.01494, allocations: 135.8 kB / 280.2 MB, free: 9.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.01525, allocations: 239.8 kB / 280.5 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003321/0.01558, allocations: 243.3 kB / 280.7 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001347/0.01693, allocations: 0.9892 MB / 281.7 MB, free: 8.281 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.01693, allocations: 4 kB / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.01694, allocations: 0 / 281.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.01695, allocations: 0 / 281.7 MB, free: 8.277 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.003727/0.02067, allocations: 1.507 MB / 283.2 MB, free: 6.715 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.02072, allocations: 15.98 kB / 283.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006001/0.02132, allocations: 128.4 kB / 283.3 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007316/0.02205, allocations: 380.3 kB / 283.7 MB, free: 6.176 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.978e-05/0.02211, allocations: 33.31 kB / 283.7 MB, free: 6.145 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.02222, allocations: 48.36 kB / 283.8 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.02372, allocations: 0.6324 MB / 284.4 MB, free: 5.445 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/0.02375, allocations: 4.141 kB / 284.4 MB, free: 5.441 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.338e-05/0.02382, allocations: 20.12 kB / 284.5 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.02383, allocations: 8 kB / 284.5 MB, free: 5.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001888/0.02572, allocations: 0.6583 MB / 285.1 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003569/0.02929, allocations: 1.575 MB / 286.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.03064, allocations: 465.9 kB / 287.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007534/0.03139, allocations: 255.3 kB / 287.4 MB, free: 2.379 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.548e-05/0.03148, allocations: 15.94 kB / 287.4 MB, free: 2.363 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.03264, allocations: 498.4 kB / 287.9 MB, free: 1.852 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 2.103e-06/0.03265, allocations: 0 / 287.9 MB, free: 1.852 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1222/0.1548, allocations: 2.198 MB / 290.1 MB, free: 28.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.1548, allocations: 83.45 kB / 290.2 MB, free: 28.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008108/0.1556, allocations: 0.7758 MB / 291 MB, free: 28.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.674e-05/0.1557, allocations: 52.38 kB / 291 MB, free: 27.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.1559, allocations: 376.8 kB / 291.4 MB, free: 27.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.1561, allocations: 186.8 kB / 291.6 MB, free: 27.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.1563, allocations: 138.1 kB / 291.7 MB, free: 27.79 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1565, allocations: 0.599 MB / 292.3 MB, free: 27.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007647/0.1573, allocations: 306.4 kB / 292.6 MB, free: 27.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008099/0.1581, allocations: 446.5 kB / 293 MB, free: 26.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.1592, allocations: 0.5138 MB / 293.5 MB, free: 26.71 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.1592, allocations: 2.422 kB / 293.5 MB, free: 26.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002521/0.1617, allocations: 1.011 MB / 294.6 MB, free: 26.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1618, allocations: 6.406 kB / 294.6 MB, free: 26.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.1618, allocations: 3.016 kB / 294.6 MB, free: 26.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.1628, allocations: 0.5554 MB / 295.1 MB, free: 26.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.1633, allocations: 102.7 kB / 295.2 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.1694, allocations: 5.843 MB / 301.1 MB, free: 20.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009762/0.1704, allocations: 149.1 kB / 301.2 MB, free: 20.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/0.1704, allocations: 26.42 kB / 301.2 MB, free: 20.92 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,7), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002735/0.1707, allocations: 222.8 kB / 301.5 MB, free: 20.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.1709, allocations: 92.94 kB / 301.5 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001927/0.1711, allocations: 95.72 kB / 301.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1711, allocations: 6.516 kB / 301.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1711, allocations: 0 / 301.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1711, allocations: 4.234 kB / 301.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002741/0.1738, allocations: 1.333 MB / 303 MB, free: 19.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1738, allocations: 0.5156 kB / 303 MB, free: 19.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004033/0.1742, allocations: 81.41 kB / 303.1 MB, free: 19.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008989/0.1751, allocations: 0.5239 MB / 303.6 MB, free: 19.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.053e-05/0.1752, allocations: 22.72 kB / 303.6 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004086/0.1793, allocations: 5.319 MB / 308.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1793, allocations: 4.031 kB / 308.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/0.1823, allocations: 1.288 MB / 310.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004061/0.1827, allocations: 138.9 kB / 310.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1828, allocations: 21.59 kB / 310.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.1839, allocations: 167.9 kB / 310.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001088/0.185, allocations: 0.5896 MB / 311.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.268e-05/0.1851, allocations: 29.78 kB / 311.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000416/0.1855, allocations: 499.9 kB / 311.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1855, allocations: 3.938 kB / 311.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00076/0.1863, allocations: 184.3 kB / 311.8 MB, free: 13.84 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.002444/0.1887, allocations: 410.2 kB / 312.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.1905, allocations: 1.057 MB / 313.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1905, allocations: 4 kB / 313.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009516/0.1915, allocations: 0.7113 MB / 314 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005866/0.192, allocations: 120 kB / 314.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.1949, allocations: 1.532 MB / 315.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.1951, allocations: 314.9 kB / 316 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001807/0.1953, allocations: 43.27 kB / 316 MB, free: 10.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.1954, allocations: 48.48 kB / 316 MB, free: 10.05 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1954, allocations: 0 / 316 MB, free: 10.05 MB / 266.7 MB Notification: Performance of Templates: time 0.02039/0.2158, allocations: 14.41 MB / 330.5 MB, free: 11.7 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.243837736081332]