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.001109/0.001109, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.001904/0.001904, allocations: 161.4 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.9994/0.9994, allocations: 177.1 MB / 205 MB, free: 5.617 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.333e-06/1.333e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.399e-05/1.532e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003166/0.003182, allocations: 3.107 MB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.004929, allocations: 1.316 MB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.005065, allocations: 7.938 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004311/0.005496, allocations: 95.16 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.005667, allocations: 138.8 kB / 277.6 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006242/0.006291, allocations: 423 kB / 278 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005445/0.006835, allocations: 0.8346 MB / 278.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.006981, allocations: 69.73 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.007473, allocations: 0.4991 MB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.00849, allocations: 1.412 MB / 280.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-05/0.008578, allocations: 72 kB / 280.9 MB, free: 9.551 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.008744, allocations: 131.9 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.008913, allocations: 243.8 kB / 281.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.009078, allocations: 239.4 kB / 281.5 MB, free: 8.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005894/0.009667, allocations: 0.7319 MB / 282.2 MB, free: 8.215 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.00967, allocations: 0 / 282.2 MB, free: 8.215 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.72e-07/0.00967, allocations: 0 / 282.2 MB, free: 8.215 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.009677, allocations: 0 / 282.2 MB, free: 8.215 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.001623/0.0113, allocations: 1.417 MB / 283.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.01133, allocations: 8.031 kB / 283.7 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.01164, allocations: 140.4 kB / 283.8 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003887/0.01203, allocations: 384.3 kB / 284.2 MB, free: 6.191 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.431e-05/0.01207, allocations: 29.38 kB / 284.2 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.01214, allocations: 44.38 kB / 284.3 MB, free: 6.121 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007526/0.01289, allocations: 0.5275 MB / 284.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.01291, allocations: 8.125 kB / 284.8 MB, free: 5.566 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.95e-05/0.01296, allocations: 20.12 kB / 284.8 MB, free: 5.547 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.01297, allocations: 12 kB / 284.8 MB, free: 5.535 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006035/0.01357, allocations: 379.3 kB / 285.2 MB, free: 5.168 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.01529, allocations: 1.424 MB / 286.6 MB, free: 3.676 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00052/0.01581, allocations: 321.9 kB / 286.9 MB, free: 3.336 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.01603, allocations: 143.3 kB / 287.1 MB, free: 3.188 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.01607, allocations: 15.92 kB / 287.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004151/0.01649, allocations: 346.9 kB / 287.4 MB, free: 2.812 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.383e-06/0.01649, allocations: 0 / 287.4 MB, free: 2.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003182/0.01967, allocations: 1.702 MB / 289.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.0197, allocations: 89.05 kB / 289.2 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.02018, allocations: 0.7026 MB / 289.9 MB, free: 212 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.664e-05/0.02024, allocations: 49.69 kB / 290 MB, free: 156 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1205/0.1408, allocations: 350.5 kB / 290.3 MB, free: 25.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002609/0.141, allocations: 178 kB / 290.5 MB, free: 25.61 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.1412, allocations: 125.3 kB / 290.6 MB, free: 25.58 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1414, allocations: 0.568 MB / 291.2 MB, free: 25.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/0.1419, allocations: 187 kB / 291.4 MB, free: 25.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003464/0.1422, allocations: 288.5 kB / 291.6 MB, free: 24.96 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.1427, allocations: 326 kB / 292 MB, free: 24.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.1427, allocations: 2.375 kB / 292 MB, free: 24.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001428/0.1441, allocations: 0.7029 MB / 292.7 MB, free: 24.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.183e-05/0.1442, allocations: 5.562 kB / 292.7 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.1442, allocations: 3.438 kB / 292.7 MB, free: 24.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008247/0.145, allocations: 439.6 kB / 293.1 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002993/0.1453, allocations: 108.6 kB / 293.2 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/0.1485, allocations: 5.3 MB / 298.5 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004902/0.149, allocations: 146.5 kB / 298.6 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.149, allocations: 28.53 kB / 298.7 MB, free: 19.97 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.0002106/0.1493, allocations: 206.6 kB / 298.9 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.1494, allocations: 90.66 kB / 299 MB, free: 19.76 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.145e-05/0.1495, allocations: 90.88 kB / 299.1 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1495, allocations: 8.375 kB / 299.1 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1495, allocations: 1.188 kB / 299.1 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.1495, allocations: 3.656 kB / 299.1 MB, free: 19.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.1511, allocations: 1.101 MB / 300.2 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1511, allocations: 1.219 kB / 300.2 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002261/0.1513, allocations: 78.41 kB / 300.2 MB, free: 19.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006107/0.1519, allocations: 435.8 kB / 300.7 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.152, allocations: 27.08 kB / 300.7 MB, free: 19.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.1549, allocations: 4.846 MB / 305.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1549, allocations: 2.875 kB / 305.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.1563, allocations: 0.881 MB / 306.4 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/0.1565, allocations: 137.9 kB / 306.6 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.084e-05/0.1566, allocations: 25.34 kB / 306.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005333/0.1571, allocations: 168.5 kB / 306.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000833/0.1579, allocations: 0.5242 MB / 307.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.456e-05/0.158, allocations: 28.86 kB / 307.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003621/0.1584, allocations: 471.3 kB / 307.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1584, allocations: 0 / 307.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006348/0.159, allocations: 179.8 kB / 307.9 MB, free: 13.92 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.0008412/0.1598, allocations: 379.2 kB / 308.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009456/0.1608, allocations: 0.7893 MB / 309.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1608, allocations: 0 / 309.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.1612, allocations: 0.5917 MB / 309.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.1617, allocations: 118.9 kB / 309.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.1639, allocations: 1.493 MB / 311.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.164, allocations: 165.1 kB / 311.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001315/0.1641, allocations: 40.22 kB / 311.5 MB, free: 12.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.1643, allocations: 48.66 kB / 311.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.092e-06/0.1643, allocations: 0 / 311.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Templates: time 0.01536/0.1796, allocations: 15.33 MB / 326.9 MB, free: 14.51 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.3444956867024302]