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.001113/0.001113, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.001475/0.001475, allocations: 168.7 kB / 15.95 MB, free: 204 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.644/1.644, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.000575/0.0005751, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2606, allocations: 47.59 MB / 326.5 MB, free: 1.23 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002453/0.2631, allocations: 2.034 MB / 328.5 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000928/0.2641, allocations: 493.3 kB / 329 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2642, allocations: 7.5 kB / 329 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002028/0.2645, allocations: 44.97 kB / 329 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.2646, allocations: 69.55 kB / 329.1 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.2651, allocations: 136.2 kB / 329.2 MB, free: 15.02 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.2656, allocations: 429.4 kB / 329.7 MB, free: 14.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.2657, allocations: 62 kB / 329.7 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002389/0.266, allocations: 184.4 kB / 329.9 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.2663, allocations: 211.4 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.186e-05/0.2664, allocations: 24.84 kB / 330.1 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.2665, allocations: 60.34 kB / 330.2 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2666, allocations: 79.48 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.494e-05/0.2667, allocations: 75.33 kB / 330.3 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003402/0.2671, allocations: 326.5 kB / 330.7 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.2671, allocations: 0 / 330.7 MB, free: 14.12 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2671, allocations: 0 / 330.7 MB, free: 14.12 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.2671, allocations: 1.031 kB / 330.7 MB, free: 14.12 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.00114/0.2682, allocations: 0.6197 MB / 331.3 MB, free: 13.6 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2683, allocations: 10.22 kB / 331.3 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.2684, allocations: 32.81 kB / 331.3 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.2687, allocations: 274.7 kB / 331.6 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.2687, allocations: 28.48 kB / 331.6 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.387e-05/0.2688, allocations: 30.81 kB / 331.6 MB, free: 13.28 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007049/0.2695, allocations: 373.8 kB / 332 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.2696, allocations: 1.438 kB / 332 MB, free: 13.05 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.2696, allocations: 14.33 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.021e-05/0.2696, allocations: 6.281 kB / 332 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007781/0.2704, allocations: 401.2 kB / 332.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2723, allocations: 1.14 MB / 333.6 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005297/0.2729, allocations: 310.2 kB / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000353/0.2732, allocations: 197.7 kB / 334.1 MB, free: 11.59 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.266e-05/0.2733, allocations: 4 kB / 334.1 MB, free: 11.58 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.2733, allocations: 46.5 kB / 334.1 MB, free: 11.53 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.643e-06/0.2733, allocations: 0 / 334.1 MB, free: 11.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004486/0.2778, allocations: 2.094 MB / 336.2 MB, free: 9.297 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.2779, allocations: 67.28 kB / 336.3 MB, free: 9.219 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.2782, allocations: 236.9 kB / 336.5 MB, free: 8.977 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.62e-05/0.2782, allocations: 37.7 kB / 336.5 MB, free: 8.934 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.2783, allocations: 152.8 kB / 336.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001236/0.2785, allocations: 157.9 kB / 336.8 MB, free: 8.621 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.215e-05/0.2785, allocations: 16 kB / 336.9 MB, free: 8.605 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.2786, allocations: 334.8 kB / 337.2 MB, free: 8.27 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.279, allocations: 209 kB / 337.4 MB, free: 8.066 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.2795, allocations: 284.8 kB / 337.7 MB, free: 7.762 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003366/0.2798, allocations: 180.8 kB / 337.8 MB, free: 7.582 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2799, allocations: 3.938 kB / 337.8 MB, free: 7.578 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001398/0.2813, allocations: 0.6808 MB / 338.5 MB, free: 6.887 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.2813, allocations: 4 kB / 338.5 MB, free: 6.883 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.2813, allocations: 4 kB / 338.5 MB, free: 6.879 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008857/0.2822, allocations: 497.5 kB / 339 MB, free: 6.387 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.2825, allocations: 87.83 kB / 339.1 MB, free: 6.301 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.2838, allocations: 1.39 MB / 340.5 MB, free: 4.859 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004069/0.2842, allocations: 96.05 kB / 340.6 MB, free: 4.766 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.2843, allocations: 19.98 kB / 340.6 MB, free: 4.746 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.0002074/0.2845, allocations: 166 kB / 340.8 MB, free: 4.574 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.722e-05/0.2845, allocations: 35.58 kB / 340.8 MB, free: 4.539 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.2847, allocations: 47.3 kB / 340.9 MB, free: 4.496 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2847, allocations: 4 kB / 340.9 MB, free: 4.492 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.2847, allocations: 0 / 340.9 MB, free: 4.492 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.004e-06/0.2847, allocations: 3.984 kB / 340.9 MB, free: 4.488 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.2874, allocations: 1.39 MB / 342.3 MB, free: 3.02 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.2874, allocations: 3.953 kB / 342.3 MB, free: 3.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002596/0.2876, allocations: 63.91 kB / 342.3 MB, free: 2.953 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006954/0.2883, allocations: 457.5 kB / 342.8 MB, free: 2.5 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.409e-05/0.2884, allocations: 23.97 kB / 342.8 MB, free: 2.477 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.2896, allocations: 1.339 MB / 344.1 MB, free: 1.086 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.2896, allocations: 4.031 kB / 344.1 MB, free: 1.082 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.2913, allocations: 0.9471 MB / 345.1 MB, free: 100 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.2915, allocations: 148.8 kB / 345.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.225e-05/0.2916, allocations: 16 kB / 345.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000274/0.2919, allocations: 59.91 kB / 345.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.2921, allocations: 95.78 kB / 345.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.2921, allocations: 19.98 kB / 345.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.2923, allocations: 168.5 kB / 345.6 MB, free: 15.58 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.553e-06/0.2923, allocations: 3.938 kB / 345.6 MB, free: 15.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004884/0.2928, allocations: 111.9 kB / 345.7 MB, free: 15.46 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.0002488/0.2931, allocations: 135 kB / 345.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.2941, allocations: 0.506 MB / 346.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2942, allocations: 320 / 346.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005923/0.2948, allocations: 303.6 kB / 346.6 MB, free: 14.52 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005225/0.2953, allocations: 52.31 kB / 346.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.2978, allocations: 1.171 MB / 347.8 MB, free: 13.26 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.2982, allocations: 0.7802 MB / 348.6 MB, free: 12.45 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.2984, allocations: 30.97 kB / 348.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.407e-05/0.2985, allocations: 31.42 kB / 348.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2985, allocations: 0 / 348.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of Templates: time 0.01279/0.3113, allocations: 7.885 MB / 356.6 MB, free: 4.496 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)