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.000949/0.000949, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001087/0.001087, allocations: 145.2 kB / 24.89 MB, free: 9.199 MB / 18.57 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.002/1.002, allocations: 173.4 MB / 201.5 MB, free: 9.195 MB / 186.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.393e-06/1.393e-06, allocations: 0 / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.872e-05/2.011e-05, allocations: 6.25 kB / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002729/0.002749, allocations: 2.425 MB / 270.9 MB, free: 3.773 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009486/0.003698, allocations: 0.5068 MB / 271.4 MB, free: 3.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.003805, allocations: 7.938 kB / 271.4 MB, free: 3.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.004002, allocations: 47.56 kB / 271.4 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.004131, allocations: 87.22 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.004594, allocations: 203.5 kB / 271.7 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000371/0.004965, allocations: 498.9 kB / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.005078, allocations: 50.8 kB / 272.3 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002727/0.005351, allocations: 299.4 kB / 272.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.005571, allocations: 203.5 kB / 272.7 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.04e-05/0.005621, allocations: 40 kB / 272.8 MB, free: 1.855 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.005746, allocations: 83.95 kB / 272.9 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.358e-05/0.00583, allocations: 103.6 kB / 273 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.594e-05/0.005926, allocations: 131.7 kB / 273.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.006271, allocations: 366.9 kB / 273.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.006274, allocations: 3.984 kB / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.006276, allocations: 4 kB / 273.5 MB, free: 1.176 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.006281, allocations: 0 / 273.5 MB, free: 1.176 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.0006271/0.006908, allocations: 0.5544 MB / 274 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.033e-05/0.006938, allocations: 12.86 kB / 274 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.007006, allocations: 44.91 kB / 274.1 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002066/0.007213, allocations: 190.3 kB / 274.3 MB, free: 336 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.007237, allocations: 25.03 kB / 274.3 MB, free: 312 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.007281, allocations: 40.27 kB / 274.3 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003269/0.007608, allocations: 279.2 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.007621, allocations: 8.156 kB / 274.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.007644, allocations: 12.38 kB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.007651, allocations: 8.375 kB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002227/0.007873, allocations: 172.4 kB / 274.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.00875, allocations: 0.7067 MB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.008944, allocations: 152.1 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.009047, allocations: 105.7 kB / 275.8 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.009077, allocations: 8 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.009097, allocations: 42.5 kB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 1.202e-06/0.009098, allocations: 0 / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.002019/0.01112, allocations: 1.175 MB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.01115, allocations: 59.41 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.01127, allocations: 212.9 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.0113, allocations: 45.69 kB / 277.3 MB, free: 13.13 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.89e-05/0.01136, allocations: 145 kB / 277.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.535e-05/0.01145, allocations: 162.7 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.01155, allocations: 94.09 kB / 277.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.01164, allocations: 342.7 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.01176, allocations: 96.95 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.0119, allocations: 160.3 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.01212, allocations: 246.5 kB / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.01212, allocations: 0 / 278.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005106/0.01263, allocations: 408 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.01265, allocations: 7.938 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.01265, allocations: 4 kB / 278.9 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.01308, allocations: 385.4 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.01323, allocations: 71.91 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006049/0.01384, allocations: 1.187 MB / 280.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.014, allocations: 52.02 kB / 280.6 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.456e-05/0.01402, allocations: 15.98 kB / 280.6 MB, free: 9.66 MB / 266.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.0001172/0.01414, allocations: 148.5 kB / 280.8 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/0.01419, allocations: 31.97 kB / 280.8 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.01424, allocations: 47.3 kB / 280.8 MB, free: 9.426 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.01424, allocations: 8 kB / 280.8 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.423e-06/0.01425, allocations: 3.938 kB / 280.8 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.01425, allocations: 4 kB / 280.9 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.01533, allocations: 0.7838 MB / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.01533, allocations: 0 / 281.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.01548, allocations: 59.91 kB / 281.7 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003772/0.01586, allocations: 381.5 kB / 282.1 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.01588, allocations: 24.03 kB / 282.1 MB, free: 8.121 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006249/0.01651, allocations: 1.179 MB / 283.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.01651, allocations: 4 kB / 283.3 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.01714, allocations: 0.5856 MB / 283.9 MB, free: 6.266 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.01723, allocations: 51.77 kB / 283.9 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.796e-05/0.01728, allocations: 16 kB / 283.9 MB, free: 6.199 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.0174, allocations: 31.97 kB / 284 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.01752, allocations: 79.83 kB / 284 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.01754, allocations: 19.97 kB / 284.1 MB, free: 6.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.445e-05/0.0176, allocations: 66.8 kB / 284.1 MB, free: 6 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0176, allocations: 0 / 284.1 MB, free: 6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.01787, allocations: 107.9 kB / 284.2 MB, free: 5.895 MB / 266.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.0001709/0.01804, allocations: 131.4 kB / 284.4 MB, free: 5.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003974/0.01844, allocations: 298.8 kB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/0.01844, allocations: 0 / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.01865, allocations: 199.1 kB / 284.8 MB, free: 5.273 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.01891, allocations: 76.75 kB / 284.9 MB, free: 5.199 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.01995, allocations: 0.7538 MB / 285.7 MB, free: 4.395 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.875e-05/0.02001, allocations: 97.28 kB / 285.8 MB, free: 4.281 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.113e-05/0.02009, allocations: 30.97 kB / 285.8 MB, free: 4.254 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.02021, allocations: 103.3 kB / 285.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of SimCode: time 1.172e-06/0.02022, allocations: 0 / 285.9 MB, free: 4.152 MB / 266.7 MB Notification: Performance of Templates: time 0.09477/0.115, allocations: 8.046 MB / 293.9 MB, free: 30.94 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.861562213860452]