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.001356/0.001356, allocations: 77.88 kB / 21.42 MB, free: 3.082 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.001537/0.001537, allocations: 170.6 kB / 24.82 MB, free: 8.957 MB / 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 1.031/1.031, allocations: 177.1 MB / 205.3 MB, free: 5.523 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 2.104e-06/2.104e-06, allocations: 3.984 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.948e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003331/0.00335, allocations: 3.063 MB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.00516, allocations: 1.309 MB / 277.8 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002059/0.005366, allocations: 8 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003789/0.005745, allocations: 99.09 kB / 277.9 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002043/0.005949, allocations: 134.8 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006922/0.006641, allocations: 423 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000649/0.00729, allocations: 0.8385 MB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.00743, allocations: 65.73 kB / 279.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006005/0.00803, allocations: 0.4991 MB / 279.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001328/0.009358, allocations: 1.42 MB / 281.2 MB, free: 9.453 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.009461, allocations: 68 kB / 281.3 MB, free: 9.387 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.009659, allocations: 131.9 kB / 281.4 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.009817, allocations: 239.8 kB / 281.7 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001712/0.009988, allocations: 247.3 kB / 281.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007158/0.0107, allocations: 0.7319 MB / 282.6 MB, free: 8.047 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.01071, allocations: 4 kB / 282.6 MB, free: 8.043 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01071, allocations: 0 / 282.6 MB, free: 8.043 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.01072, allocations: 0 / 282.6 MB, free: 8.043 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.001732/0.01245, allocations: 1.428 MB / 284.1 MB, free: 6.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.01249, allocations: 8.031 kB / 284.1 MB, free: 6.551 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003644/0.01285, allocations: 136.4 kB / 284.2 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.01326, allocations: 392.2 kB / 284.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/0.0133, allocations: 33.38 kB / 284.6 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.213e-05/0.01337, allocations: 36.38 kB / 284.7 MB, free: 5.938 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.01402, allocations: 0.4883 MB / 285.1 MB, free: 5.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.01404, allocations: 8.141 kB / 285.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.443e-05/0.01408, allocations: 24.11 kB / 285.2 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.01409, allocations: 8 kB / 285.2 MB, free: 5.391 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/0.01454, allocations: 314.3 kB / 285.5 MB, free: 5.082 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.01614, allocations: 1.327 MB / 286.8 MB, free: 3.699 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.01657, allocations: 281.9 kB / 287.1 MB, free: 3.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.01673, allocations: 127.3 kB / 287.2 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.564e-05/0.01677, allocations: 8 kB / 287.2 MB, free: 3.258 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003431/0.01711, allocations: 314.7 kB / 287.5 MB, free: 2.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.372e-06/0.01712, allocations: 0 / 287.5 MB, free: 2.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.002989/0.0201, allocations: 1.436 MB / 289 MB, free: 1.418 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.02014, allocations: 81.11 kB / 289 MB, free: 1.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004186/0.02056, allocations: 0.6867 MB / 289.7 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.286e-05/0.02061, allocations: 49.69 kB / 289.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.02079, allocations: 375.3 kB / 290.1 MB, free: 192 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.02089, allocations: 174.6 kB / 290.3 MB, free: 16 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.114/0.1349, allocations: 134.1 kB / 290.4 MB, free: 25.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1351, allocations: 0.5716 MB / 291 MB, free: 24.88 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003853/0.1355, allocations: 147.4 kB / 291.2 MB, free: 24.88 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.1358, allocations: 253.7 kB / 291.4 MB, free: 24.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/0.1362, allocations: 290.6 kB / 291.7 MB, free: 24.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.1362, allocations: 1.062 kB / 291.7 MB, free: 24.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001407/0.1376, allocations: 0.6331 MB / 292.3 MB, free: 24.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1376, allocations: 5.594 kB / 292.3 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.1376, allocations: 6.297 kB / 292.3 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007192/0.1384, allocations: 435.5 kB / 292.8 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003263/0.1387, allocations: 108.7 kB / 292.9 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003178/0.1419, allocations: 5.224 MB / 298.1 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005995/0.1425, allocations: 148.2 kB / 298.2 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.1425, allocations: 16.88 kB / 298.3 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 (stop2.stopped,stop2.mode,$PRE.stop2.mode,stop2.locked,stop2.startBackward,$PRE.stop2.startBackward,stop2.startForward,$PRE.stop2.startForward,stop2.free,$whenCondition1,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,supportFriction.free) * 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,5), (1,7), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.1427, allocations: 200.4 kB / 298.5 MB, free: 19.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.1429, allocations: 96.2 kB / 298.5 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.143, allocations: 92.25 kB / 298.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.143, allocations: 6.656 kB / 298.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.143, allocations: 0.6562 kB / 298.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.143, allocations: 5.875 kB / 298.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.1446, allocations: 0.9719 MB / 299.6 MB, free: 19.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1446, allocations: 3.375 kB / 299.6 MB, free: 19.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.1449, allocations: 79.97 kB / 299.7 MB, free: 19.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006644/0.1456, allocations: 429.9 kB / 300.1 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.003e-05/0.1457, allocations: 22.62 kB / 300.1 MB, free: 19.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002751/0.1484, allocations: 4.783 MB / 304.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.1484, allocations: 2.219 kB / 304.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.1498, allocations: 0.8107 MB / 305.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.1501, allocations: 143.4 kB / 305.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.259e-05/0.1502, allocations: 20.44 kB / 305.9 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007026/0.1509, allocations: 178.2 kB / 306.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009148/0.1518, allocations: 0.5187 MB / 306.6 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.272e-05/0.1519, allocations: 30.05 kB / 306.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003172/0.1522, allocations: 418.4 kB / 307 MB, free: 14.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1522, allocations: 0 / 307 MB, free: 14.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000599/0.1528, allocations: 178.8 kB / 307.2 MB, free: 14.53 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.0009511/0.1537, allocations: 384.7 kB / 307.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009085/0.1546, allocations: 0.7217 MB / 308.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.1546, allocations: 1.25 kB / 308.3 MB, free: 13.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.1551, allocations: 0.5708 MB / 308.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.1557, allocations: 123.1 kB / 309 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.158, allocations: 1.46 MB / 310.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001192/0.1581, allocations: 168.5 kB / 310.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.1582, allocations: 50.11 kB / 310.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.1584, allocations: 149.5 kB / 310.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.1584, allocations: 1.031 kB / 310.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of Templates: time 0.01655/0.175, allocations: 15.43 MB / 326.2 MB, free: 15.44 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.254179592244327]