Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.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.0007433/0.0007433, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001004/0.001747, allocations: 445.8 kB / 10.44 MB, free: 256 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.0006312/0.0006312, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000873/0.001504, allocations: 475.6 kB / 11.8 MB, free: 2.367 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 0.9102/0.9102, allocations: 173.4 MB / 185.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08125/0.9914, allocations: 52.49 MB / 238.4 MB, free: 4.367 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.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 239.7 MB, free: 3.098 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.12e-05, allocations: 3.438 kB / 239.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003998/0.004019, allocations: 2.473 MB / 242.2 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.005214, allocations: 0.5067 MB / 242.7 MB, free: 96 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.005388, allocations: 4 kB / 242.7 MB, free: 92 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.005577, allocations: 55.5 kB / 242.8 MB, free: 36 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.005809, allocations: 91.2 kB / 242.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005733/0.006382, allocations: 187.6 kB / 243 MB, free: 15.76 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006266/0.007009, allocations: 490.9 kB / 243.5 MB, free: 15.28 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.007163, allocations: 58.78 kB / 243.6 MB, free: 15.22 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004953/0.007658, allocations: 307.5 kB / 243.9 MB, free: 14.92 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.008036, allocations: 207.5 kB / 244.1 MB, free: 14.72 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.984e-05/0.008116, allocations: 43.94 kB / 244.1 MB, free: 14.68 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003336/0.008449, allocations: 95.88 kB / 244.2 MB, free: 14.58 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00012/0.008569, allocations: 63.81 kB / 244.3 MB, free: 14.52 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.008726, allocations: 95.81 kB / 244.4 MB, free: 14.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005389/0.009265, allocations: 307 kB / 244.7 MB, free: 14.12 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.636e-05/0.009282, allocations: 0 / 244.7 MB, free: 14.12 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.009283, allocations: 3.938 kB / 244.7 MB, free: 14.12 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.009298, allocations: 0 / 244.7 MB, free: 14.12 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001141/0.01044, allocations: 0.6166 MB / 245.3 MB, free: 13.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.01048, allocations: 8.031 kB / 245.3 MB, free: 13.47 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001197/0.0106, allocations: 48.89 kB / 245.3 MB, free: 13.42 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.01096, allocations: 202.1 kB / 245.5 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.011, allocations: 25.03 kB / 245.6 MB, free: 13.18 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.01107, allocations: 32.36 kB / 245.6 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005489/0.01162, allocations: 283.1 kB / 245.9 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.01164, allocations: 4.141 kB / 245.9 MB, free: 12.85 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.589e-05/0.01167, allocations: 12.38 kB / 245.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.01169, allocations: 8.375 kB / 245.9 MB, free: 12.83 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000366/0.01205, allocations: 176.4 kB / 246.1 MB, free: 12.66 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.01348, allocations: 0.7068 MB / 246.8 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.01379, allocations: 157.8 kB / 246.9 MB, free: 11.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.01396, allocations: 89.75 kB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.85e-05/0.01399, allocations: 12 kB / 247 MB, free: 11.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.01403, allocations: 42.5 kB / 247.1 MB, free: 11.6 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 3.467e-06/0.01403, allocations: 0 / 247.1 MB, free: 11.6 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.003255/0.01729, allocations: 1.324 MB / 248.4 MB, free: 10.19 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.01733, allocations: 59.39 kB / 248.4 MB, free: 10.12 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001862/0.01751, allocations: 209 kB / 248.6 MB, free: 9.906 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.01756, allocations: 45.64 kB / 248.7 MB, free: 9.855 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.929e-05/0.01765, allocations: 152.9 kB / 248.8 MB, free: 9.699 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.01777, allocations: 158.7 kB / 249 MB, free: 9.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.01794, allocations: 98.08 kB / 249.1 MB, free: 9.441 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.01805, allocations: 338.8 kB / 249.4 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.01825, allocations: 92.89 kB / 249.5 MB, free: 9.012 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.01846, allocations: 164.3 kB / 249.7 MB, free: 8.824 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.0188, allocations: 254.3 kB / 249.9 MB, free: 8.551 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.01881, allocations: 7.984 kB / 249.9 MB, free: 8.543 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008047/0.01961, allocations: 392.1 kB / 250.3 MB, free: 8.152 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.01964, allocations: 11.88 kB / 250.3 MB, free: 8.141 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.01965, allocations: 4 kB / 250.3 MB, free: 8.137 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006789/0.02033, allocations: 389.4 kB / 250.7 MB, free: 7.75 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002747/0.0206, allocations: 79.91 kB / 250.8 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000874/0.02147, allocations: 1.194 MB / 252 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.02175, allocations: 52 kB / 252 MB, free: 6.375 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.02179, allocations: 8 kB / 252 MB, free: 6.367 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake1.mode,$PRE.brake1.mode,brake1.locked,brake1.startBackward,$PRE.brake1.startBackward,brake1.startForward,$PRE.brake1.startForward,brake1.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,7), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.02195, allocations: 144.4 kB / 252.2 MB, free: 6.215 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-05/0.02204, allocations: 35.97 kB / 252.2 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.986e-05/0.02212, allocations: 55.28 kB / 252.3 MB, free: 6.125 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.02212, allocations: 4 kB / 252.3 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.02213, allocations: 7.938 kB / 252.3 MB, free: 6.113 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.02214, allocations: 3.984 kB / 252.3 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.02381, allocations: 0.7837 MB / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.02382, allocations: 0 / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.02408, allocations: 71.91 kB / 253.1 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.02422, allocations: 51.78 kB / 253.2 MB, free: 5.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006162/0.02483, allocations: 381.6 kB / 253.6 MB, free: 4.781 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-05/0.02488, allocations: 23.97 kB / 253.6 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007985/0.02568, allocations: 1.171 MB / 254.8 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.98e-06/0.02569, allocations: 7.938 kB / 254.8 MB, free: 3.527 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009836/0.02667, allocations: 0.5897 MB / 255.4 MB, free: 2.898 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-05/0.02674, allocations: 20 kB / 255.4 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.02694, allocations: 23.97 kB / 255.4 MB, free: 2.855 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.02712, allocations: 87.77 kB / 255.5 MB, free: 2.77 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.02715, allocations: 19.97 kB / 255.5 MB, free: 2.75 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.049e-05/0.02723, allocations: 66.78 kB / 255.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.02723, allocations: 0 / 255.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000453/0.02769, allocations: 115.9 kB / 255.7 MB, free: 2.566 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002397/0.02792, allocations: 119.9 kB / 255.8 MB, free: 2.445 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006134/0.02854, allocations: 311.2 kB / 256.1 MB, free: 2.141 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.931e-05/0.02856, allocations: 4 kB / 256.1 MB, free: 2.137 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.02892, allocations: 207 kB / 256.3 MB, free: 1.934 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005628/0.02949, allocations: 365.6 kB / 256.7 MB, free: 1.516 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.03201, allocations: 0.7582 MB / 257.4 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.288e-05/0.03209, allocations: 97.28 kB / 257.5 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.03224, allocations: 38.95 kB / 257.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.03242, allocations: 103.3 kB / 257.7 MB, free: 468 kB / 250.7 MB Notification: Performance of SimCode: time 1.473e-06/0.03242, allocations: 0 / 257.7 MB, free: 468 kB / 250.7 MB Notification: Performance of Templates: time 0.01409/0.04651, allocations: 8.139 MB / 265.8 MB, free: 8.402 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Brake/Brake.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.516064423136413]