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 1.022/1.022, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.174e-05/2.191e-05, allocations: 0 / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1366, allocations: 25.15 MB / 179.4 MB, free: 0.793 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05239/0.189, allocations: 34.83 MB / 214.3 MB, free: 14.28 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.1893, allocations: 67.97 kB / 214.3 MB, free: 14.21 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02089/0.2102, allocations: 5.023 MB / 219.3 MB, free: 9.176 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.892e-06/0.2102, allocations: 0 / 219.3 MB, free: 9.176 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.983e-05/0.2103, allocations: 4 kB / 219.3 MB, free: 9.172 MB / 186.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.001278/0.2116, allocations: 0.5918 MB / 219.9 MB, free: 8.535 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.2116, allocations: 8.031 kB / 219.9 MB, free: 8.527 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.2117, allocations: 31.62 kB / 220 MB, free: 8.496 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.2122, allocations: 262.3 kB / 220.2 MB, free: 8.199 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.2122, allocations: 24.55 kB / 220.3 MB, free: 8.176 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.425e-05/0.2123, allocations: 28 kB / 220.3 MB, free: 8.148 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008308/0.2132, allocations: 360.7 kB / 220.6 MB, free: 7.789 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.2132, allocations: 0 / 220.6 MB, free: 7.789 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.838e-05/0.2133, allocations: 15.98 kB / 220.7 MB, free: 7.773 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.2133, allocations: 11.95 kB / 220.7 MB, free: 7.762 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009047/0.2142, allocations: 370.1 kB / 221 MB, free: 7.398 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.2168, allocations: 1.107 MB / 222.1 MB, free: 6.211 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005818/0.2174, allocations: 258.8 kB / 222.4 MB, free: 5.945 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.2179, allocations: 185.4 kB / 222.6 MB, free: 5.762 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.2179, allocations: 4 kB / 222.6 MB, free: 5.758 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.218, allocations: 38.5 kB / 222.6 MB, free: 5.711 MB / 186.7 MB Notification: Performance of pre-optimization done (n=37): time 3.014e-06/0.218, allocations: 0 / 222.6 MB, free: 5.711 MB / 186.7 MB Notification: Performance of matching and sorting (n=43): time 0.003882/0.2219, allocations: 1.467 MB / 224.1 MB, free: 4.141 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.222, allocations: 55.41 kB / 224.1 MB, free: 4.074 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.2223, allocations: 200.9 kB / 224.3 MB, free: 3.875 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.654e-05/0.2224, allocations: 41.69 kB / 224.4 MB, free: 3.828 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/0.2225, allocations: 211.2 kB / 224.6 MB, free: 3.617 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001787/0.2227, allocations: 150 kB / 224.7 MB, free: 3.469 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.2228, allocations: 12 kB / 224.7 MB, free: 3.457 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.223, allocations: 326.8 kB / 225 MB, free: 3.129 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004807/0.2235, allocations: 189.1 kB / 225.2 MB, free: 2.941 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005456/0.224, allocations: 268.8 kB / 225.5 MB, free: 2.656 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.2244, allocations: 153.6 kB / 225.6 MB, free: 2.504 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.2245, allocations: 3.953 kB / 225.6 MB, free: 2.5 MB / 186.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001862/0.2263, allocations: 0.6535 MB / 226.3 MB, free: 1.836 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.2264, allocations: 4 kB / 226.3 MB, free: 1.832 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.2264, allocations: 7.938 kB / 226.3 MB, free: 1.824 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.2276, allocations: 0.5055 MB / 226.8 MB, free: 1.312 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.228, allocations: 67.91 kB / 226.9 MB, free: 1.246 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001755/0.2298, allocations: 1.382 MB / 228.3 MB, free: 15.81 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000564/0.2304, allocations: 96.05 kB / 228.4 MB, free: 15.72 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.2305, allocations: 27.92 kB / 228.4 MB, free: 15.69 MB / 202.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 () * 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.0001877/0.2307, allocations: 128.9 kB / 228.5 MB, free: 15.56 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.2308, allocations: 27.72 kB / 228.5 MB, free: 15.53 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.2309, allocations: 47.08 kB / 228.6 MB, free: 15.48 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.947e-06/0.2309, allocations: 4 kB / 228.6 MB, free: 15.48 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.882e-06/0.231, allocations: 4 kB / 228.6 MB, free: 15.48 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.909e-05/0.231, allocations: 11.94 kB / 228.6 MB, free: 15.46 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/0.2346, allocations: 1.328 MB / 229.9 MB, free: 14.05 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.809e-06/0.2347, allocations: 3.984 kB / 229.9 MB, free: 14.05 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.235, allocations: 59.91 kB / 230 MB, free: 13.99 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.2361, allocations: 481.5 kB / 230.5 MB, free: 13.52 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-05/0.2362, allocations: 19.98 kB / 230.5 MB, free: 13.5 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/0.2378, allocations: 1.327 MB / 231.8 MB, free: 12.12 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.175e-06/0.2379, allocations: 3.938 kB / 231.8 MB, free: 12.11 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.2401, allocations: 0.9528 MB / 232.8 MB, free: 11.09 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002678/0.2404, allocations: 152.7 kB / 232.9 MB, free: 10.93 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.2405, allocations: 19.94 kB / 232.9 MB, free: 10.91 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.2409, allocations: 51.95 kB / 233 MB, free: 10.86 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.2412, allocations: 103.8 kB / 233.1 MB, free: 10.75 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-05/0.2413, allocations: 24.09 kB / 233.1 MB, free: 10.73 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002119/0.2415, allocations: 157.4 kB / 233.3 MB, free: 10.57 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.2415, allocations: 0 / 233.3 MB, free: 10.57 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006045/0.2422, allocations: 100 kB / 233.4 MB, free: 10.48 MB / 202.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) * 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.0002791/0.2424, allocations: 154 kB / 233.5 MB, free: 10.32 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.2437, allocations: 470.1 kB / 234 MB, free: 9.859 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.2437, allocations: 0 / 234 MB, free: 9.859 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006963/0.2444, allocations: 260.3 kB / 234.2 MB, free: 9.605 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.2449, allocations: 44.34 kB / 234.3 MB, free: 9.562 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002613/0.2475, allocations: 0.8784 MB / 235.2 MB, free: 8.645 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.248, allocations: 0.7803 MB / 235.9 MB, free: 7.84 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.2482, allocations: 31.42 kB / 236 MB, free: 7.809 MB / 202.7 MB Notification: Performance of SimCode: time 1.8e-06/0.2482, allocations: 0 / 236 MB, free: 7.809 MB / 202.7 MB Notification: Performance of Templates: time 0.01086/0.2591, allocations: 5.873 MB / 241.8 MB, free: 1.93 MB / 202.7 MB