Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.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.001567/0.001567, 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.001795/0.001795, allocations: 192.8 kB / 16.14 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.652/1.652, allocations: 205.1 MB / 222 MB, free: 4.719 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.001076/0.001076, allocations: 51.92 kB / 278 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.271, allocations: 46.62 MB / 324.7 MB, free: 2.051 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.003062/0.2741, allocations: 2.469 MB / 327.1 MB, free: 104 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.2752, allocations: 0.5041 MB / 327.6 MB, free: 15.69 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.2753, allocations: 7.781 kB / 327.6 MB, free: 15.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.2755, allocations: 39.47 kB / 327.7 MB, free: 15.65 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001417/0.2756, allocations: 72.11 kB / 327.8 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.276, allocations: 166.2 kB / 327.9 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.2764, allocations: 467.9 kB / 328.4 MB, free: 15.2 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.2766, allocations: 60.08 kB / 328.4 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.2768, allocations: 190.2 kB / 328.6 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.277, allocations: 225.5 kB / 328.8 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.987e-05/0.2771, allocations: 25.48 kB / 328.9 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001527/0.2773, allocations: 67.02 kB / 328.9 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.2774, allocations: 79.38 kB / 329 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2776, allocations: 163.4 kB / 329.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.2781, allocations: 444.1 kB / 329.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2781, allocations: 0 / 329.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2781, allocations: 0 / 329.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2781, allocations: 1.312 kB / 329.6 MB, free: 14.39 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.001356/0.2795, allocations: 0.6616 MB / 330.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.2796, allocations: 13.19 kB / 330.3 MB, free: 13.81 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.2797, allocations: 38.19 kB / 330.3 MB, free: 13.79 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.28, allocations: 275.9 kB / 330.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.2801, allocations: 25.59 kB / 330.6 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.2802, allocations: 26.62 kB / 330.6 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007592/0.2809, allocations: 374 kB / 331 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.281, allocations: 10.27 kB / 331 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.569e-05/0.281, allocations: 18.06 kB / 331 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.281, allocations: 6.406 kB / 331 MB, free: 13.24 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007799/0.2818, allocations: 399.3 kB / 331.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.2838, allocations: 1.099 MB / 332.5 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005338/0.2843, allocations: 298.2 kB / 332.8 MB, free: 11.93 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/0.2847, allocations: 201.4 kB / 333 MB, free: 11.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2847, allocations: 11.88 kB / 333 MB, free: 11.72 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.2848, allocations: 38.56 kB / 333.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.695e-06/0.2848, allocations: 0 / 333.1 MB, free: 11.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004396/0.2892, allocations: 2.027 MB / 335.1 MB, free: 9.516 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.2893, allocations: 59.41 kB / 335.1 MB, free: 9.445 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.2895, allocations: 237 kB / 335.4 MB, free: 9.203 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.2896, allocations: 41.69 kB / 335.4 MB, free: 9.156 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.2897, allocations: 152.7 kB / 335.6 MB, free: 9 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.2898, allocations: 146 kB / 335.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.29, allocations: 106.1 kB / 335.8 MB, free: 8.746 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.2901, allocations: 338.8 kB / 336.1 MB, free: 8.406 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.2905, allocations: 213 kB / 336.4 MB, free: 8.199 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.291, allocations: 284.8 kB / 336.6 MB, free: 7.895 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006122/0.2916, allocations: 389.6 kB / 337 MB, free: 7.488 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2916, allocations: 0 / 337 MB, free: 7.488 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001409/0.293, allocations: 0.6886 MB / 337.7 MB, free: 6.785 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.2931, allocations: 8 kB / 337.7 MB, free: 6.777 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2931, allocations: 0 / 337.7 MB, free: 6.777 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008661/0.294, allocations: 0.4936 MB / 338.2 MB, free: 6.277 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.2942, allocations: 71.91 kB / 338.3 MB, free: 6.207 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.2954, allocations: 1.39 MB / 339.7 MB, free: 4.766 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.2958, allocations: 67.94 kB / 339.7 MB, free: 4.699 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.2959, allocations: 20 kB / 339.7 MB, free: 4.68 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.0001901/0.2961, allocations: 163.3 kB / 339.9 MB, free: 4.512 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.796e-05/0.2962, allocations: 35.56 kB / 339.9 MB, free: 4.477 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.2963, allocations: 51.25 kB / 340 MB, free: 4.43 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2963, allocations: 4 kB / 340 MB, free: 4.426 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.2963, allocations: 0 / 340 MB, free: 4.426 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.2963, allocations: 3.984 kB / 340 MB, free: 4.422 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.2989, allocations: 1.354 MB / 341.4 MB, free: 2.988 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2989, allocations: 0 / 341.4 MB, free: 2.988 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.2992, allocations: 59.91 kB / 341.4 MB, free: 2.93 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006943/0.2999, allocations: 465.3 kB / 341.9 MB, free: 2.469 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.3, allocations: 24.03 kB / 341.9 MB, free: 2.445 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.3011, allocations: 1.343 MB / 343.2 MB, free: 1.051 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3011, allocations: 0 / 343.2 MB, free: 1.051 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00172/0.3029, allocations: 0.9431 MB / 344.2 MB, free: 72 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.3031, allocations: 152.8 kB / 344.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.012e-05/0.3032, allocations: 15.94 kB / 344.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.3035, allocations: 39.95 kB / 344.4 MB, free: 15.85 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.3037, allocations: 87.78 kB / 344.5 MB, free: 15.76 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/0.3037, allocations: 19.98 kB / 344.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001661/0.3039, allocations: 172.5 kB / 344.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3039, allocations: 0 / 344.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004753/0.3044, allocations: 104 kB / 344.8 MB, free: 15.47 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.0002303/0.3046, allocations: 147.2 kB / 344.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.3057, allocations: 0.506 MB / 345.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3057, allocations: 0 / 345.4 MB, free: 14.81 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005896/0.3063, allocations: 296.6 kB / 345.7 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.0004977/0.3068, allocations: 52.3 kB / 345.7 MB, free: 14.47 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.309, allocations: 1.101 MB / 346.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.3094, allocations: 0.7764 MB / 347.6 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001422/0.3096, allocations: 34.91 kB / 347.7 MB, free: 12.49 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.904e-05/0.3096, allocations: 27.44 kB / 347.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3096, allocations: 0 / 347.7 MB, free: 12.46 MB / 286.1 MB Notification: Performance of Templates: time 0.01293/0.3226, allocations: 8.192 MB / 355.9 MB, free: 4.266 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)