Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 0.98/0.98, allocations: 111.1 MB / 126.7 MB, free: 6.125 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002676, allocations: 4 kB / 158.3 MB, free: 15.16 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1016, allocations: 25.17 MB / 183.5 MB, free: 5.961 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.2957, allocations: 34.91 MB / 218.4 MB, free: 6.414 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001911/0.2959, allocations: 62.19 kB / 218.5 MB, free: 6.406 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01836/0.3143, allocations: 5.023 MB / 223.5 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.386e-06/0.3143, allocations: 0 / 223.5 MB, free: 4.387 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.3143, allocations: 3.812 kB / 223.5 MB, free: 4.387 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.001049/0.3154, allocations: 0.6148 MB / 224.1 MB, free: 3.883 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.3154, allocations: 11.5 kB / 224.1 MB, free: 3.883 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.658e-05/0.3155, allocations: 34.97 kB / 224.2 MB, free: 3.863 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.3159, allocations: 272.5 kB / 224.4 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.3159, allocations: 22.28 kB / 224.4 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-05/0.316, allocations: 29.88 kB / 224.5 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008209/0.3168, allocations: 360.3 kB / 224.8 MB, free: 3.488 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.3169, allocations: 11.36 kB / 224.8 MB, free: 3.484 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.05e-05/0.3169, allocations: 10.81 kB / 224.8 MB, free: 3.48 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.317, allocations: 15.56 kB / 224.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009282/0.3179, allocations: 389.7 kB / 225.2 MB, free: 3.406 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3203, allocations: 1.103 MB / 226.3 MB, free: 2.75 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006316/0.3209, allocations: 279.9 kB / 226.6 MB, free: 2.688 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.321, allocations: 3.719 kB / 226.6 MB, free: 2.688 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.321, allocations: 34.25 kB / 226.7 MB, free: 2.648 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 4.046e-06/0.321, allocations: 0 / 226.7 MB, free: 2.648 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.005707/0.3268, allocations: 2.073 MB / 228.7 MB, free: 1.66 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/0.3268, allocations: 59.08 kB / 228.8 MB, free: 1.594 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.3271, allocations: 199.1 kB / 229 MB, free: 1.477 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.3271, allocations: 48.58 kB / 229 MB, free: 1.441 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.909e-05/0.3272, allocations: 210.1 kB / 229.2 MB, free: 1.258 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3274, allocations: 147.4 kB / 229.4 MB, free: 1.152 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.48e-05/0.3274, allocations: 9.875 kB / 229.4 MB, free: 1.152 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.418e-05/0.3275, allocations: 327.2 kB / 229.7 MB, free: 0.8359 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005662/0.3281, allocations: 201.2 kB / 229.9 MB, free: 0.8086 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006084/0.3287, allocations: 285.5 kB / 230.2 MB, free: 0.6836 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004196/0.3291, allocations: 162.2 kB / 230.3 MB, free: 0.582 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.442e-06/0.3292, allocations: 4 kB / 230.3 MB, free: 0.5781 MB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001779/0.3309, allocations: 0.6727 MB / 231 MB, free: 76 kB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.331, allocations: 12.73 kB / 231 MB, free: 64 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.096e-06/0.331, allocations: 4 kB / 231 MB, free: 60 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.3322, allocations: 0.5111 MB / 231.5 MB, free: 15.63 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003749/0.3326, allocations: 75.78 kB / 231.6 MB, free: 15.56 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.3345, allocations: 1.382 MB / 233 MB, free: 14.26 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.3355, allocations: 90.52 kB / 233.1 MB, free: 14.18 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.3357, allocations: 23.05 kB / 233.1 MB, free: 14.16 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.0004446/0.3361, allocations: 159.3 kB / 233.3 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.3363, allocations: 27.72 kB / 233.3 MB, free: 13.99 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001629/0.3365, allocations: 48.44 kB / 233.3 MB, free: 13.98 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3365, allocations: 4 kB / 233.3 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.284e-06/0.3366, allocations: 0 / 233.3 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.3366, allocations: 11.88 kB / 233.4 MB, free: 13.96 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006341/0.343, allocations: 1.355 MB / 234.7 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.343, allocations: 4 kB / 234.7 MB, free: 12.8 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006191/0.3437, allocations: 55.53 kB / 234.8 MB, free: 12.75 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001902/0.3456, allocations: 497.5 kB / 235.3 MB, free: 12.34 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.3457, allocations: 19.16 kB / 235.3 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/0.3484, allocations: 1.327 MB / 236.6 MB, free: 11.06 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.977e-06/0.3484, allocations: 128 / 236.6 MB, free: 11.06 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004388/0.3528, allocations: 0.9969 MB / 237.6 MB, free: 10.24 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004609/0.3533, allocations: 154.5 kB / 237.7 MB, free: 10.09 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001725/0.3535, allocations: 19.38 kB / 237.8 MB, free: 10.08 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007137/0.3543, allocations: 51.33 kB / 237.8 MB, free: 10.03 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/0.3547, allocations: 98.16 kB / 237.9 MB, free: 9.945 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/0.3548, allocations: 23.78 kB / 237.9 MB, free: 9.926 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0003415/0.3552, allocations: 162.1 kB / 238.1 MB, free: 9.789 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.051e-06/0.3552, allocations: 0 / 238.1 MB, free: 9.789 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001104/0.3563, allocations: 102.6 kB / 238.2 MB, free: 9.703 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.0003927/0.3567, allocations: 148.7 kB / 238.3 MB, free: 9.562 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002288/0.3591, allocations: 0.4908 MB / 238.8 MB, free: 9.211 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.301e-06/0.3591, allocations: 0 / 238.8 MB, free: 9.211 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.3604, allocations: 269.6 kB / 239.1 MB, free: 9.027 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007577/0.3612, allocations: 41.11 kB / 239.1 MB, free: 9 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.3661, allocations: 1.162 MB / 240.3 MB, free: 7.863 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/0.3668, allocations: 0.7803 MB / 241.1 MB, free: 7.055 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.3671, allocations: 35.23 kB / 241.1 MB, free: 7.023 MB / 186.7 MB Notification: Performance of SimCode: time 1.939e-06/0.3671, allocations: 0 / 241.1 MB, free: 7.023 MB / 186.7 MB Notification: Performance of Templates: time 0.01826/0.3854, allocations: 5.872 MB / 247 MB, free: 1.176 MB / 186.7 MB