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.001337/0.001337, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001747/0.001747, allocations: 194.2 kB / 16.13 MB, free: 6.668 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.598/1.598, allocations: 205.1 MB / 222 MB, free: 4.727 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.001901/0.001901, allocations: 47.94 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2746, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003633/0.2783, allocations: 2.477 MB / 327.1 MB, free: 15.98 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.2795, allocations: 0.508 MB / 327.7 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2797, allocations: 2.5 kB / 327.7 MB, free: 15.57 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002445/0.2799, allocations: 40.83 kB / 327.7 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.2801, allocations: 71.77 kB / 327.8 MB, free: 15.48 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004033/0.2805, allocations: 162.7 kB / 327.9 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.2809, allocations: 463.7 kB / 328.4 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2811, allocations: 52.59 kB / 328.4 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.2813, allocations: 197.2 kB / 328.6 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002767/0.2816, allocations: 221.4 kB / 328.8 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.2817, allocations: 21.75 kB / 328.9 MB, free: 14.82 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.2819, allocations: 70.73 kB / 328.9 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.282, allocations: 87.84 kB / 329 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2822, allocations: 163 kB / 329.2 MB, free: 14.61 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004945/0.2827, allocations: 439.6 kB / 329.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2827, allocations: 1.469 kB / 329.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.2827, allocations: 0 / 329.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2827, allocations: 0 / 329.6 MB, free: 14.29 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.001399/0.2841, allocations: 0.662 MB / 330.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.2842, allocations: 8.844 kB / 330.3 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2843, allocations: 37.94 kB / 330.3 MB, free: 13.69 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.2847, allocations: 285.2 kB / 330.6 MB, free: 13.41 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.2847, allocations: 20.94 kB / 330.6 MB, free: 13.4 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.08e-05/0.2848, allocations: 30.11 kB / 330.6 MB, free: 13.39 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00078/0.2856, allocations: 379 kB / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/0.2856, allocations: 5.188 kB / 331 MB, free: 13.15 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.645e-05/0.2857, allocations: 14.19 kB / 331 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.51e-05/0.2857, allocations: 7.406 kB / 331 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008336/0.2866, allocations: 406.9 kB / 331.4 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.2887, allocations: 1.091 MB / 332.5 MB, free: 12.07 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005402/0.2893, allocations: 295.8 kB / 332.8 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003619/0.2896, allocations: 205.4 kB / 333 MB, free: 11.62 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.008e-05/0.2897, allocations: 11.94 kB / 333 MB, free: 11.61 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.2897, allocations: 38.56 kB / 333.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 3.276e-06/0.2897, allocations: 3.938 kB / 333.1 MB, free: 11.56 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.00451/0.2943, allocations: 2.027 MB / 335.1 MB, free: 9.398 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.2943, allocations: 55.41 kB / 335.1 MB, free: 9.332 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.2946, allocations: 240.9 kB / 335.4 MB, free: 9.086 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.2947, allocations: 45.7 kB / 335.4 MB, free: 9.035 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.2949, allocations: 148.7 kB / 335.6 MB, free: 8.883 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.295, allocations: 154 kB / 335.7 MB, free: 8.73 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/0.2952, allocations: 90.16 kB / 335.8 MB, free: 8.637 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2954, allocations: 346.7 kB / 336.2 MB, free: 8.289 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.2957, allocations: 205 kB / 336.4 MB, free: 8.09 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.2962, allocations: 288.8 kB / 336.6 MB, free: 7.781 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006646/0.2969, allocations: 385.7 kB / 337 MB, free: 7.379 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2969, allocations: 0 / 337 MB, free: 7.379 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001517/0.2984, allocations: 0.6924 MB / 337.7 MB, free: 6.672 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.2984, allocations: 4 kB / 337.7 MB, free: 6.668 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.2985, allocations: 4 kB / 337.7 MB, free: 6.664 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.2995, allocations: 497.6 kB / 338.2 MB, free: 6.172 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.2998, allocations: 79.89 kB / 338.3 MB, free: 6.094 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.3014, allocations: 1.39 MB / 339.7 MB, free: 4.652 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.3018, allocations: 67.86 kB / 339.7 MB, free: 4.586 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.3019, allocations: 19.98 kB / 339.7 MB, free: 4.566 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.0002925/0.3022, allocations: 167.2 kB / 339.9 MB, free: 4.395 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3023, allocations: 35.56 kB / 339.9 MB, free: 4.359 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.3025, allocations: 47.3 kB / 340 MB, free: 4.316 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.3025, allocations: 8 kB / 340 MB, free: 4.309 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.3025, allocations: 0 / 340 MB, free: 4.309 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.3025, allocations: 0 / 340 MB, free: 4.309 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.3055, allocations: 1.346 MB / 341.3 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.3055, allocations: 0 / 341.3 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002678/0.3058, allocations: 68.06 kB / 341.4 MB, free: 2.816 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007488/0.3065, allocations: 473.2 kB / 341.9 MB, free: 2.348 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/0.3066, allocations: 15.98 kB / 341.9 MB, free: 2.332 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.3077, allocations: 1.339 MB / 343.2 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3078, allocations: 4.125 kB / 343.2 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.3095, allocations: 0.9431 MB / 344.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.3097, allocations: 148.8 kB / 344.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.357e-05/0.3098, allocations: 19.94 kB / 344.3 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.3101, allocations: 43.95 kB / 344.4 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.3103, allocations: 75.86 kB / 344.5 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.004e-05/0.3104, allocations: 24.09 kB / 344.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001804/0.3106, allocations: 172.4 kB / 344.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3106, allocations: 0 / 344.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005097/0.3111, allocations: 100 kB / 344.7 MB, free: 15.36 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.0003613/0.3115, allocations: 151.1 kB / 344.9 MB, free: 15.21 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.3127, allocations: 0.5098 MB / 345.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3127, allocations: 0 / 345.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006079/0.3133, allocations: 288.6 kB / 345.7 MB, free: 14.42 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.3139, allocations: 56.34 kB / 345.7 MB, free: 14.36 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.3163, allocations: 1.097 MB / 346.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.3167, allocations: 0.7803 MB / 347.6 MB, free: 12.42 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001547/0.3168, allocations: 30.97 kB / 347.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.19e-05/0.3169, allocations: 31.42 kB / 347.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3169, allocations: 0 / 347.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of Templates: time 0.01437/0.3313, allocations: 8.19 MB / 355.9 MB, free: 4.156 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)