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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.06/1.06, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.305e-05/2.31e-05, allocations: 0 / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2116, allocations: 25.15 MB / 179.5 MB, free: 0.8008 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07025/0.2821, allocations: 34.82 MB / 214.3 MB, free: 14.28 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.2824, allocations: 67.97 kB / 214.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02427/0.3067, allocations: 5.021 MB / 219.4 MB, free: 9.176 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3067, allocations: 0 / 219.4 MB, free: 9.176 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.3067, allocations: 4 kB / 219.4 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.001658/0.3084, allocations: 0.5957 MB / 220 MB, free: 8.531 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.3085, allocations: 8.031 kB / 220 MB, free: 8.523 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001136/0.3086, allocations: 62.53 kB / 220.1 MB, free: 8.453 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.3087, allocations: 35.62 kB / 220.1 MB, free: 8.418 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.3092, allocations: 254.3 kB / 220.4 MB, free: 8.129 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.711e-05/0.3092, allocations: 32.5 kB / 220.4 MB, free: 8.098 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.3094, allocations: 28 kB / 220.4 MB, free: 8.07 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009551/0.3103, allocations: 352.8 kB / 220.8 MB, free: 7.719 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.3104, allocations: 8 kB / 220.8 MB, free: 7.711 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-05/0.3104, allocations: 15.95 kB / 220.8 MB, free: 7.695 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.3105, allocations: 8 kB / 220.8 MB, free: 7.688 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.3115, allocations: 370.1 kB / 221.2 MB, free: 7.324 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.3147, allocations: 1.119 MB / 222.3 MB, free: 6.125 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006869/0.3154, allocations: 258.8 kB / 222.5 MB, free: 5.859 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.3159, allocations: 185.4 kB / 222.7 MB, free: 5.676 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.105e-05/0.316, allocations: 4 kB / 222.7 MB, free: 5.672 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.316, allocations: 38.56 kB / 222.8 MB, free: 5.625 MB / 186.7 MB Notification: Performance of pre-optimization done (n=37): time 2.815e-06/0.316, allocations: 0 / 222.8 MB, free: 5.625 MB / 186.7 MB Notification: Performance of matching and sorting (n=43): time 0.004353/0.3204, allocations: 1.463 MB / 224.2 MB, free: 4.059 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.3205, allocations: 59.41 kB / 224.3 MB, free: 3.988 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.3208, allocations: 196.9 kB / 224.5 MB, free: 3.793 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.749e-05/0.3209, allocations: 37.7 kB / 224.5 MB, free: 3.75 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.321, allocations: 215.2 kB / 224.7 MB, free: 3.535 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.3212, allocations: 150.1 kB / 224.9 MB, free: 3.387 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.3213, allocations: 8 kB / 224.9 MB, free: 3.379 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3215, allocations: 330.8 kB / 225.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.322, allocations: 197 kB / 225.4 MB, free: 2.852 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.3226, allocations: 264.9 kB / 225.7 MB, free: 2.57 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004832/0.3231, allocations: 157.6 kB / 225.8 MB, free: 2.414 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.3231, allocations: 7.938 kB / 225.8 MB, free: 2.406 MB / 186.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002197/0.3253, allocations: 0.6456 MB / 226.5 MB, free: 1.75 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.3254, allocations: 10.03 kB / 226.5 MB, free: 1.742 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.3254, allocations: 160 / 226.5 MB, free: 1.742 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.3268, allocations: 0.5013 MB / 227 MB, free: 1.234 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00055/0.3274, allocations: 71.91 kB / 227 MB, free: 1.164 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001775/0.3292, allocations: 1.378 MB / 228.4 MB, free: 15.73 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008615/0.3301, allocations: 99.97 kB / 228.5 MB, free: 15.64 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.003e-05/0.3302, allocations: 20 kB / 228.5 MB, free: 15.62 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.0002012/0.3304, allocations: 140.9 kB / 228.7 MB, free: 15.47 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3305, allocations: 27.62 kB / 228.7 MB, free: 15.45 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.3307, allocations: 47.09 kB / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.3307, allocations: 4 kB / 228.8 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.3307, allocations: 11.94 kB / 228.8 MB, free: 15.38 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3308, allocations: 0 / 228.8 MB, free: 15.38 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005302/0.3361, allocations: 1.328 MB / 230.1 MB, free: 13.97 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.3361, allocations: 0 / 230.1 MB, free: 13.97 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006951/0.3368, allocations: 63.97 kB / 230.2 MB, free: 13.91 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/0.3385, allocations: 485.4 kB / 230.6 MB, free: 13.43 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.451e-05/0.3386, allocations: 15.97 kB / 230.7 MB, free: 13.41 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002126/0.3408, allocations: 1.323 MB / 232 MB, free: 12.04 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/0.3408, allocations: 4.031 kB / 232 MB, free: 12.04 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003579/0.3444, allocations: 0.9605 MB / 232.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.3448, allocations: 152.7 kB / 233.1 MB, free: 10.84 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.345, allocations: 16 kB / 233.1 MB, free: 10.82 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007576/0.3458, allocations: 55.95 kB / 233.2 MB, free: 10.77 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004105/0.3462, allocations: 95.78 kB / 233.3 MB, free: 10.68 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.862e-05/0.3463, allocations: 19.98 kB / 233.3 MB, free: 10.66 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003068/0.3467, allocations: 161.4 kB / 233.4 MB, free: 10.5 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.3467, allocations: 0 / 233.4 MB, free: 10.5 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0009915/0.3477, allocations: 107.9 kB / 233.5 MB, free: 10.39 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.004544/0.3523, allocations: 1.839 MB / 235.4 MB, free: 8.484 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.3543, allocations: 462.8 kB / 235.8 MB, free: 8.035 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.3544, allocations: 0 / 235.8 MB, free: 8.035 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.3555, allocations: 268.7 kB / 236.1 MB, free: 7.773 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007726/0.3563, allocations: 44.3 kB / 236.1 MB, free: 7.73 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005036/0.3614, allocations: 0.9703 MB / 237.1 MB, free: 6.707 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005213/0.362, allocations: 0.7803 MB / 237.9 MB, free: 5.902 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.3623, allocations: 95.39 kB / 238 MB, free: 5.809 MB / 202.7 MB Notification: Performance of SimCode: time 1.122e-06/0.3623, allocations: 3.938 kB / 238 MB, free: 5.805 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.118/3.481, allocations: 6.99 MB / 245 MB, free: 55.52 MB / 202.7 MB