Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.118/1.118, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002684, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05454/0.05484, allocations: 25.17 MB / 184 MB, free: 6.016 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2406/0.2955, allocations: 34.9 MB / 218.9 MB, free: 6.348 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/0.2958, allocations: 63.92 kB / 219 MB, free: 6.336 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02101/0.3168, allocations: 5.025 MB / 224 MB, free: 4.312 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3169, allocations: 0 / 224 MB, free: 4.312 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.3169, allocations: 3.844 kB / 224 MB, free: 4.312 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001498/0.3184, allocations: 0.6169 MB / 224.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3185, allocations: 7.562 kB / 224.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.3186, allocations: 34.44 kB / 224.7 MB, free: 3.793 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003348/0.3189, allocations: 271.2 kB / 225 MB, free: 3.539 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.319, allocations: 21.19 kB / 225 MB, free: 3.539 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.105e-05/0.3191, allocations: 25.88 kB / 225 MB, free: 3.539 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009591/0.32, allocations: 370.2 kB / 225.4 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.3201, allocations: 1.156 kB / 225.4 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.3201, allocations: 10.69 kB / 225.4 MB, free: 3.418 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3202, allocations: 18.33 kB / 225.4 MB, free: 3.406 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/0.3214, allocations: 401.5 kB / 225.8 MB, free: 3.332 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002721/0.3241, allocations: 1.099 MB / 226.9 MB, free: 2.68 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007607/0.3249, allocations: 282.7 kB / 227.2 MB, free: 2.617 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.325, allocations: 3.875 kB / 227.2 MB, free: 2.617 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.325, allocations: 33.88 kB / 227.2 MB, free: 2.578 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 3.717e-06/0.3251, allocations: 0 / 227.2 MB, free: 2.578 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.006936/0.332, allocations: 2.07 MB / 229.3 MB, free: 1.586 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.3321, allocations: 55.22 kB / 229.3 MB, free: 1.523 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002799/0.3324, allocations: 225.2 kB / 229.5 MB, free: 1.395 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-05/0.3325, allocations: 42.31 kB / 229.6 MB, free: 1.359 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.002e-05/0.3326, allocations: 212 kB / 229.8 MB, free: 1.176 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.3327, allocations: 152.1 kB / 229.9 MB, free: 1.07 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.3328, allocations: 9.875 kB / 229.9 MB, free: 1.07 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.799e-05/0.3329, allocations: 327.1 kB / 230.3 MB, free: 0.7539 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.3335, allocations: 200.9 kB / 230.5 MB, free: 0.7266 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006663/0.3342, allocations: 282.4 kB / 230.7 MB, free: 0.625 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005328/0.3347, allocations: 171.2 kB / 230.9 MB, free: 0.5625 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3347, allocations: 3.953 kB / 230.9 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002179/0.3369, allocations: 0.6684 MB / 231.6 MB, free: 60 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.337, allocations: 8.156 kB / 231.6 MB, free: 52 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.337, allocations: 4 kB / 231.6 MB, free: 48 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001456/0.3385, allocations: 0.5223 MB / 232.1 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005085/0.339, allocations: 66.97 kB / 232.2 MB, free: 15.55 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001786/0.3408, allocations: 1.382 MB / 233.6 MB, free: 14.25 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008702/0.3417, allocations: 93.36 kB / 233.7 MB, free: 14.17 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/0.3418, allocations: 23.92 kB / 233.7 MB, free: 14.15 MB / 186.7 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 (47): * Single equations (assignments): 45 * 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.0003001/0.3421, allocations: 151.7 kB / 233.8 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3422, allocations: 35.08 kB / 233.9 MB, free: 13.98 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.3424, allocations: 39.69 kB / 233.9 MB, free: 13.98 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3424, allocations: 8 kB / 233.9 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3424, allocations: 0 / 233.9 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.3424, allocations: 8 kB / 233.9 MB, free: 13.96 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00449/0.3469, allocations: 1.363 MB / 235.3 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.347, allocations: 0 / 235.3 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/0.3475, allocations: 59.91 kB / 235.3 MB, free: 12.74 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.3488, allocations: 491.7 kB / 235.8 MB, free: 12.34 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.73e-05/0.3489, allocations: 23.66 kB / 235.8 MB, free: 12.32 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/0.3507, allocations: 1.322 MB / 237.2 MB, free: 11.05 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3507, allocations: 3.938 kB / 237.2 MB, free: 11.05 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003058/0.3538, allocations: 0.9378 MB / 238.1 MB, free: 10.31 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.3542, allocations: 151.9 kB / 238.3 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.3543, allocations: 15.81 kB / 238.3 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005298/0.3549, allocations: 56.73 kB / 238.3 MB, free: 10.11 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003056/0.3552, allocations: 95.41 kB / 238.4 MB, free: 10.02 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.84e-05/0.3553, allocations: 27.91 kB / 238.4 MB, free: 10 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002161/0.3555, allocations: 167.1 kB / 238.6 MB, free: 9.859 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.984e-06/0.3555, allocations: 4 kB / 238.6 MB, free: 9.855 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006426/0.3562, allocations: 107.6 kB / 238.7 MB, free: 9.766 MB / 186.7 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 (33): * Single equations (assignments): 31 * 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.0002852/0.3565, allocations: 134.8 kB / 238.8 MB, free: 9.629 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.3581, allocations: 498.1 kB / 239.3 MB, free: 9.281 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3581, allocations: 0 / 239.3 MB, free: 9.281 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008919/0.359, allocations: 266.6 kB / 239.6 MB, free: 9.102 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.3595, allocations: 45.84 kB / 239.6 MB, free: 9.07 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003713/0.3633, allocations: 1.171 MB / 240.8 MB, free: 7.93 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.3637, allocations: 0.7803 MB / 241.6 MB, free: 7.125 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.3639, allocations: 30.55 kB / 241.6 MB, free: 7.098 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3639, allocations: 0 / 241.6 MB, free: 7.098 MB / 186.7 MB Notification: Performance of Templates: time 0.01276/0.3766, allocations: 5.885 MB / 247.5 MB, free: 1.238 MB / 186.7 MB