Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.001623/0.001623, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001773/0.001773, allocations: 195.7 kB / 16.25 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.654/1.654, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001277/0.001277, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2569, allocations: 46.63 MB / 324.8 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003546/0.2605, allocations: 2.465 MB / 327.3 MB, free: 15.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2615, allocations: 0.5076 MB / 327.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001482/0.2617, allocations: 2.594 kB / 327.8 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.262, allocations: 35.92 kB / 327.9 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.2621, allocations: 71.45 kB / 327.9 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.2626, allocations: 169.7 kB / 328.1 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004421/0.263, allocations: 495.3 kB / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.2632, allocations: 70.02 kB / 328.6 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.2634, allocations: 217.7 kB / 328.9 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002878/0.2637, allocations: 237.8 kB / 329.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.363e-05/0.2638, allocations: 37.78 kB / 329.1 MB, free: 14.75 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001905/0.264, allocations: 87.42 kB / 329.2 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.2641, allocations: 98.95 kB / 329.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001862/0.2643, allocations: 176.2 kB / 329.5 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005211/0.2648, allocations: 469.8 kB / 329.9 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2648, allocations: 0 / 329.9 MB, free: 14.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2649, allocations: 0 / 329.9 MB, free: 14.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.2649, allocations: 0 / 329.9 MB, free: 14.18 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.001202/0.2661, allocations: 0.6546 MB / 330.6 MB, free: 13.61 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2661, allocations: 13.72 kB / 330.6 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.819e-05/0.2662, allocations: 37.88 kB / 330.6 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.2666, allocations: 280.5 kB / 330.9 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.2666, allocations: 21.5 kB / 330.9 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.13e-05/0.2667, allocations: 30.17 kB / 331 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/0.2675, allocations: 375.1 kB / 331.3 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2675, allocations: 9.406 kB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.2675, allocations: 14.5 kB / 331.4 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2676, allocations: 6.531 kB / 331.4 MB, free: 13.03 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008001/0.2684, allocations: 411.2 kB / 331.8 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001949/0.2703, allocations: 1.098 MB / 332.9 MB, free: 11.9 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.2709, allocations: 299.5 kB / 333.2 MB, free: 11.6 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.2712, allocations: 205.4 kB / 333.4 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.2713, allocations: 11.92 kB / 333.4 MB, free: 11.39 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.2713, allocations: 34.56 kB / 333.4 MB, free: 11.34 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.422e-06/0.2713, allocations: 0 / 333.4 MB, free: 11.34 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004495/0.2758, allocations: 2.023 MB / 335.4 MB, free: 9.188 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.373e-05/0.2759, allocations: 59.41 kB / 335.5 MB, free: 9.117 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.2762, allocations: 236.9 kB / 335.7 MB, free: 8.875 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.103e-05/0.2762, allocations: 45.7 kB / 335.8 MB, free: 8.824 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.2763, allocations: 148.7 kB / 335.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.2765, allocations: 154 kB / 336.1 MB, free: 8.52 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.2766, allocations: 98.14 kB / 336.1 MB, free: 8.418 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.2768, allocations: 338.8 kB / 336.5 MB, free: 8.078 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000376/0.2772, allocations: 209 kB / 336.7 MB, free: 7.875 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/0.2776, allocations: 284.8 kB / 337 MB, free: 7.57 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005924/0.2782, allocations: 377.7 kB / 337.3 MB, free: 7.176 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2782, allocations: 0 / 337.3 MB, free: 7.176 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001352/0.2796, allocations: 0.6964 MB / 338 MB, free: 6.465 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.2796, allocations: 7.938 kB / 338 MB, free: 6.457 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2796, allocations: 4 kB / 338 MB, free: 6.453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008202/0.2805, allocations: 497.5 kB / 338.5 MB, free: 5.961 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.2807, allocations: 79.83 kB / 338.6 MB, free: 5.883 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.282, allocations: 1.39 MB / 340 MB, free: 4.441 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004505/0.2825, allocations: 64.02 kB / 340.1 MB, free: 4.379 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.2825, allocations: 32.11 kB / 340.1 MB, free: 4.348 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.0002078/0.2828, allocations: 166.5 kB / 340.2 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.259e-05/0.2828, allocations: 35.56 kB / 340.3 MB, free: 4.141 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.283, allocations: 51.3 kB / 340.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.283, allocations: 4 kB / 340.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.283, allocations: 0 / 340.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.283, allocations: 0 / 340.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/0.2855, allocations: 1.35 MB / 341.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2856, allocations: 0 / 341.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.2858, allocations: 63.91 kB / 341.7 MB, free: 2.598 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007204/0.2866, allocations: 465.5 kB / 342.2 MB, free: 2.137 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.2866, allocations: 15.98 kB / 342.2 MB, free: 2.121 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00129/0.2879, allocations: 1.351 MB / 343.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2879, allocations: 0 / 343.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001832/0.2898, allocations: 0.9393 MB / 344.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/0.29, allocations: 148.8 kB / 344.7 MB, free: 15.58 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.64e-05/0.2901, allocations: 23.94 kB / 344.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.2904, allocations: 39.95 kB / 344.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.2906, allocations: 79.86 kB / 344.8 MB, free: 15.44 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/0.2907, allocations: 19.98 kB / 344.8 MB, free: 15.42 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001801/0.2909, allocations: 168.5 kB / 345 MB, free: 15.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2909, allocations: 0 / 345 MB, free: 15.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005049/0.2914, allocations: 104 kB / 345.1 MB, free: 15.15 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.0002497/0.2916, allocations: 143.2 kB / 345.2 MB, free: 15 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.2927, allocations: 0.5332 MB / 345.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2928, allocations: 0 / 345.8 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.2933, allocations: 292.4 kB / 346 MB, free: 14.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.2938, allocations: 60.56 kB / 346.1 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002222/0.2961, allocations: 1.1 MB / 347.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.2964, allocations: 0.7761 MB / 348 MB, free: 12.18 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.2965, allocations: 30.97 kB / 348 MB, free: 12.15 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.795e-05/0.2966, allocations: 35.42 kB / 348 MB, free: 12.11 MB / 286.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2966, allocations: 0 / 348 MB, free: 12.11 MB / 286.1 MB Notification: Performance of Templates: time 0.01249/0.3091, allocations: 8.652 MB / 356.7 MB, free: 3.453 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)