Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|mass1.s|mass1.v|mass2.s|mass2.v|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.597/1.597, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 8 kB / 233.2 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07169/0.07207, allocations: 38.78 MB / 272 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2816/0.3537, allocations: 67.93 MB / 339.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003524/0.3541, allocations: 71.95 kB / 340 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03856/0.3927, allocations: 5.38 MB / 345.4 MB, free: 9.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.62e-06/0.3928, allocations: 0 / 345.4 MB, free: 9.668 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.567e-05/0.3928, allocations: 12 kB / 345.4 MB, free: 9.656 MB / 282.7 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.002514/0.3954, allocations: 0.6273 MB / 346 MB, free: 8.977 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.396e-05/0.3955, allocations: 12.02 kB / 346 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002125/0.3957, allocations: 39.62 kB / 346.1 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007887/0.3965, allocations: 267.5 kB / 346.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.15e-05/0.3966, allocations: 24.5 kB / 346.4 MB, free: 8.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.3968, allocations: 35.95 kB / 346.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001881/0.3987, allocations: 372.7 kB / 346.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.707e-05/0.3988, allocations: 7.891 kB / 346.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.3989, allocations: 12 kB / 346.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.399, allocations: 8 kB / 346.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002211/0.4012, allocations: 406 kB / 347.2 MB, free: 7.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005062/0.4063, allocations: 1.123 MB / 348.3 MB, free: 6.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.4078, allocations: 292.1 kB / 348.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.373e-05/0.4079, allocations: 11.95 kB / 348.6 MB, free: 6.266 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/0.408, allocations: 42.48 kB / 348.6 MB, free: 6.215 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 6.073e-06/0.4081, allocations: 4 kB / 348.7 MB, free: 6.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.01269/0.4208, allocations: 2.205 MB / 350.9 MB, free: 3.871 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.37e-05/0.4209, allocations: 55.41 kB / 350.9 MB, free: 3.805 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000573/0.4215, allocations: 208.2 kB / 351.1 MB, free: 3.598 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.4217, allocations: 37.7 kB / 351.1 MB, free: 3.555 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.422, allocations: 219.1 kB / 351.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.4223, allocations: 154 kB / 351.5 MB, free: 3.188 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.4224, allocations: 8 kB / 351.5 MB, free: 3.18 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.4227, allocations: 338.8 kB / 351.9 MB, free: 2.84 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.4239, allocations: 209 kB / 352.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.4253, allocations: 280.8 kB / 352.3 MB, free: 2.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009829/0.4263, allocations: 176.8 kB / 352.5 MB, free: 2.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.4263, allocations: 0 / 352.5 MB, free: 2.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.004709/0.431, allocations: 0.7901 MB / 353.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/0.4311, allocations: 8 kB / 353.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.4312, allocations: 3.938 kB / 353.3 MB, free: 1.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002758/0.4339, allocations: 0.5169 MB / 353.8 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008895/0.4349, allocations: 75.83 kB / 353.9 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/0.4381, allocations: 1.378 MB / 355.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/0.4388, allocations: 100.1 kB / 355.4 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.212e-05/0.4389, allocations: 23.98 kB / 355.4 MB, free: 15.2 MB / 298.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 (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.00031/0.4392, allocations: 158.1 kB / 355.5 MB, free: 15.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.4394, allocations: 31.58 kB / 355.6 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.4395, allocations: 51.3 kB / 355.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.469e-06/0.4395, allocations: 4 kB / 355.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.592e-06/0.4395, allocations: 0 / 355.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.186e-06/0.4395, allocations: 0 / 355.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/0.4438, allocations: 1.479 MB / 357.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.548e-06/0.4438, allocations: 8.094 kB / 357.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.4442, allocations: 55.97 kB / 357.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.4454, allocations: 0.4933 MB / 357.7 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.058e-05/0.4455, allocations: 19.97 kB / 357.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.4473, allocations: 1.331 MB / 359 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-05/0.4473, allocations: 7.984 kB / 359 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/0.4502, allocations: 1.096 MB / 360.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.4506, allocations: 156.7 kB / 360.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.4507, allocations: 16 kB / 360.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.4511, allocations: 51.95 kB / 360.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/0.4515, allocations: 107.7 kB / 360.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.071e-05/0.4515, allocations: 23.98 kB / 360.5 MB, free: 9.887 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002479/0.4518, allocations: 168.5 kB / 360.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.4518, allocations: 0 / 360.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006489/0.4525, allocations: 103.9 kB / 360.7 MB, free: 9.617 MB / 298.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 (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.0003027/0.4528, allocations: 148 kB / 360.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.4543, allocations: 0.4911 MB / 361.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.915e-06/0.4543, allocations: 0 / 361.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008357/0.4552, allocations: 280.3 kB / 361.6 MB, free: 8.699 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.4557, allocations: 46.31 kB / 361.7 MB, free: 8.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/0.4588, allocations: 1.203 MB / 362.9 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.4593, allocations: 0.7803 MB / 363.7 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.4595, allocations: 31.42 kB / 363.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of SimCode: time 1.56e-06/0.4595, allocations: 0 / 363.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of Templates: time 0.01151/0.471, allocations: 6.052 MB / 369.8 MB, free: 0.5039 MB / 298.7 MB