Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.CompareBrakingForce,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce") translateModel(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001695/0.001695, allocations: 118.6 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001783/0.001783, allocations: 203.6 kB / 19.4 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.427/1.427, allocations: 227.7 MB / 247.9 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 71.88 kB / 359.7 MB, free: 12.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2689, allocations: 50.54 MB / 410.2 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.CompareBrakingForce): time 0.00371/0.2726, allocations: 2.361 MB / 412.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.2739, allocations: 0.7595 MB / 413.3 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.274, allocations: 11.94 kB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.2741, allocations: 39.58 kB / 413.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002653/0.2744, allocations: 91.33 kB / 413.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.2747, allocations: 115.7 kB / 413.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003614/0.2751, allocations: 298.7 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.2752, allocations: 48.72 kB / 413.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.2754, allocations: 111.6 kB / 414 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.2756, allocations: 139.3 kB / 414.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.2756, allocations: 20 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.987e-05/0.2756, allocations: 20 kB / 414.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.2757, allocations: 51.83 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.2758, allocations: 135.3 kB / 414.4 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.2762, allocations: 270.7 kB / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2762, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2762, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.902e-06/0.2762, allocations: 0 / 414.6 MB, free: 12.92 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009806/0.2772, allocations: 0.5494 MB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2772, allocations: 12.02 kB / 415.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.312e-05/0.2773, allocations: 28.75 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003709/0.2776, allocations: 273.5 kB / 415.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.2776, allocations: 16.81 kB / 415.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.03e-05/0.2777, allocations: 24.38 kB / 415.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.2782, allocations: 243 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.082e-05/0.2782, allocations: 11.89 kB / 415.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.2782, allocations: 8 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2782, allocations: 8 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003772/0.2786, allocations: 159.8 kB / 416 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001372/0.28, allocations: 1.013 MB / 417 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.2805, allocations: 278.1 kB / 417.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001911/0.2807, allocations: 88.03 kB / 417.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2808, allocations: 11.97 kB / 417.3 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.2808, allocations: 42.5 kB / 417.4 MB, free: 9.934 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.553e-06/0.2808, allocations: 3.938 kB / 417.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002078/0.2829, allocations: 1.337 MB / 418.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/0.283, allocations: 136.5 kB / 418.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.2832, allocations: 202.8 kB / 419.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.2832, allocations: 29.7 kB / 419.1 MB, free: 7.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.2833, allocations: 156.7 kB / 419.2 MB, free: 7.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.2835, allocations: 130.9 kB / 419.4 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.691e-05/0.2835, allocations: 66.14 kB / 419.4 MB, free: 7.641 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.2837, allocations: 338.8 kB / 419.8 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.284, allocations: 88.77 kB / 419.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.2843, allocations: 190.1 kB / 420 MB, free: 6.977 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005114/0.2848, allocations: 302 kB / 420.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.2848, allocations: 0 / 420.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006407/0.2854, allocations: 345.1 kB / 420.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2854, allocations: 4 kB / 420.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2855, allocations: 4 kB / 420.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.2855, allocations: 8 kB / 420.7 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.2859, allocations: 91.89 kB / 420.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.2859, allocations: 11.92 kB / 420.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.286, allocations: 15.94 kB / 420.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.2861, allocations: 16 kB / 420.8 MB, free: 6.141 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.2862, allocations: 153.8 kB / 421 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2863, allocations: 27.86 kB / 421 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.621e-05/0.2864, allocations: 37.52 kB / 421 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.2864, allocations: 4 kB / 421 MB, free: 5.914 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.2864, allocations: 7.922 kB / 421 MB, free: 5.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.2864, allocations: 11.92 kB / 421.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.288, allocations: 0.9634 MB / 422 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.288, allocations: 4 kB / 422 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003721/0.2884, allocations: 80.16 kB / 422.1 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.2884, allocations: 8 kB / 422.1 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.2884, allocations: 11.98 kB / 422.1 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.2884, allocations: 4 kB / 422.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.2884, allocations: 7.938 kB / 422.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008587/0.2893, allocations: 0.7006 MB / 422.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.447e-05/0.2893, allocations: 104.9 kB / 422.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.864e-05/0.2894, allocations: 11.98 kB / 422.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.2896, allocations: 12 kB / 423 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.121e-05/0.2897, allocations: 27.91 kB / 423 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.2897, allocations: 12 kB / 423 MB, free: 3.801 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.2898, allocations: 140.6 kB / 423.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2898, allocations: 0 / 423.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004774/0.2903, allocations: 72 kB / 423.2 MB, free: 3.594 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001366/0.2905, allocations: 115.1 kB / 423.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005267/0.291, allocations: 236.7 kB / 423.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.291, allocations: 0.5 kB / 423.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.2912, allocations: 120.4 kB / 423.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007892/0.292, allocations: 78.69 kB / 423.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.2937, allocations: 0.9505 MB / 424.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.2941, allocations: 0.7604 MB / 425.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.2942, allocations: 46.94 kB / 425.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.867e-05/0.2943, allocations: 27.44 kB / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2943, allocations: 0 / 425.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of Templates: time 0.007149/0.3015, allocations: 2.999 MB / 428.5 MB, free: 14.19 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)