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.0009386/0.0009386, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001106/0.001106, allocations: 172.7 kB / 15.95 MB, free: 208 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.568/1.568, allocations: 205.4 MB / 222.1 MB, free: 5.332 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.0004667/0.0004669, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.274, allocations: 47.58 MB / 326.5 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Brake): time 0.002244/0.2763, allocations: 2.033 MB / 328.5 MB, free: 15.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009709/0.2773, allocations: 0.4904 MB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.2774, allocations: 3.312 kB / 329 MB, free: 15.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001972/0.2776, allocations: 34.77 kB / 329 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.2778, allocations: 76.81 kB / 329.1 MB, free: 15.35 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004642/0.2783, allocations: 138 kB / 329.2 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005704/0.2789, allocations: 429.7 kB / 329.7 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.2791, allocations: 54 kB / 329.7 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002944/0.2794, allocations: 189.6 kB / 329.9 MB, free: 14.86 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003367/0.2797, allocations: 211.1 kB / 330.1 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.2798, allocations: 19.66 kB / 330.1 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.28, allocations: 65.61 kB / 330.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.2801, allocations: 74.42 kB / 330.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2802, allocations: 79.95 kB / 330.3 MB, free: 14.58 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004561/0.2807, allocations: 318.3 kB / 330.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.2807, allocations: 0 / 330.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2807, allocations: 0 / 330.7 MB, free: 14.36 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.2807, allocations: 1.156 kB / 330.7 MB, free: 14.36 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.0013/0.282, allocations: 0.6279 MB / 331.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/0.2821, allocations: 9.469 kB / 331.3 MB, free: 13.82 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.2822, allocations: 32.59 kB / 331.3 MB, free: 13.8 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004107/0.2826, allocations: 279.4 kB / 331.6 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.2827, allocations: 24.2 kB / 331.6 MB, free: 13.51 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.302e-05/0.2828, allocations: 30.25 kB / 331.6 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008756/0.2837, allocations: 374.3 kB / 332 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.2837, allocations: 5.312 kB / 332 MB, free: 13.27 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.2838, allocations: 11 kB / 332 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.2838, allocations: 5.875 kB / 332 MB, free: 13.26 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008164/0.2846, allocations: 409.2 kB / 332.4 MB, free: 13.07 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002067/0.2867, allocations: 1.136 MB / 333.6 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.2872, allocations: 299.8 kB / 333.9 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.2876, allocations: 205.7 kB / 334.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.6e-05/0.2877, allocations: 4 kB / 334.1 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.2877, allocations: 42.48 kB / 334.1 MB, free: 11.64 MB / 270.1 MB Notification: Performance of pre-optimization done (n=39): time 2.435e-06/0.2877, allocations: 3.938 kB / 334.1 MB, free: 11.63 MB / 270.1 MB Notification: Performance of matching and sorting (n=45): time 0.004577/0.2923, allocations: 2.098 MB / 336.2 MB, free: 9.398 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.2924, allocations: 59.36 kB / 336.3 MB, free: 9.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002554/0.2927, allocations: 240.8 kB / 336.5 MB, free: 9.082 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.2927, allocations: 37.7 kB / 336.5 MB, free: 9.039 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2928, allocations: 156.8 kB / 336.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.293, allocations: 157.9 kB / 336.8 MB, free: 8.723 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-05/0.293, allocations: 8 kB / 336.9 MB, free: 8.715 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.2932, allocations: 338.8 kB / 337.2 MB, free: 8.375 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003742/0.2936, allocations: 205 kB / 337.4 MB, free: 8.176 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004446/0.294, allocations: 296.7 kB / 337.7 MB, free: 7.859 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.2943, allocations: 164.8 kB / 337.8 MB, free: 7.695 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2944, allocations: 0 / 337.8 MB, free: 7.695 MB / 270.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001414/0.2958, allocations: 0.6924 MB / 338.5 MB, free: 6.992 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.2958, allocations: 8 kB / 338.5 MB, free: 6.984 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.2958, allocations: 4.156 kB / 338.5 MB, free: 6.98 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000912/0.2967, allocations: 493.4 kB / 339 MB, free: 6.492 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002897/0.297, allocations: 71.91 kB / 339.1 MB, free: 6.422 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.2983, allocations: 1.397 MB / 340.5 MB, free: 4.973 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004017/0.2987, allocations: 96.08 kB / 340.6 MB, free: 4.879 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.2988, allocations: 23.98 kB / 340.6 MB, free: 4.855 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.0002099/0.299, allocations: 157.9 kB / 340.8 MB, free: 4.691 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.2991, allocations: 35.58 kB / 340.8 MB, free: 4.656 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.2993, allocations: 51.3 kB / 340.8 MB, free: 4.609 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2993, allocations: 11.98 kB / 340.9 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2993, allocations: 0 / 340.9 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2993, allocations: 0 / 340.9 MB, free: 4.598 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.3019, allocations: 1.386 MB / 342.2 MB, free: 3.133 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.302, allocations: 3.953 kB / 342.2 MB, free: 3.129 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.3022, allocations: 63.91 kB / 342.3 MB, free: 3.066 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006874/0.3029, allocations: 469.6 kB / 342.8 MB, free: 2.602 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.011e-05/0.303, allocations: 15.98 kB / 342.8 MB, free: 2.586 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.3041, allocations: 1.335 MB / 344.1 MB, free: 1.199 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.3041, allocations: 3.938 kB / 344.1 MB, free: 1.195 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.3057, allocations: 0.951 MB / 345.1 MB, free: 212 kB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.3059, allocations: 152.7 kB / 345.2 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.306, allocations: 16 kB / 345.2 MB, free: 24 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.3063, allocations: 55.91 kB / 345.3 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002015/0.3065, allocations: 99.78 kB / 345.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.544e-05/0.3065, allocations: 15.98 kB / 345.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.3067, allocations: 172.5 kB / 345.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3067, allocations: 4 kB / 345.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004858/0.3072, allocations: 104 kB / 345.7 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.0002746/0.3075, allocations: 138.9 kB / 345.8 MB, free: 15.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.3086, allocations: 0.5101 MB / 346.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3086, allocations: 4 kB / 346.3 MB, free: 14.92 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005664/0.3092, allocations: 295.6 kB / 346.6 MB, free: 14.63 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004783/0.3096, allocations: 56.73 kB / 346.7 MB, free: 14.58 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3118, allocations: 1.163 MB / 347.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.3122, allocations: 0.7842 MB / 348.6 MB, free: 12.56 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.3124, allocations: 30.97 kB / 348.7 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.12e-05/0.3124, allocations: 27.44 kB / 348.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3125, allocations: 0 / 348.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of Templates: time 0.01258/0.325, allocations: 7.885 MB / 356.6 MB, free: 4.609 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)