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.0008943/0.0008943, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0008104/0.0008104, allocations: 143.8 kB / 24.97 MB, free: 8.359 MB / 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 0.9265/0.9265, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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.643e-06/1.643e-06, allocations: 0 / 268 MB, free: 6.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.595e-05/2.759e-05, allocations: 6.25 kB / 268.1 MB, free: 6.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003145/0.003173, allocations: 2.984 MB / 271 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.004809, allocations: 1.145 MB / 272.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.004967, allocations: 7.938 kB / 272.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.005359, allocations: 83.28 kB / 272.3 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001637/0.005523, allocations: 126.8 kB / 272.4 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006938/0.006217, allocations: 419.1 kB / 272.8 MB, free: 1.973 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005887/0.006805, allocations: 0.815 MB / 273.6 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.006956, allocations: 61.73 kB / 273.7 MB, free: 1.086 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004803/0.007436, allocations: 491.2 kB / 274.2 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009997/0.008436, allocations: 1.291 MB / 275.5 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.805e-05/0.008524, allocations: 68 kB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.008691, allocations: 123.9 kB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003057/0.008997, allocations: 231.8 kB / 275.9 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.009181, allocations: 239.4 kB / 276.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006813/0.009863, allocations: 0.697 MB / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.009866, allocations: 0 / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.009867, allocations: 8 kB / 276.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.009878, allocations: 0 / 276.8 MB, free: 13.96 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.001751/0.01163, allocations: 1.382 MB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.01167, allocations: 12.92 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.01183, allocations: 108.4 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.01223, allocations: 380.2 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.01226, allocations: 29.38 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.161e-05/0.01233, allocations: 44.3 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.01339, allocations: 0.9961 MB / 279.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.0134, allocations: 4.141 kB / 279.7 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.01345, allocations: 20.12 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.01347, allocations: 8 kB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001125/0.01459, allocations: 1.315 MB / 281.1 MB, free: 9.566 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.01712, allocations: 2.158 MB / 283.2 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008133/0.01794, allocations: 0.6891 MB / 283.9 MB, free: 6.625 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004511/0.01839, allocations: 0.5226 MB / 284.5 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.01844, allocations: 15.92 kB / 284.5 MB, free: 6.078 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006614/0.0191, allocations: 0.7171 MB / 285.2 MB, free: 5.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 1.983e-06/0.0191, allocations: 0 / 285.2 MB, free: 5.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.004707/0.02381, allocations: 4.364 MB / 289.6 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.02384, allocations: 89.09 kB / 289.6 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.114/0.1378, allocations: 0.8664 MB / 290.5 MB, free: 33.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.138, allocations: 47.92 kB / 290.6 MB, free: 33.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.1382, allocations: 360.4 kB / 290.9 MB, free: 33.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.1384, allocations: 171.1 kB / 291.1 MB, free: 33.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.1385, allocations: 123.8 kB / 291.2 MB, free: 33.22 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1387, allocations: 0.5737 MB / 291.8 MB, free: 32.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008659/0.1395, allocations: 0.6583 MB / 292.4 MB, free: 32.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008646/0.1404, allocations: 0.7559 MB / 293.2 MB, free: 32.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1414, allocations: 1.167 MB / 294.4 MB, free: 32.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1414, allocations: 1.062 kB / 294.4 MB, free: 32.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002332/0.1438, allocations: 2.027 MB / 296.4 MB, free: 31.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1438, allocations: 10.06 kB / 296.4 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1438, allocations: 2.984 kB / 296.4 MB, free: 31.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.1452, allocations: 1.649 MB / 298 MB, free: 31.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/0.1455, allocations: 98.8 kB / 298.1 MB, free: 31.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/0.149, allocations: 7.115 MB / 305.3 MB, free: 26.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.1494, allocations: 140 kB / 305.4 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.1494, allocations: 28.48 kB / 305.4 MB, free: 25.93 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.00016/0.1496, allocations: 199.2 kB / 305.6 MB, free: 25.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.507e-05/0.1497, allocations: 92.22 kB / 305.7 MB, free: 25.64 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.339e-05/0.1498, allocations: 86.55 kB / 305.8 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1498, allocations: 8.547 kB / 305.8 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1498, allocations: 0.5625 kB / 305.8 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1498, allocations: 2.625 kB / 305.8 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.1516, allocations: 2.623 MB / 308.4 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1516, allocations: 0 / 308.4 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.1518, allocations: 77.03 kB / 308.5 MB, free: 23.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008147/0.1526, allocations: 1.627 MB / 310.1 MB, free: 21.74 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.1527, allocations: 34.97 kB / 310.2 MB, free: 21.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.1553, allocations: 6.653 MB / 316.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1553, allocations: 3.938 kB / 316.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.157, allocations: 2.642 MB / 319.5 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1572, allocations: 133.6 kB / 319.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.592e-05/0.1572, allocations: 23.94 kB / 319.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004687/0.1577, allocations: 171.8 kB / 319.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006558/0.1584, allocations: 0.5146 MB / 320.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.1584, allocations: 31.95 kB / 320.3 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000269/0.1587, allocations: 0.5732 MB / 320.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1587, allocations: 0 / 320.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004648/0.1591, allocations: 186.2 kB / 321.1 MB, free: 10.55 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.000183/0.1593, allocations: 162.8 kB / 321.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001039/0.1604, allocations: 1.638 MB / 322.9 MB, free: 8.723 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1604, allocations: 4.547 kB / 322.9 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005195/0.1609, allocations: 0.9642 MB / 323.8 MB, free: 7.715 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.1613, allocations: 118.3 kB / 324 MB, free: 7.605 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.1648, allocations: 1.639 MB / 325.6 MB, free: 5.945 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.165, allocations: 165.7 kB / 325.8 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002708/0.1652, allocations: 43.28 kB / 325.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.1654, allocations: 52.42 kB / 325.9 MB, free: 5.668 MB / 266.7 MB Notification: Performance of SimCode: time 2.134e-06/0.1654, allocations: 0 / 325.9 MB, free: 5.668 MB / 266.7 MB Notification: Performance of Templates: time 0.02128/0.1867, allocations: 19.6 MB / 345.5 MB, free: 2.09 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] 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","",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.4372118460014462]