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.0009609/0.0009609, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001005/0.001005, allocations: 160.5 kB / 24.55 MB, free: 16 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 0.9911/0.9911, allocations: 177 MB / 204.8 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 179] 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.092e-06/1.092e-06, allocations: 0 / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.603e-05/1.712e-05, allocations: 9.203 kB / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003135/0.003152, allocations: 3.107 MB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.005026, allocations: 1.312 MB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.005188, allocations: 7.938 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004464/0.005634, allocations: 107.1 kB / 277.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001889/0.005823, allocations: 126.9 kB / 277.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006577/0.006481, allocations: 427 kB / 278 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008556/0.007336, allocations: 0.8346 MB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.007489, allocations: 81.59 kB / 278.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004882/0.007977, allocations: 0.4991 MB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.009016, allocations: 1.408 MB / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.572e-05/0.009112, allocations: 72 kB / 280.9 MB, free: 9.434 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001972/0.009309, allocations: 131.9 kB / 281 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.009475, allocations: 235.8 kB / 281.2 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.009648, allocations: 243.3 kB / 281.5 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006503/0.0103, allocations: 0.732 MB / 282.2 MB, free: 8.102 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.973e-06/0.0103, allocations: 4 kB / 282.2 MB, free: 8.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.0103, allocations: 0 / 282.2 MB, free: 8.098 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.01031, allocations: 0 / 282.2 MB, free: 8.098 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.001607/0.01192, allocations: 1.417 MB / 283.6 MB, free: 6.625 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.01195, allocations: 11.98 kB / 283.6 MB, free: 6.613 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003216/0.01228, allocations: 136.3 kB / 283.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.01267, allocations: 392.2 kB / 284.2 MB, free: 6.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.01271, allocations: 29.38 kB / 284.2 MB, free: 6.043 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.408e-05/0.01279, allocations: 36.38 kB / 284.2 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000738/0.01352, allocations: 0.5275 MB / 284.7 MB, free: 5.457 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.01354, allocations: 4.141 kB / 284.7 MB, free: 5.453 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.5e-05/0.01358, allocations: 20.12 kB / 284.8 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.0136, allocations: 12 kB / 284.8 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006055/0.0142, allocations: 379.2 kB / 285.1 MB, free: 5.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.0163, allocations: 1.424 MB / 286.6 MB, free: 3.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.01682, allocations: 317.9 kB / 286.9 MB, free: 3.227 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.01707, allocations: 151.6 kB / 287 MB, free: 3.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.045e-05/0.01712, allocations: 11.94 kB / 287 MB, free: 3.059 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004283/0.01754, allocations: 346.5 kB / 287.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.363e-06/0.01755, allocations: 0 / 287.4 MB, free: 2.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.003151/0.0207, allocations: 1.712 MB / 289.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.02073, allocations: 85.11 kB / 289.2 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004816/0.02121, allocations: 0.6948 MB / 289.9 MB, free: 104 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.446e-05/0.02127, allocations: 49.69 kB / 289.9 MB, free: 48 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1248/0.146, allocations: 358.9 kB / 290.3 MB, free: 25.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.1463, allocations: 173.6 kB / 290.4 MB, free: 25.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.1465, allocations: 126.5 kB / 290.6 MB, free: 25.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1466, allocations: 0.568 MB / 291.1 MB, free: 24.94 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004859/0.1471, allocations: 182.7 kB / 291.3 MB, free: 24.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003467/0.1474, allocations: 296.7 kB / 291.6 MB, free: 24.81 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.1478, allocations: 316.4 kB / 291.9 MB, free: 24.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1479, allocations: 0 / 291.9 MB, free: 24.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001365/0.1492, allocations: 0.6971 MB / 292.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.1492, allocations: 6.406 kB / 292.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1493, allocations: 4.219 kB / 292.6 MB, free: 24.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000709/0.15, allocations: 441.7 kB / 293 MB, free: 24.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.1502, allocations: 107.6 kB / 293.2 MB, free: 24.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.1534, allocations: 5.308 MB / 298.5 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000483/0.1539, allocations: 138.5 kB / 298.6 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.1539, allocations: 29.7 kB / 298.6 MB, free: 19.82 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.0001917/0.1541, allocations: 203.5 kB / 298.8 MB, free: 19.65 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.1542, allocations: 93.14 kB / 298.9 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.215e-05/0.1543, allocations: 90.3 kB / 299 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1543, allocations: 5 kB / 299 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1543, allocations: 1.156 kB / 299 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1543, allocations: 3.719 kB / 299 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.1558, allocations: 1.106 MB / 300.1 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1558, allocations: 1.281 kB / 300.1 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.156, allocations: 75.2 kB / 300.2 MB, free: 19.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000617/0.1566, allocations: 434.7 kB / 300.6 MB, free: 19.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-05/0.1567, allocations: 26.56 kB / 300.6 MB, free: 19.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00246/0.1591, allocations: 4.856 MB / 305.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1591, allocations: 1.766 kB / 305.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.1605, allocations: 0.8798 MB / 306.4 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002097/0.1607, allocations: 137.8 kB / 306.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.204e-05/0.1607, allocations: 21.75 kB / 306.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005252/0.1613, allocations: 173.9 kB / 306.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008818/0.1622, allocations: 0.522 MB / 307.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.117e-05/0.1622, allocations: 31.69 kB / 307.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003637/0.1626, allocations: 464.5 kB / 307.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1626, allocations: 0 / 307.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005517/0.1631, allocations: 178.3 kB / 307.9 MB, free: 13.75 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.0007839/0.1639, allocations: 381 kB / 308.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009368/0.1648, allocations: 0.7882 MB / 309 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1649, allocations: 1.719 kB / 309 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.1653, allocations: 0.5828 MB / 309.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.1657, allocations: 121.2 kB / 309.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.1679, allocations: 1.494 MB / 311.2 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001111/0.168, allocations: 165.3 kB / 311.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.1682, allocations: 53.88 kB / 311.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.1683, allocations: 47.66 kB / 311.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1683, allocations: 0 / 311.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of Templates: time 0.01508/0.1834, allocations: 14.46 MB / 326 MB, free: 15.13 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","",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.568060817196965]