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.001099/0.001099, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001011/0.001011, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.4 MB / 222.1 MB, free: 5.672 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.0004863/0.0004863, allocations: 14.81 kB / 278.9 MB, free: 12.85 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.285, allocations: 47.58 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002365/0.2875, allocations: 1.952 MB / 328.4 MB, free: 15.88 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008911/0.2884, allocations: 0.5002 MB / 328.9 MB, free: 15.47 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.2885, allocations: 7.562 kB / 328.9 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.2887, allocations: 34.47 kB / 328.9 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.2889, allocations: 91.86 kB / 329 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004013/0.2893, allocations: 148 kB / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004117/0.2897, allocations: 289.1 kB / 329.5 MB, free: 15.05 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.2899, allocations: 54.84 kB / 329.5 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002188/0.2901, allocations: 187.2 kB / 329.7 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.2905, allocations: 211.8 kB / 329.9 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.132e-05/0.2905, allocations: 23.41 kB / 329.9 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.2907, allocations: 54.66 kB / 330 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001345/0.2908, allocations: 83.14 kB / 330.1 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.2909, allocations: 75.42 kB / 330.1 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.2914, allocations: 330 kB / 330.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2914, allocations: 0 / 330.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2914, allocations: 0 / 330.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2914, allocations: 0 / 330.5 MB, free: 14.41 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.001243/0.2927, allocations: 0.6165 MB / 331.1 MB, free: 13.89 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.2927, allocations: 9 kB / 331.1 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.2929, allocations: 32.94 kB / 331.1 MB, free: 13.87 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.2932, allocations: 275.2 kB / 331.4 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.2933, allocations: 29.02 kB / 331.4 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-05/0.2934, allocations: 30.12 kB / 331.4 MB, free: 13.57 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.2941, allocations: 371.8 kB / 331.8 MB, free: 13.34 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.172e-05/0.2941, allocations: 9.391 kB / 331.8 MB, free: 13.33 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.298e-05/0.2942, allocations: 14.56 kB / 331.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2942, allocations: 7.125 kB / 331.8 MB, free: 13.32 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007855/0.295, allocations: 400.2 kB / 332.2 MB, free: 13.14 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.297, allocations: 1.136 MB / 333.4 MB, free: 12.24 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005522/0.2976, allocations: 307.1 kB / 333.7 MB, free: 12.08 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.2977, allocations: 4.984 kB / 333.7 MB, free: 12.08 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.412e-05/0.2977, allocations: 41.38 kB / 333.7 MB, free: 12.04 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.2977, allocations: 0 / 333.7 MB, free: 12.04 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004496/0.3022, allocations: 2.106 MB / 335.8 MB, free: 9.82 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.3023, allocations: 59.36 kB / 335.9 MB, free: 9.75 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002363/0.3025, allocations: 236.9 kB / 336.1 MB, free: 9.508 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.813e-05/0.3026, allocations: 37.7 kB / 336.1 MB, free: 9.465 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3027, allocations: 152.8 kB / 336.3 MB, free: 9.309 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.3028, allocations: 165.8 kB / 336.4 MB, free: 9.145 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.3029, allocations: 8 kB / 336.5 MB, free: 9.137 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.303, allocations: 342.8 kB / 336.8 MB, free: 8.793 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.3034, allocations: 209 kB / 337 MB, free: 8.59 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004051/0.3038, allocations: 276.8 kB / 337.3 MB, free: 8.293 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.3041, allocations: 176.7 kB / 337.4 MB, free: 8.117 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3041, allocations: 4 kB / 337.4 MB, free: 8.113 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001319/0.3054, allocations: 0.6847 MB / 338.1 MB, free: 7.418 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.3054, allocations: 4 kB / 338.1 MB, free: 7.414 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3055, allocations: 0 / 338.1 MB, free: 7.414 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008187/0.3063, allocations: 497.5 kB / 338.6 MB, free: 6.922 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.3066, allocations: 75.91 kB / 338.7 MB, free: 6.848 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.3078, allocations: 1.393 MB / 340.1 MB, free: 5.402 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.3083, allocations: 96.03 kB / 340.2 MB, free: 5.309 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.263e-05/0.3083, allocations: 20 kB / 340.2 MB, free: 5.289 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 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.3085, allocations: 169.6 kB / 340.4 MB, free: 5.113 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-05/0.3086, allocations: 31.58 kB / 340.4 MB, free: 5.082 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.3087, allocations: 51.3 kB / 340.4 MB, free: 5.035 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3088, allocations: 4 kB / 340.4 MB, free: 5.031 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3088, allocations: 0 / 340.4 MB, free: 5.031 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.3088, allocations: 0 / 340.4 MB, free: 5.031 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002699/0.3115, allocations: 1.38 MB / 341.8 MB, free: 3.574 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3115, allocations: 0 / 341.8 MB, free: 3.574 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.3118, allocations: 67.86 kB / 341.9 MB, free: 3.508 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006605/0.3124, allocations: 465.6 kB / 342.3 MB, free: 3.047 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.3125, allocations: 23.92 kB / 342.4 MB, free: 3.023 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.3137, allocations: 1.339 MB / 343.7 MB, free: 1.633 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3137, allocations: 8.141 kB / 343.7 MB, free: 1.625 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.3154, allocations: 1.006 MB / 344.7 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.3156, allocations: 148.8 kB / 344.9 MB, free: 396 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.507e-05/0.3156, allocations: 16 kB / 344.9 MB, free: 380 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.3159, allocations: 55.95 kB / 344.9 MB, free: 324 kB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/0.3161, allocations: 103.7 kB / 345 MB, free: 220 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.3162, allocations: 19.98 kB / 345.1 MB, free: 200 kB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.3163, allocations: 172.5 kB / 345.2 MB, free: 24 kB / 270.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3164, allocations: 0 / 345.2 MB, free: 24 kB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.3168, allocations: 104 kB / 345.3 MB, free: 15.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000245/0.3171, allocations: 135.5 kB / 345.5 MB, free: 15.78 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009848/0.3181, allocations: 0.5063 MB / 346 MB, free: 15.28 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3181, allocations: 0 / 346 MB, free: 15.28 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005464/0.3186, allocations: 291.6 kB / 346.2 MB, free: 14.99 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.319, allocations: 48.95 kB / 346.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002244/0.3213, allocations: 1.167 MB / 347.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.3217, allocations: 0.7842 MB / 348.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001323/0.3218, allocations: 34.97 kB / 348.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.437e-05/0.3219, allocations: 31.42 kB / 348.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3219, allocations: 0 / 348.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of Templates: time 0.01283/0.3347, allocations: 7.881 MB / 356.2 MB, free: 4.969 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: