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.0009014/0.0009014, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.007072/0.007072, allocations: 171.7 kB / 16.26 MB, free: 6.676 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.759/1.759, allocations: 205.4 MB / 222.5 MB, free: 5.555 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.0004528/0.0004529, allocations: 14.81 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2664, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002374/0.2688, allocations: 2.107 MB / 329.1 MB, free: 15.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.27, allocations: 0.5035 MB / 329.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2702, allocations: 7.375 kB / 329.6 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.2704, allocations: 31.02 kB / 329.7 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.2705, allocations: 77.23 kB / 329.8 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.271, allocations: 166 kB / 329.9 MB, free: 15.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005201/0.2715, allocations: 463.7 kB / 330.4 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.2717, allocations: 60.05 kB / 330.4 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.2719, allocations: 189 kB / 330.6 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.2723, allocations: 216.9 kB / 330.8 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.353e-05/0.2723, allocations: 19.75 kB / 330.8 MB, free: 14.56 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.2725, allocations: 65.64 kB / 330.9 MB, free: 14.54 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.2727, allocations: 87.8 kB / 331 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002143/0.2729, allocations: 188.3 kB / 331.2 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004892/0.2734, allocations: 427.8 kB / 331.6 MB, free: 14.02 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.2734, allocations: 5.078 kB / 331.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2734, allocations: 0 / 331.6 MB, free: 14.01 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2734, allocations: 0 / 331.6 MB, free: 14.01 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.001297/0.2747, allocations: 0.6258 MB / 332.2 MB, free: 13.47 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.2748, allocations: 9.594 kB / 332.2 MB, free: 13.47 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.722e-05/0.2749, allocations: 33.81 kB / 332.3 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.2752, allocations: 276.1 kB / 332.5 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.2753, allocations: 20.91 kB / 332.6 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.2754, allocations: 34.47 kB / 332.6 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/0.2762, allocations: 381.3 kB / 333 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2762, allocations: 1.375 kB / 333 MB, free: 12.92 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.2762, allocations: 18.06 kB / 333 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.2763, allocations: 7.219 kB / 333 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008576/0.2771, allocations: 402.4 kB / 333.4 MB, free: 12.73 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.2792, allocations: 1.133 MB / 334.5 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/0.2798, allocations: 299.5 kB / 334.8 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003887/0.2802, allocations: 205.7 kB / 335 MB, free: 11.2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.37e-05/0.2803, allocations: 15.86 kB / 335 MB, free: 11.18 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/0.2803, allocations: 38.5 kB / 335.1 MB, free: 11.13 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 4.789e-06/0.2803, allocations: 4 kB / 335.1 MB, free: 11.13 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004923/0.2853, allocations: 2.113 MB / 337.2 MB, free: 8.883 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.2854, allocations: 55.41 kB / 337.2 MB, free: 8.816 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000253/0.2856, allocations: 240.9 kB / 337.5 MB, free: 8.57 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.26e-05/0.2857, allocations: 37.7 kB / 337.5 MB, free: 8.527 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.2858, allocations: 152.7 kB / 337.7 MB, free: 8.371 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.2859, allocations: 150 kB / 337.8 MB, free: 8.223 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.528e-05/0.286, allocations: 45.7 kB / 337.8 MB, free: 8.172 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2862, allocations: 350.7 kB / 338.2 MB, free: 7.82 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004042/0.2866, allocations: 213 kB / 338.4 MB, free: 7.613 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004905/0.2871, allocations: 288.8 kB / 338.7 MB, free: 7.305 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000691/0.2878, allocations: 381.7 kB / 339.1 MB, free: 6.906 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2878, allocations: 0 / 339.1 MB, free: 6.906 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001525/0.2893, allocations: 0.6924 MB / 339.7 MB, free: 6.199 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.2894, allocations: 8 kB / 339.8 MB, free: 6.191 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.2894, allocations: 4.156 kB / 339.8 MB, free: 6.188 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008809/0.2903, allocations: 0.4896 MB / 340.2 MB, free: 5.691 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.2906, allocations: 79.89 kB / 340.3 MB, free: 5.613 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.2919, allocations: 1.386 MB / 341.7 MB, free: 4.176 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004768/0.2924, allocations: 95.98 kB / 341.8 MB, free: 4.082 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.2924, allocations: 19.98 kB / 341.8 MB, free: 4.062 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.0002359/0.2927, allocations: 158.6 kB / 342 MB, free: 3.898 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.121e-05/0.2927, allocations: 35.56 kB / 342 MB, free: 3.863 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.2929, allocations: 47.3 kB / 342.1 MB, free: 3.82 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.2929, allocations: 11.94 kB / 342.1 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.2929, allocations: 0 / 342.1 MB, free: 3.809 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.2929, allocations: 4 kB / 342.1 MB, free: 3.805 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.2957, allocations: 1.393 MB / 343.5 MB, free: 2.332 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.75e-06/0.2957, allocations: 0 / 343.5 MB, free: 2.332 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.296, allocations: 63.89 kB / 343.5 MB, free: 2.27 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007074/0.2967, allocations: 469.5 kB / 344 MB, free: 1.805 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.2968, allocations: 23.98 kB / 344 MB, free: 1.781 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001191/0.298, allocations: 1.339 MB / 345.3 MB, free: 400 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.298, allocations: 4.031 kB / 345.4 MB, free: 396 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/0.2998, allocations: 0.9511 MB / 346.3 MB, free: 15.4 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.3, allocations: 148.7 kB / 346.4 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.376e-05/0.3001, allocations: 23.94 kB / 346.5 MB, free: 15.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003123/0.3004, allocations: 51.95 kB / 346.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.3006, allocations: 87.73 kB / 346.6 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.191e-05/0.3007, allocations: 23.97 kB / 346.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001736/0.3008, allocations: 168.5 kB / 346.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3008, allocations: 0 / 346.8 MB, free: 14.88 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005007/0.3014, allocations: 108 kB / 346.9 MB, free: 14.78 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.0002629/0.3016, allocations: 139.2 kB / 347 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3027, allocations: 0.5102 MB / 347.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3027, allocations: 0 / 347.5 MB, free: 14.12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005801/0.3033, allocations: 296 kB / 347.8 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.3039, allocations: 52.72 kB / 347.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.3064, allocations: 1.199 MB / 349.1 MB, free: 12.55 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003625/0.3068, allocations: 0.7803 MB / 349.9 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001361/0.3069, allocations: 26.98 kB / 349.9 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.004e-05/0.307, allocations: 43.36 kB / 349.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.307, allocations: 0 / 349.9 MB, free: 11.67 MB / 286.1 MB Notification: Performance of Templates: time 0.01287/0.3199, allocations: 8.112 MB / 358 MB, free: 3.547 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)