Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.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.001505/0.001505, allocations: 80.8 kB / 22.28 MB, free: 2.203 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.001841/0.001841, allocations: 167.8 kB / 25.7 MB, free: 8.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.045/1.045, allocations: 158.6 MB / 187.6 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.Translational.Examples.Brake") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.026e-05, allocations: 6.25 kB / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.006218/0.006238, allocations: 2.452 MB / 254 MB, free: 4.758 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009966/0.007235, allocations: 0.5232 MB / 254.5 MB, free: 4.23 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00313/0.01037, allocations: 7.938 kB / 254.5 MB, free: 4.223 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.01055, allocations: 43.58 kB / 254.6 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.01068, allocations: 87.16 kB / 254.7 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.01109, allocations: 199.6 kB / 254.9 MB, free: 3.898 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003378/0.01143, allocations: 498.9 kB / 255.3 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.01155, allocations: 46.81 kB / 255.4 MB, free: 3.363 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002678/0.01182, allocations: 299.5 kB / 255.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.01205, allocations: 195.5 kB / 255.9 MB, free: 2.879 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.464e-05/0.0121, allocations: 36 kB / 255.9 MB, free: 2.844 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001892/0.01229, allocations: 99.88 kB / 256 MB, free: 2.746 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.0124, allocations: 103.6 kB / 256.1 MB, free: 2.645 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.01251, allocations: 131.7 kB / 256.2 MB, free: 2.516 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003982/0.01291, allocations: 370.8 kB / 256.6 MB, free: 2.152 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.01291, allocations: 4 kB / 256.6 MB, free: 2.148 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01291, allocations: 4 kB / 256.6 MB, free: 2.145 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.01292, allocations: 0 / 256.6 MB, free: 2.145 MB / 234.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.0006674/0.01359, allocations: 0.5427 MB / 257.1 MB, free: 1.57 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.01362, allocations: 19.97 kB / 257.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.01369, allocations: 44.84 kB / 257.2 MB, free: 1.508 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.0139, allocations: 186.3 kB / 257.4 MB, free: 1.301 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.01394, allocations: 21.03 kB / 257.4 MB, free: 1.281 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.33e-05/0.014, allocations: 40.31 kB / 257.5 MB, free: 1.242 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.01437, allocations: 287.1 kB / 257.7 MB, free: 0.9531 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.01438, allocations: 4.188 kB / 257.7 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.0144, allocations: 8.375 kB / 257.7 MB, free: 0.9414 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.333e-06/0.01441, allocations: 12.38 kB / 257.8 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.01465, allocations: 172.4 kB / 257.9 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009571/0.0156, allocations: 0.7145 MB / 258.6 MB, free: 4 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002188/0.01582, allocations: 160.1 kB / 258.8 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.01593, allocations: 97.75 kB / 258.9 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.01596, allocations: 4 kB / 258.9 MB, free: 15.74 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.01598, allocations: 38.5 kB / 258.9 MB, free: 15.69 MB / 250.7 MB Notification: Performance of pre-optimization done (n=39): time 1.613e-06/0.01598, allocations: 0 / 258.9 MB, free: 15.69 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.002072/0.01805, allocations: 1.187 MB / 260.1 MB, free: 14.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.01808, allocations: 63.16 kB / 260.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.01823, allocations: 209 kB / 260.4 MB, free: 14.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.01826, allocations: 41.69 kB / 260.4 MB, free: 14.11 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.01832, allocations: 141 kB / 260.6 MB, free: 13.97 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.629e-05/0.01842, allocations: 166.6 kB / 260.7 MB, free: 13.8 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.01853, allocations: 98.03 kB / 260.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.01863, allocations: 338.8 kB / 261.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001232/0.01875, allocations: 96.89 kB / 261.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.0189, allocations: 168.3 kB / 261.4 MB, free: 13.08 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.01913, allocations: 242.5 kB / 261.6 MB, free: 12.82 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.01913, allocations: 0 / 261.6 MB, free: 12.82 MB / 250.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005096/0.01964, allocations: 407.8 kB / 262 MB, free: 12.41 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.01965, allocations: 11.94 kB / 262.1 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.01965, allocations: 0 / 262.1 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004499/0.0201, allocations: 389.6 kB / 262.4 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.02026, allocations: 75.91 kB / 262.5 MB, free: 11.94 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006585/0.02092, allocations: 1.19 MB / 263.7 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.02107, allocations: 47.94 kB / 263.8 MB, free: 10.65 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.02109, allocations: 12 kB / 263.8 MB, free: 10.64 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.0001317/0.02122, allocations: 148.6 kB / 263.9 MB, free: 10.48 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.896e-05/0.02127, allocations: 35.97 kB / 263.9 MB, free: 10.45 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.42e-05/0.02132, allocations: 47.3 kB / 264 MB, free: 10.4 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.02133, allocations: 4 kB / 264 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.02133, allocations: 3.938 kB / 264 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.02134, allocations: 3.984 kB / 264 MB, free: 10.39 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.02236, allocations: 0.7824 MB / 264.8 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.02236, allocations: 160 / 264.8 MB, free: 9.559 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001418/0.0225, allocations: 67.91 kB / 264.8 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003682/0.02287, allocations: 381.4 kB / 265.2 MB, free: 9.113 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.02289, allocations: 19.92 kB / 265.2 MB, free: 9.094 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005246/0.02342, allocations: 1.179 MB / 266.4 MB, free: 7.863 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.02342, allocations: 7.938 kB / 266.4 MB, free: 7.855 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006099/0.02403, allocations: 0.5781 MB / 267 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.337e-05/0.02412, allocations: 47.78 kB / 267.1 MB, free: 7.191 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.181e-05/0.02416, allocations: 16 kB / 267.1 MB, free: 7.176 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001109/0.02428, allocations: 31.97 kB / 267.1 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.02439, allocations: 87.81 kB / 267.2 MB, free: 7.059 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.118e-05/0.02441, allocations: 15.98 kB / 267.2 MB, free: 7.043 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.02446, allocations: 70.78 kB / 267.3 MB, free: 6.973 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02446, allocations: 0 / 267.3 MB, free: 6.973 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002467/0.02471, allocations: 107.9 kB / 267.4 MB, free: 6.867 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.0001464/0.02485, allocations: 127.1 kB / 267.5 MB, free: 6.738 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003763/0.02523, allocations: 302.5 kB / 267.8 MB, free: 6.441 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.02523, allocations: 0 / 267.8 MB, free: 6.441 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000196/0.02543, allocations: 190.1 kB / 268 MB, free: 6.254 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.02568, allocations: 73.38 kB / 268.1 MB, free: 6.184 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009759/0.02665, allocations: 0.7574 MB / 268.8 MB, free: 5.379 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.537e-05/0.02671, allocations: 97.28 kB / 268.9 MB, free: 5.262 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.143e-05/0.02679, allocations: 38.97 kB / 268.9 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.02691, allocations: 103.3 kB / 269 MB, free: 5.125 MB / 250.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02691, allocations: 0 / 269 MB, free: 5.125 MB / 250.7 MB Notification: Performance of Templates: time 0.009314/0.03623, allocations: 8.054 MB / 277.1 MB, free: 13.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Brake/Brake.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: 2.899638957809657]