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.0007403/0.0007403, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009863/0.001727, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006955/0.0006955, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008963/0.001592, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 1.042/1.042, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09867/1.14, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.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.653e-06/1.653e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.948e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005558/0.005588, allocations: 3.118 MB / 248.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002804/0.008391, allocations: 1.355 MB / 249.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.008666, allocations: 7.938 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004262/0.009092, allocations: 103.1 kB / 249.6 MB, free: 9.051 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002928/0.009385, allocations: 134.8 kB / 249.7 MB, free: 8.918 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001015/0.0104, allocations: 427 kB / 250.1 MB, free: 8.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006445/0.01104, allocations: 0.819 MB / 251 MB, free: 7.68 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001533/0.0112, allocations: 65.72 kB / 251 MB, free: 7.613 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009161/0.01211, allocations: 0.5294 MB / 251.6 MB, free: 7.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.01325, allocations: 1.388 MB / 252.9 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.495e-05/0.01334, allocations: 68 kB / 253 MB, free: 5.625 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002673/0.01361, allocations: 131.9 kB / 253.1 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.01378, allocations: 172 kB / 253.3 MB, free: 5.328 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001772/0.01396, allocations: 175.6 kB / 253.5 MB, free: 5.156 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007413/0.0147, allocations: 0.6307 MB / 254.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.911e-05/0.01472, allocations: 0 / 254.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.01472, allocations: 0 / 254.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.01474, allocations: 0 / 254.1 MB, free: 4.523 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0015/0.01624, allocations: 1.258 MB / 255.4 MB, free: 3.238 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.01628, allocations: 16.62 kB / 255.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.01662, allocations: 181.9 kB / 255.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.01699, allocations: 317.6 kB / 255.9 MB, free: 2.691 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.01703, allocations: 33.31 kB / 255.9 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.269e-05/0.01709, allocations: 44.36 kB / 255.9 MB, free: 2.613 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005726/0.01766, allocations: 486.5 kB / 256.4 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.01768, allocations: 8.141 kB / 256.4 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.01771, allocations: 20.12 kB / 256.4 MB, free: 2.098 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.01772, allocations: 12 kB / 256.5 MB, free: 2.086 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003839/0.01811, allocations: 266.3 kB / 256.7 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.01946, allocations: 0.9769 MB / 257.7 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003705/0.01983, allocations: 253 kB / 257.9 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000135/0.01996, allocations: 97.69 kB / 258 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.02001, allocations: 16 kB / 258.1 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.02032, allocations: 307.1 kB / 258.4 MB, free: 100 kB / 250.7 MB Notification: Performance of pre-optimization done (n=48): time 1.282e-06/0.02032, allocations: 0 / 258.4 MB, free: 100 kB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.00284/0.02316, allocations: 1.314 MB / 259.7 MB, free: 14.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.0232, allocations: 89.05 kB / 259.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003689/0.02357, allocations: 0.6148 MB / 260.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.092e-05/0.02362, allocations: 57.69 kB / 260.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.02371, allocations: 217.9 kB / 260.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.709e-05/0.02381, allocations: 174.6 kB / 260.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.02395, allocations: 126.2 kB / 260.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.02406, allocations: 378.6 kB / 261.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.02426, allocations: 129.2 kB / 261.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.02445, allocations: 199 kB / 261.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002599/0.02471, allocations: 284.5 kB / 261.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.02471, allocations: 3.938 kB / 261.9 MB, free: 12.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0006372/0.02535, allocations: 475.6 kB / 262.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.02537, allocations: 7.984 kB / 262.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.02538, allocations: 4 kB / 262.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005234/0.0259, allocations: 422.3 kB / 262.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.02613, allocations: 111.9 kB / 262.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003204/0.02934, allocations: 3.623 MB / 266.5 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.02978, allocations: 147.8 kB / 266.7 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.02981, allocations: 19.98 kB / 266.7 MB, free: 7.355 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.0002248/0.03004, allocations: 159.1 kB / 266.8 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.03012, allocations: 63.92 kB / 266.9 MB, free: 7.125 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.099e-05/0.03021, allocations: 86.17 kB / 267 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.03022, allocations: 8 kB / 267 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.03022, allocations: 128 / 267 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.03023, allocations: 3.984 kB / 267 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.03133, allocations: 0.7165 MB / 267.7 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.03134, allocations: 7.938 kB / 267.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.03155, allocations: 91.88 kB / 267.8 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.03172, allocations: 87.5 kB / 267.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000476/0.0322, allocations: 406.2 kB / 268.3 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.03224, allocations: 23.95 kB / 268.3 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002186/0.03442, allocations: 3.356 MB / 271.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.03443, allocations: 0 / 271.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008842/0.03531, allocations: 0.6524 MB / 272.3 MB, free: 1.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.03539, allocations: 20 kB / 272.3 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.03583, allocations: 171.8 kB / 272.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009696/0.0368, allocations: 0.5107 MB / 273 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.02e-05/0.03684, allocations: 24.22 kB / 273.1 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002437/0.03708, allocations: 288.6 kB / 273.3 MB, free: 416 kB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.03708, allocations: 0 / 273.3 MB, free: 416 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005382/0.03762, allocations: 187.9 kB / 273.5 MB, free: 228 kB / 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.001175/0.03879, allocations: 0.5128 MB / 274 MB, free: 15.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008159/0.03961, allocations: 0.5809 MB / 274.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-05/0.03963, allocations: 8 kB / 274.6 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.04003, allocations: 439.5 kB / 275 MB, free: 14.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003883/0.04042, allocations: 178.8 kB / 275.2 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.0433, allocations: 1.34 MB / 276.6 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.04345, allocations: 173.7 kB / 276.7 MB, free: 13.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.04362, allocations: 43.28 kB / 276.8 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.04382, allocations: 123.3 kB / 276.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of SimCode: time 1.202e-06/0.04382, allocations: 0 / 276.9 MB, free: 12.92 MB / 282.7 MB Notification: Performance of Templates: time 0.1232/0.1671, allocations: 15.56 MB / 292.5 MB, free: 34.06 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 -ignoreHideResult -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.1337496815249324]