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.0008375/0.0008375, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.0009319/0.0009319, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9667/0.9667, allocations: 177.1 MB / 205 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] 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 1.733e-06/1.733e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.108e-05/2.281e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003832/0.003855, allocations: 3.111 MB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.005953, allocations: 1.312 MB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.006111, allocations: 11.94 kB / 277.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004429/0.006554, allocations: 107.1 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002385/0.006792, allocations: 134.8 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008569/0.007649, allocations: 423 kB / 278 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006175/0.008267, allocations: 0.8346 MB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.008417, allocations: 65.69 kB / 278.9 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.008921, allocations: 0.5031 MB / 279.4 MB, free: 11.01 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.009945, allocations: 1.412 MB / 280.9 MB, free: 9.594 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.01005, allocations: 68 kB / 280.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.01026, allocations: 135.8 kB / 281.1 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002027/0.01047, allocations: 243.8 kB / 281.3 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.01069, allocations: 239.4 kB / 281.5 MB, free: 8.922 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007539/0.01144, allocations: 0.7281 MB / 282.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.01144, allocations: 3.938 kB / 282.3 MB, free: 8.188 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01144, allocations: 4 kB / 282.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.01145, allocations: 4 kB / 282.3 MB, free: 8.18 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.001634/0.01309, allocations: 1.409 MB / 283.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.01312, allocations: 12.03 kB / 283.7 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.01345, allocations: 132.4 kB / 283.8 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004104/0.01386, allocations: 388.2 kB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.958e-05/0.0139, allocations: 33.38 kB / 284.2 MB, free: 6.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.016e-05/0.01398, allocations: 40.38 kB / 284.3 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007523/0.01473, allocations: 0.5237 MB / 284.8 MB, free: 5.551 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.01475, allocations: 4.141 kB / 284.8 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.79e-05/0.0148, allocations: 24.11 kB / 284.8 MB, free: 5.523 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.01481, allocations: 8 kB / 284.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006084/0.01541, allocations: 379.2 kB / 285.2 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.01715, allocations: 1.42 MB / 286.6 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005211/0.01767, allocations: 321.9 kB / 286.9 MB, free: 3.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.0179, allocations: 143.6 kB / 287.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.01795, allocations: 15.94 kB / 287.1 MB, free: 3.156 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004065/0.01835, allocations: 350.4 kB / 287.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.332e-06/0.01836, allocations: 0 / 287.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003216/0.02157, allocations: 1.704 MB / 289.1 MB, free: 1.016 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.0216, allocations: 85.11 kB / 289.2 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004745/0.02208, allocations: 0.7026 MB / 289.9 MB, free: 196 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.02213, allocations: 45.7 kB / 290 MB, free: 144 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1323/0.1544, allocations: 356 kB / 290.3 MB, free: 25.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002246/0.1546, allocations: 175.9 kB / 290.5 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.1548, allocations: 133.5 kB / 290.6 MB, free: 25.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1549, allocations: 0.567 MB / 291.2 MB, free: 25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/0.1554, allocations: 185 kB / 291.4 MB, free: 25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.1557, allocations: 289.4 kB / 291.6 MB, free: 24.87 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003885/0.1561, allocations: 329.9 kB / 292 MB, free: 24.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1561, allocations: 1.375 kB / 292 MB, free: 24.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0012/0.1573, allocations: 0.6961 MB / 292.7 MB, free: 24.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1573, allocations: 6.531 kB / 292.7 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1573, allocations: 3.062 kB / 292.7 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006551/0.158, allocations: 450 kB / 293.1 MB, free: 24.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.1582, allocations: 98.19 kB / 293.2 MB, free: 24.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002728/0.1609, allocations: 5.303 MB / 298.5 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004465/0.1614, allocations: 142.3 kB / 298.7 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.041e-05/0.1614, allocations: 23.83 kB / 298.7 MB, free: 19.88 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.0001674/0.1616, allocations: 209 kB / 298.9 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1617, allocations: 90.81 kB / 299 MB, free: 19.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.445e-05/0.1618, allocations: 90.34 kB / 299.1 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.1618, allocations: 5.25 kB / 299.1 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1618, allocations: 1.219 kB / 299.1 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1618, allocations: 3.906 kB / 299.1 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.1633, allocations: 1.104 MB / 300.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1633, allocations: 1.281 kB / 300.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.1635, allocations: 75.5 kB / 300.2 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005396/0.164, allocations: 444 kB / 300.7 MB, free: 19.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.164, allocations: 23.12 kB / 300.7 MB, free: 19.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.1665, allocations: 4.851 MB / 305.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.1665, allocations: 1.406 kB / 305.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.1677, allocations: 0.8824 MB / 306.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.1679, allocations: 139 kB / 306.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.525e-05/0.168, allocations: 20.97 kB / 306.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.1685, allocations: 171.9 kB / 306.8 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007902/0.1693, allocations: 0.5225 MB / 307.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.1693, allocations: 30.11 kB / 307.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003113/0.1696, allocations: 463.5 kB / 307.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1696, allocations: 0 / 307.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004738/0.1701, allocations: 181.1 kB / 307.9 MB, free: 13.82 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.0007185/0.1708, allocations: 394.3 kB / 308.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008494/0.1717, allocations: 0.7787 MB / 309.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1717, allocations: 5.062 kB / 309.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004333/0.1721, allocations: 0.5845 MB / 309.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.1725, allocations: 118 kB / 309.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.1746, allocations: 1.491 MB / 311.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.398e-05/0.1747, allocations: 163.6 kB / 311.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.1748, allocations: 54.5 kB / 311.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.1749, allocations: 51.2 kB / 311.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1749, allocations: 0 / 311.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of Templates: time 0.01831/0.1932, allocations: 14.46 MB / 326 MB, free: 15.23 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.496614680159837]