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.001045/0.001045, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001513/0.002557, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001012/0.001012, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001442/0.002454, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 1.021/1.021, allocations: 173.4 MB / 185.8 MB, free: 9.008 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08652/1.107, allocations: 52.5 MB / 238.3 MB, free: 4.445 MB / 234.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.483e-06/1.483e-06, allocations: 0 / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.207e-06/1.069e-05, allocations: 6.312 kB / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003299/0.00331, allocations: 2.998 MB / 242.5 MB, free: 188 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005427/0.008737, allocations: 1.184 MB / 243.7 MB, free: 15 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.008849, allocations: 11.94 kB / 243.7 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.009063, allocations: 79.23 kB / 243.8 MB, free: 14.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.009205, allocations: 122.9 kB / 243.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.009694, allocations: 407.1 kB / 244.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.01015, allocations: 0.8071 MB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002267/0.01038, allocations: 81.61 kB / 245.2 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007424/0.01112, allocations: 0.4999 MB / 245.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001148/0.01227, allocations: 1.252 MB / 247 MB, free: 11.73 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.01238, allocations: 71.94 kB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.0126, allocations: 123.9 kB / 247.2 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.01274, allocations: 172 kB / 247.3 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.01291, allocations: 175.6 kB / 247.5 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006213/0.01353, allocations: 0.5724 MB / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.983e-05/0.01355, allocations: 0 / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.01355, allocations: 4 kB / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.859e-05/0.01358, allocations: 3.984 kB / 248.1 MB, free: 10.62 MB / 250.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.001861/0.01544, allocations: 1.227 MB / 249.3 MB, free: 9.363 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.38e-05/0.01547, allocations: 11.97 kB / 249.3 MB, free: 9.352 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.01561, allocations: 76.88 kB / 249.4 MB, free: 9.277 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003726/0.01598, allocations: 321.5 kB / 249.7 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.01602, allocations: 29.38 kB / 249.7 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.567e-05/0.01608, allocations: 48.36 kB / 249.8 MB, free: 8.859 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000732/0.01682, allocations: 0.7016 MB / 250.5 MB, free: 8.145 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.01683, allocations: 4.141 kB / 250.5 MB, free: 8.141 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.01687, allocations: 20.12 kB / 250.5 MB, free: 8.121 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.01688, allocations: 8 kB / 250.5 MB, free: 8.113 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006362/0.01752, allocations: 0.7326 MB / 251.2 MB, free: 7.379 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.01958, allocations: 1.642 MB / 252.9 MB, free: 5.691 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004696/0.02005, allocations: 440.8 kB / 253.3 MB, free: 5.242 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.02027, allocations: 305.6 kB / 253.6 MB, free: 4.938 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.126e-05/0.02031, allocations: 8 kB / 253.6 MB, free: 4.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003977/0.02071, allocations: 487.1 kB / 254.1 MB, free: 4.438 MB / 250.7 MB Notification: Performance of pre-optimization done (n=47): time 1.663e-06/0.02071, allocations: 4 kB / 254.1 MB, free: 4.434 MB / 250.7 MB Notification: Performance of matching and sorting (n=49): time 0.003068/0.02378, allocations: 2.631 MB / 256.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.02381, allocations: 85.11 kB / 256.8 MB, free: 1.637 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.02421, allocations: 0.6405 MB / 257.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.02427, allocations: 49.69 kB / 257.5 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.0244, allocations: 225.9 kB / 257.7 MB, free: 0.707 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.0245, allocations: 170.6 kB / 257.9 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.02464, allocations: 122.2 kB / 258 MB, free: 424 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.02477, allocations: 390.5 kB / 258.4 MB, free: 24 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/0.02512, allocations: 369.2 kB / 258.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003048/0.02543, allocations: 442.9 kB / 259.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007416/0.02617, allocations: 0.6991 MB / 259.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.02617, allocations: 0 / 259.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001067/0.02724, allocations: 1.157 MB / 261 MB, free: 13.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.02726, allocations: 14.5 kB / 261.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.02727, allocations: 3.984 kB / 261.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.02829, allocations: 1.424 MB / 262.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.02852, allocations: 111.8 kB / 262.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003327/0.03185, allocations: 4.83 MB / 267.4 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.03237, allocations: 135.8 kB / 267.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.03241, allocations: 24 kB / 267.6 MB, free: 6.559 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,6), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.03262, allocations: 163 kB / 267.7 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-05/0.0327, allocations: 59.94 kB / 267.8 MB, free: 6.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.016e-05/0.03279, allocations: 90.17 kB / 267.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.0328, allocations: 4 kB / 267.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.0328, allocations: 0 / 267.9 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.03281, allocations: 3.984 kB / 267.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.03443, allocations: 1.659 MB / 269.6 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.03444, allocations: 0 / 269.6 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.03471, allocations: 91.94 kB / 269.6 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000155/0.03487, allocations: 91.47 kB / 269.7 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009712/0.03584, allocations: 1.408 MB / 271.1 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.841e-05/0.03588, allocations: 19.97 kB / 271.2 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1461/0.1819, allocations: 4.518 MB / 275.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/0.1819, allocations: 1.375 kB / 275.7 MB, free: 26.36 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.1845, allocations: 1.635 MB / 277.3 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.1846, allocations: 25 kB / 277.3 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008176/0.1854, allocations: 171.8 kB / 277.5 MB, free: 26.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001218/0.1866, allocations: 0.5164 MB / 278 MB, free: 26.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.1867, allocations: 24.17 kB / 278 MB, free: 26.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004696/0.1872, allocations: 319.7 kB / 278.4 MB, free: 26.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1872, allocations: 4.719 kB / 278.4 MB, free: 26.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009437/0.1882, allocations: 188.8 kB / 278.5 MB, free: 26.14 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.0002813/0.1884, allocations: 136.5 kB / 278.7 MB, free: 26.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001573/0.19, allocations: 1.001 MB / 279.7 MB, free: 25.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.03e-05/0.19, allocations: 10.72 kB / 279.7 MB, free: 25.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007875/0.1908, allocations: 0.6232 MB / 280.3 MB, free: 25.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005763/0.1914, allocations: 148.2 kB / 280.5 MB, free: 25.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00455/0.196, allocations: 1.475 MB / 281.9 MB, free: 25.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.1962, allocations: 163.6 kB / 282.1 MB, free: 25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002207/0.1964, allocations: 46.75 kB / 282.1 MB, free: 25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.1967, allocations: 123.4 kB / 282.3 MB, free: 24.95 MB / 266.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1967, allocations: 3.172 kB / 282.3 MB, free: 24.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01822/0.215, allocations: 20.52 MB / 302.8 MB, free: 9.539 MB / 266.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 -ignoreHideResult -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.1627812422811985]