Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 103.4 kB / 15.33 MB, free: 0.5039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 200 kB / 16.26 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.1 MB / 222.1 MB, free: 4.922 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 47.92 kB / 278.2 MB, free: 12.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2779, allocations: 46.62 MB / 324.8 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.00342/0.2813, allocations: 2.473 MB / 327.3 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.2825, allocations: 0.4957 MB / 327.8 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.2827, allocations: 7.938 kB / 327.8 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.2829, allocations: 43.7 kB / 327.9 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001646/0.2831, allocations: 65.03 kB / 327.9 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006273/0.2838, allocations: 172.1 kB / 328.1 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005535/0.2843, allocations: 496.2 kB / 328.6 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.2845, allocations: 60.81 kB / 328.6 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.2848, allocations: 213.4 kB / 328.8 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003428/0.2852, allocations: 246.1 kB / 329.1 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.868e-05/0.2852, allocations: 37.03 kB / 329.1 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.2854, allocations: 84.7 kB / 329.2 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000128/0.2856, allocations: 94.75 kB / 329.3 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.2858, allocations: 183.6 kB / 329.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005068/0.2863, allocations: 461.2 kB / 329.9 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2863, allocations: 1.031 kB / 329.9 MB, free: 14.07 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2863, allocations: 0 / 329.9 MB, free: 14.07 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.2863, allocations: 0 / 329.9 MB, free: 14.07 MB / 270.1 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.001276/0.2876, allocations: 0.6662 MB / 330.6 MB, free: 13.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2877, allocations: 9.219 kB / 330.6 MB, free: 13.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.2878, allocations: 38.31 kB / 330.6 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.2881, allocations: 276 kB / 330.9 MB, free: 13.2 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.2882, allocations: 21.38 kB / 330.9 MB, free: 13.19 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.89e-05/0.2882, allocations: 30.62 kB / 331 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008603/0.2891, allocations: 382.2 kB / 331.3 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.2891, allocations: 5.219 kB / 331.3 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.935e-05/0.2892, allocations: 15.06 kB / 331.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.2892, allocations: 6.438 kB / 331.4 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007988/0.29, allocations: 404.1 kB / 331.8 MB, free: 12.74 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.292, allocations: 1.11 MB / 332.9 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.2926, allocations: 297.5 kB / 333.2 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.2929, allocations: 201.4 kB / 333.4 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.722e-05/0.293, allocations: 11.94 kB / 333.4 MB, free: 11.44 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.293, allocations: 38.5 kB / 333.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.473e-06/0.293, allocations: 0 / 333.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004582/0.2976, allocations: 2.023 MB / 335.4 MB, free: 9.238 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.2977, allocations: 55.41 kB / 335.5 MB, free: 9.172 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.298, allocations: 241 kB / 335.7 MB, free: 8.926 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.298, allocations: 41.69 kB / 335.8 MB, free: 8.879 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2981, allocations: 152.7 kB / 335.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.2983, allocations: 150 kB / 336 MB, free: 8.574 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.2986, allocations: 98.14 kB / 336.1 MB, free: 8.473 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.2988, allocations: 346.7 kB / 336.5 MB, free: 8.125 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004717/0.2992, allocations: 209 kB / 336.7 MB, free: 7.922 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.2997, allocations: 288.8 kB / 337 MB, free: 7.613 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007202/0.3004, allocations: 377.7 kB / 337.3 MB, free: 7.219 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3004, allocations: 0 / 337.3 MB, free: 7.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001529/0.302, allocations: 0.6924 MB / 338 MB, free: 6.512 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.302, allocations: 4 kB / 338 MB, free: 6.508 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.302, allocations: 0 / 338 MB, free: 6.508 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000957/0.303, allocations: 497.5 kB / 338.5 MB, free: 6.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.3033, allocations: 71.91 kB / 338.6 MB, free: 5.945 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.3048, allocations: 1.397 MB / 340 MB, free: 4.496 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.3052, allocations: 67.91 kB / 340.1 MB, free: 4.43 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.254e-05/0.3052, allocations: 19.94 kB / 340.1 MB, free: 4.41 MB / 270.1 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.0002061/0.3054, allocations: 166.7 kB / 340.2 MB, free: 4.238 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/0.3055, allocations: 35.56 kB / 340.3 MB, free: 4.203 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.3056, allocations: 55.22 kB / 340.3 MB, free: 4.152 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3057, allocations: 4 kB / 340.3 MB, free: 4.148 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.3057, allocations: 0 / 340.3 MB, free: 4.148 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3057, allocations: 0 / 340.3 MB, free: 4.148 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.3083, allocations: 1.35 MB / 341.7 MB, free: 2.719 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.3083, allocations: 8.156 kB / 341.7 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.3086, allocations: 59.91 kB / 341.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007056/0.3093, allocations: 469.4 kB / 342.2 MB, free: 2.188 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.3094, allocations: 19.98 kB / 342.2 MB, free: 2.168 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.3106, allocations: 1.343 MB / 343.6 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3106, allocations: 4.031 kB / 343.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/0.3123, allocations: 0.9393 MB / 344.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.3124, allocations: 144.8 kB / 344.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.3125, allocations: 27.92 kB / 344.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.3128, allocations: 35.97 kB / 344.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.313, allocations: 83.86 kB / 344.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.3131, allocations: 23.91 kB / 344.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.3132, allocations: 168.5 kB / 345 MB, free: 15.3 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3132, allocations: 0 / 345 MB, free: 15.3 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.3138, allocations: 104 kB / 345.1 MB, free: 15.2 MB / 286.1 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.000261/0.3141, allocations: 135.2 kB / 345.2 MB, free: 15.05 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.3153, allocations: 0.5332 MB / 345.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3153, allocations: 0 / 345.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005748/0.3159, allocations: 292.7 kB / 346 MB, free: 14.24 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005335/0.3164, allocations: 52.58 kB / 346.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.3187, allocations: 1.103 MB / 347.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3191, allocations: 0.78 MB / 348 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.3192, allocations: 34.97 kB / 348 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.889e-05/0.3193, allocations: 35.42 kB / 348 MB, free: 12.16 MB / 286.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3193, allocations: 0 / 348 MB, free: 12.16 MB / 286.1 MB Notification: Performance of Templates: time 0.0135/0.3329, allocations: 8.656 MB / 356.7 MB, free: 3.5 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)