Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.Brake.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.Translational.Examples.Brake") Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.07992, allocations: 44.51 MB / 308.4 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4115, allocations: 73.25 MB / 381.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.4118, allocations: 70.72 kB / 381.8 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02156/0.4334, allocations: 5.464 MB / 387.2 MB, free: 18.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.689e-06/0.4334, allocations: 0 / 387.2 MB, free: 18.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.4335, allocations: 10.88 kB / 387.2 MB, free: 18.16 MB / 314.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.001253/0.4347, allocations: 0.6152 MB / 387.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4348, allocations: 9.469 kB / 387.9 MB, free: 17.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.4349, allocations: 36.31 kB / 387.9 MB, free: 17.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.4353, allocations: 265.6 kB / 388.2 MB, free: 17.47 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.203e-05/0.4353, allocations: 30.86 kB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.748e-05/0.4354, allocations: 33.59 kB / 388.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009032/0.4363, allocations: 359.1 kB / 388.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.4364, allocations: 1.719 kB / 388.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.617e-05/0.4365, allocations: 10.69 kB / 388.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.4365, allocations: 5.781 kB / 388.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.4375, allocations: 366 kB / 389 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002783/0.4403, allocations: 1.129 MB / 390.1 MB, free: 16.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007028/0.4411, allocations: 291.6 kB / 390.4 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.77e-05/0.4412, allocations: 3.875 kB / 390.4 MB, free: 16.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.4412, allocations: 38.06 kB / 390.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 4.014e-06/0.4412, allocations: 0 / 390.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.006031/0.4473, allocations: 2.016 MB / 392.4 MB, free: 16.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.4473, allocations: 59.59 kB / 392.5 MB, free: 16.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.4476, allocations: 187.8 kB / 392.7 MB, free: 15.94 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.082e-05/0.4477, allocations: 48.17 kB / 392.7 MB, free: 15.9 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.198e-05/0.4478, allocations: 200.6 kB / 392.9 MB, free: 15.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.4479, allocations: 161.3 kB / 393.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.448, allocations: 11.44 kB / 393.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.435e-05/0.4481, allocations: 333.1 kB / 393.4 MB, free: 15.32 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000543/0.4486, allocations: 186.8 kB / 393.6 MB, free: 15.31 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005749/0.4492, allocations: 266.6 kB / 393.8 MB, free: 15.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.4497, allocations: 145.8 kB / 394 MB, free: 15.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.034e-06/0.4497, allocations: 0 / 394 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002079/0.4518, allocations: 0.6546 MB / 394.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.4519, allocations: 3.875 kB / 394.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.4519, allocations: 3.938 kB / 394.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009463/0.4529, allocations: 396.5 kB / 395 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.4533, allocations: 70.58 kB / 395.1 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.4546, allocations: 1.315 MB / 396.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006557/0.4553, allocations: 98.12 kB / 396.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.25e-05/0.4554, allocations: 22.08 kB / 396.5 MB, free: 14.04 MB / 314.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): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002823/0.4557, allocations: 157.8 kB / 396.7 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.4558, allocations: 35.11 kB / 396.7 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/0.4579, allocations: 0.643 MB / 397.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.679e-06/0.458, allocations: 3.875 kB / 397.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.124e-06/0.458, allocations: 0 / 397.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.458, allocations: 3.047 kB / 397.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00366/0.4617, allocations: 1.321 MB / 398.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.319e-06/0.4617, allocations: 2.859 kB / 398.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.4622, allocations: 59.62 kB / 398.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008572/0.463, allocations: 356.3 kB / 399.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.069e-05/0.4631, allocations: 26.7 kB / 399.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.4644, allocations: 1.264 MB / 400.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.567e-06/0.4644, allocations: 14.52 kB / 400.4 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.4669, allocations: 0.9217 MB / 401.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002687/0.4672, allocations: 149.8 kB / 401.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.4674, allocations: 25.03 kB / 401.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004416/0.4678, allocations: 47.11 kB / 401.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002386/0.4681, allocations: 99.41 kB / 401.6 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.927e-05/0.4681, allocations: 27.72 kB / 401.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001813/0.4683, allocations: 162.5 kB / 401.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.85e-07/0.4684, allocations: 0 / 401.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000647/0.469, allocations: 103.2 kB / 401.9 MB, free: 11.77 MB / 314.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.0002852/0.4693, allocations: 152.1 kB / 402.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.4708, allocations: 0.5242 MB / 402.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4708, allocations: 0 / 402.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008109/0.4716, allocations: 283.7 kB / 402.9 MB, free: 11.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.4722, allocations: 46.11 kB / 402.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002957/0.4752, allocations: 1.186 MB / 404.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.4755, allocations: 0.7932 MB / 404.9 MB, free: 10.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.4756, allocations: 23.03 kB / 404.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of SimCode: time 1.742e-06/0.4756, allocations: 0 / 404.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of Templates: time 0.01048/0.4861, allocations: 6.407 MB / 411.3 MB, free: 8.73 MB / 314.7 MB