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.0009325/0.0009325, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001131/0.002064, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007138/0.0007138, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009555/0.001669, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 0.943/0.943, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1501/1.093, allocations: 49.5 MB / 220.7 MB, free: 1.363 MB / 218.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.523e-06/1.523e-06, allocations: 0 / 222 MB, free: 88 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.603e-05/2.755e-05, allocations: 5.406 kB / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002765/0.002792, allocations: 2.456 MB / 224.4 MB, free: 13.6 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007274/0.00352, allocations: 0.5152 MB / 224.9 MB, free: 13.08 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.003636, allocations: 7.938 kB / 225 MB, free: 13.07 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.003808, allocations: 47.52 kB / 225 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.003933, allocations: 83.22 kB / 225.1 MB, free: 12.94 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004021/0.004335, allocations: 199.6 kB / 225.3 MB, free: 12.75 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003904/0.004725, allocations: 494.9 kB / 225.8 MB, free: 12.26 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.004869, allocations: 50.81 kB / 225.8 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.005134, allocations: 315.3 kB / 226.1 MB, free: 11.91 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.00535, allocations: 199.5 kB / 226.3 MB, free: 11.71 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.005398, allocations: 40 kB / 226.4 MB, free: 11.67 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.005546, allocations: 95.88 kB / 226.4 MB, free: 11.58 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.005623, allocations: 63.81 kB / 226.5 MB, free: 11.52 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.327e-05/0.005717, allocations: 95.81 kB / 226.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.006028, allocations: 315 kB / 226.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/0.00604, allocations: 7.938 kB / 226.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.006041, allocations: 0 / 226.9 MB, free: 11.11 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.006051, allocations: 0 / 226.9 MB, free: 11.11 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.0008343/0.006885, allocations: 0.6166 MB / 227.5 MB, free: 10.46 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.006917, allocations: 12.03 kB / 227.5 MB, free: 10.45 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.927e-05/0.006996, allocations: 44.91 kB / 227.6 MB, free: 10.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.007216, allocations: 194.2 kB / 227.8 MB, free: 10.19 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.007242, allocations: 21.03 kB / 227.8 MB, free: 10.17 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/0.007291, allocations: 36.33 kB / 227.8 MB, free: 10.14 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.007636, allocations: 279.2 kB / 228.1 MB, free: 9.855 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.00765, allocations: 8.156 kB / 228.1 MB, free: 9.848 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.007676, allocations: 12.38 kB / 228.1 MB, free: 9.836 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.007685, allocations: 12.38 kB / 228.1 MB, free: 9.824 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.00791, allocations: 176.3 kB / 228.3 MB, free: 9.652 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000912/0.008822, allocations: 0.7029 MB / 229 MB, free: 8.91 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.009048, allocations: 156.2 kB / 229.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.009155, allocations: 101.7 kB / 229.3 MB, free: 8.648 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.009188, allocations: 7.938 kB / 229.3 MB, free: 8.641 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.009214, allocations: 42.5 kB / 229.3 MB, free: 8.59 MB / 234.7 MB Notification: Performance of pre-optimization done (n=39): time 1.833e-06/0.009216, allocations: 0 / 229.3 MB, free: 8.59 MB / 234.7 MB Notification: Performance of matching and sorting (n=45): time 0.001982/0.0112, allocations: 1.325 MB / 230.6 MB, free: 7.184 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.01123, allocations: 55.41 kB / 230.7 MB, free: 7.117 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.01157, allocations: 216.9 kB / 230.9 MB, free: 6.895 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.146e-05/0.0116, allocations: 37.7 kB / 230.9 MB, free: 6.852 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.01166, allocations: 141 kB / 231.1 MB, free: 6.711 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.01174, allocations: 162.7 kB / 231.2 MB, free: 6.551 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/0.01183, allocations: 94.09 kB / 231.3 MB, free: 6.453 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.01192, allocations: 342.8 kB / 231.7 MB, free: 6.109 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.01203, allocations: 88.95 kB / 231.8 MB, free: 6.023 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001307/0.01216, allocations: 164.3 kB / 231.9 MB, free: 5.84 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.01236, allocations: 246.5 kB / 232.2 MB, free: 5.574 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01236, allocations: 4 kB / 232.2 MB, free: 5.57 MB / 234.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004693/0.01283, allocations: 403.8 kB / 232.6 MB, free: 5.164 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.01285, allocations: 7.938 kB / 232.6 MB, free: 5.156 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01286, allocations: 4 kB / 232.6 MB, free: 5.152 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004128/0.01327, allocations: 393.5 kB / 232.9 MB, free: 4.762 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.01343, allocations: 83.84 kB / 233 MB, free: 4.68 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005588/0.01399, allocations: 1.198 MB / 234.2 MB, free: 3.43 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.01413, allocations: 47.89 kB / 234.3 MB, free: 3.383 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.01415, allocations: 15.98 kB / 234.3 MB, free: 3.367 MB / 234.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.0001086/0.01426, allocations: 152.5 kB / 234.4 MB, free: 3.207 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/0.0143, allocations: 31.97 kB / 234.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.01436, allocations: 47.3 kB / 234.5 MB, free: 3.129 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.01436, allocations: 4.062 kB / 234.5 MB, free: 3.125 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.01437, allocations: 7.938 kB / 234.5 MB, free: 3.117 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.01437, allocations: 0 / 234.5 MB, free: 3.117 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009821/0.01535, allocations: 0.7863 MB / 235.3 MB, free: 2.285 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.01535, allocations: 4.156 kB / 235.3 MB, free: 2.281 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.0155, allocations: 67.91 kB / 235.4 MB, free: 2.215 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.783e-05/0.01558, allocations: 51.77 kB / 235.4 MB, free: 2.164 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003495/0.01593, allocations: 381.4 kB / 235.8 MB, free: 1.785 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.01595, allocations: 11.98 kB / 235.8 MB, free: 1.773 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005074/0.01646, allocations: 1.183 MB / 237 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.01646, allocations: 0 / 237 MB, free: 0.5391 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.01707, allocations: 0.5818 MB / 237.6 MB, free: 15.92 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.01712, allocations: 19.98 kB / 237.6 MB, free: 15.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.01723, allocations: 27.98 kB / 237.6 MB, free: 15.88 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.01735, allocations: 91.75 kB / 237.7 MB, free: 15.79 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.01737, allocations: 15.98 kB / 237.7 MB, free: 15.77 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.299e-05/0.01742, allocations: 70.78 kB / 237.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01742, allocations: 0 / 237.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005618/0.01798, allocations: 103.9 kB / 237.9 MB, free: 15.59 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.000176/0.01816, allocations: 139.5 kB / 238 MB, free: 15.45 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003846/0.01854, allocations: 303.2 kB / 238.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.324e-05/0.01856, allocations: 8 kB / 238.3 MB, free: 15.15 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.01878, allocations: 206.1 kB / 238.5 MB, free: 14.95 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.01913, allocations: 370.9 kB / 238.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.02064, allocations: 0.7454 MB / 239.7 MB, free: 13.73 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.167e-05/0.02071, allocations: 101.3 kB / 239.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.807e-05/0.02079, allocations: 30.97 kB / 239.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.02092, allocations: 111.3 kB / 239.9 MB, free: 13.47 MB / 250.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02092, allocations: 0 / 239.9 MB, free: 13.47 MB / 250.7 MB Notification: Performance of Templates: time 0.009201/0.03012, allocations: 8.138 MB / 248 MB, free: 5.352 MB / 250.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8075991217046976]