Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001059/0.001059, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0009791/0.0009795, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.539/1.539, allocations: 205.4 MB / 223.4 MB, free: 5.273 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.0004595/0.0004596, allocations: 11.98 kB / 280.1 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2424, allocations: 47.6 MB / 327.7 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002141/0.2446, allocations: 2.026 MB / 329.8 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009729/0.2456, allocations: 0.4898 MB / 330.3 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.2458, allocations: 12.12 kB / 330.3 MB, free: 15.43 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.246, allocations: 34.86 kB / 330.3 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.2461, allocations: 67.36 kB / 330.4 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.2465, allocations: 143 kB / 330.5 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000469/0.247, allocations: 425.1 kB / 330.9 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.2472, allocations: 54.09 kB / 331 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.2475, allocations: 193.1 kB / 331.2 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002957/0.2478, allocations: 212.8 kB / 331.4 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.208e-05/0.2479, allocations: 23.81 kB / 331.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.248, allocations: 56.25 kB / 331.4 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.2481, allocations: 79.17 kB / 331.5 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.015e-05/0.2482, allocations: 75.45 kB / 331.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000392/0.2486, allocations: 322.3 kB / 331.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2486, allocations: 0 / 331.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.927e-06/0.2487, allocations: 0.9375 kB / 331.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.2487, allocations: 3.938 kB / 331.9 MB, free: 14.35 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.001176/0.2499, allocations: 0.6207 MB / 332.5 MB, free: 13.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2499, allocations: 9 kB / 332.5 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.274e-05/0.25, allocations: 33.03 kB / 332.6 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.2503, allocations: 279.3 kB / 332.9 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.061e-05/0.2504, allocations: 28.58 kB / 332.9 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.2505, allocations: 26.53 kB / 332.9 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007139/0.2512, allocations: 373.4 kB / 333.3 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.2512, allocations: 5.422 kB / 333.3 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.797e-05/0.2513, allocations: 14.92 kB / 333.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.2513, allocations: 5.844 kB / 333.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007666/0.2521, allocations: 406 kB / 333.7 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001883/0.254, allocations: 1.131 MB / 334.8 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.2545, allocations: 303.6 kB / 335.1 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003594/0.2549, allocations: 209.6 kB / 335.3 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.2549, allocations: 4 kB / 335.3 MB, free: 11.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.255, allocations: 42.5 kB / 335.4 MB, free: 11.63 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 1.924e-06/0.255, allocations: 0 / 335.4 MB, free: 11.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004523/0.2595, allocations: 2.098 MB / 337.5 MB, free: 9.398 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.2596, allocations: 59.36 kB / 337.5 MB, free: 9.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.2598, allocations: 232.9 kB / 337.8 MB, free: 9.09 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.2599, allocations: 45.64 kB / 337.8 MB, free: 9.039 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.26, allocations: 156.8 kB / 338 MB, free: 8.879 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.2602, allocations: 153.9 kB / 338.1 MB, free: 8.727 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.2602, allocations: 8 kB / 338.1 MB, free: 8.719 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2604, allocations: 338.8 kB / 338.4 MB, free: 8.379 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003954/0.2608, allocations: 213 kB / 338.6 MB, free: 8.172 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.2612, allocations: 288.8 kB / 338.9 MB, free: 7.863 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.2616, allocations: 172.8 kB / 339.1 MB, free: 7.691 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2616, allocations: 0 / 339.1 MB, free: 7.691 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001424/0.263, allocations: 0.6846 MB / 339.8 MB, free: 6.996 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.263, allocations: 8 kB / 339.8 MB, free: 6.988 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2631, allocations: 8.094 kB / 339.8 MB, free: 6.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/0.264, allocations: 0.4896 MB / 340.3 MB, free: 6.484 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.2643, allocations: 79.84 kB / 340.4 MB, free: 6.406 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001372/0.2657, allocations: 1.39 MB / 341.8 MB, free: 4.965 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00044/0.2661, allocations: 92.05 kB / 341.8 MB, free: 4.875 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.2662, allocations: 23.98 kB / 341.9 MB, free: 4.852 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.0002276/0.2664, allocations: 162 kB / 342 MB, free: 4.684 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.675e-05/0.2665, allocations: 31.58 kB / 342.1 MB, free: 4.652 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.2666, allocations: 51.3 kB / 342.1 MB, free: 4.605 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2666, allocations: 8 kB / 342.1 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.2666, allocations: 0 / 342.1 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.2667, allocations: 3.984 kB / 342.1 MB, free: 4.594 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.2694, allocations: 1.382 MB / 343.5 MB, free: 3.133 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.2695, allocations: 3.953 kB / 343.5 MB, free: 3.129 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002553/0.2697, allocations: 63.91 kB / 343.6 MB, free: 3.066 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007055/0.2704, allocations: 461.5 kB / 344 MB, free: 2.609 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.756e-05/0.2705, allocations: 20.03 kB / 344 MB, free: 2.59 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/0.2716, allocations: 1.339 MB / 345.4 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2716, allocations: 0 / 345.4 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001771/0.2733, allocations: 0.951 MB / 346.3 MB, free: 216 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.2736, allocations: 148.8 kB / 346.5 MB, free: 48 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.004e-05/0.2737, allocations: 16 kB / 346.5 MB, free: 32 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/0.274, allocations: 59.91 kB / 346.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.2743, allocations: 95.78 kB / 346.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/0.2744, allocations: 19.98 kB / 346.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.2746, allocations: 168.5 kB / 346.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2746, allocations: 7.938 kB / 346.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000613/0.2752, allocations: 108 kB / 346.9 MB, free: 15.58 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.0003944/0.2756, allocations: 139 kB / 347.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001267/0.2769, allocations: 0.5101 MB / 347.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.2769, allocations: 0 / 347.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006417/0.2776, allocations: 295.7 kB / 347.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.2781, allocations: 52.69 kB / 347.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.2805, allocations: 1.174 MB / 349.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/0.2812, allocations: 0.7764 MB / 349.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.2814, allocations: 30.97 kB / 349.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.16e-05/0.2815, allocations: 27.42 kB / 349.9 MB, free: 12.51 MB / 286.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2815, allocations: 4 kB / 349.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of Templates: time 0.01446/0.2959, allocations: 7.895 MB / 357.8 MB, free: 4.602 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)