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.136/1.136, allocations: 111.1 MB / 126.7 MB, free: 6.133 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 8 kB / 158.4 MB, free: 15.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05721/0.05763, allocations: 25.17 MB / 183.6 MB, free: 5.852 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2574/0.3151, allocations: 34.9 MB / 218.5 MB, free: 6.082 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.3154, allocations: 60.28 kB / 218.6 MB, free: 6.074 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02297/0.3384, allocations: 5.022 MB / 223.6 MB, free: 4.055 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3384, allocations: 0 / 223.6 MB, free: 4.055 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.3385, allocations: 7.688 kB / 223.6 MB, free: 4.055 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.001699/0.3402, allocations: 0.616 MB / 224.2 MB, free: 3.551 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.3403, allocations: 7.125 kB / 224.2 MB, free: 3.551 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001252/0.3404, allocations: 64.05 kB / 224.3 MB, free: 3.504 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.3405, allocations: 31.09 kB / 224.3 MB, free: 3.488 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.3409, allocations: 279.5 kB / 224.6 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.72e-05/0.341, allocations: 21.03 kB / 224.6 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.101e-05/0.3411, allocations: 29.41 kB / 224.6 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.3422, allocations: 363.2 kB / 225 MB, free: 3.109 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.3422, allocations: 7.891 kB / 225 MB, free: 3.105 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.3423, allocations: 13.64 kB / 225 MB, free: 3.102 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3423, allocations: 7.719 kB / 225 MB, free: 3.102 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.3435, allocations: 401.5 kB / 225.4 MB, free: 3.023 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.3465, allocations: 1.102 MB / 226.5 MB, free: 2.367 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000776/0.3474, allocations: 278.9 kB / 226.8 MB, free: 2.305 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.694e-05/0.3475, allocations: 7.203 kB / 226.8 MB, free: 2.305 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.3475, allocations: 39.06 kB / 226.8 MB, free: 2.262 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 3.978e-06/0.3475, allocations: 0 / 226.8 MB, free: 2.262 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.007558/0.3551, allocations: 2.07 MB / 228.9 MB, free: 1.27 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.3552, allocations: 59.36 kB / 229 MB, free: 1.203 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.3555, allocations: 200.7 kB / 229.1 MB, free: 1.086 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 9.082e-05/0.3556, allocations: 38.83 kB / 229.2 MB, free: 1.055 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.3557, allocations: 210.2 kB / 229.4 MB, free: 0.8711 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.3559, allocations: 150.1 kB / 229.5 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.3559, allocations: 10.34 kB / 229.5 MB, free: 0.7695 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.724e-05/0.356, allocations: 335.8 kB / 229.9 MB, free: 460 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000647/0.3567, allocations: 198.9 kB / 230.1 MB, free: 408 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006334/0.3573, allocations: 276.8 kB / 230.3 MB, free: 188 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.3579, allocations: 170.1 kB / 230.5 MB, free: 80 kB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3579, allocations: 3.953 kB / 230.5 MB, free: 76 kB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002493/0.3604, allocations: 0.6724 MB / 231.2 MB, free: 15.57 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3605, allocations: 4 kB / 231.2 MB, free: 15.56 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.3605, allocations: 0 / 231.2 MB, free: 15.56 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.3621, allocations: 0.5251 MB / 231.7 MB, free: 15.13 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.3627, allocations: 74.47 kB / 231.8 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.3648, allocations: 1.373 MB / 233.2 MB, free: 13.77 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009419/0.3658, allocations: 90.64 kB / 233.2 MB, free: 13.69 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.35e-05/0.366, allocations: 27.55 kB / 233.3 MB, free: 13.66 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.0003497/0.3663, allocations: 158.4 kB / 233.4 MB, free: 13.52 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.3665, allocations: 27.72 kB / 233.5 MB, free: 13.5 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.3666, allocations: 44.12 kB / 233.5 MB, free: 13.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.3666, allocations: 4 kB / 233.5 MB, free: 13.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.3667, allocations: 7.875 kB / 233.5 MB, free: 13.47 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.3667, allocations: 7.938 kB / 233.5 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004879/0.3716, allocations: 1.358 MB / 234.9 MB, free: 12.31 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.3716, allocations: 4 kB / 234.9 MB, free: 12.3 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/0.3722, allocations: 55.91 kB / 234.9 MB, free: 12.25 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.3737, allocations: 488 kB / 235.4 MB, free: 11.85 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.3738, allocations: 23.03 kB / 235.4 MB, free: 11.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.3756, allocations: 1.329 MB / 236.8 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3757, allocations: 0 / 236.8 MB, free: 10.56 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003215/0.3789, allocations: 0.9925 MB / 237.8 MB, free: 9.742 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003532/0.3793, allocations: 154.7 kB / 237.9 MB, free: 9.59 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.3795, allocations: 18.12 kB / 237.9 MB, free: 9.582 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005485/0.38, allocations: 50.83 kB / 238 MB, free: 9.535 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003318/0.3804, allocations: 97.97 kB / 238.1 MB, free: 9.449 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/0.3805, allocations: 26.72 kB / 238.1 MB, free: 9.43 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002603/0.3807, allocations: 167.8 kB / 238.3 MB, free: 9.285 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3808, allocations: 0 / 238.3 MB, free: 9.285 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007183/0.3815, allocations: 102.7 kB / 238.4 MB, free: 9.199 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.003793/0.3853, allocations: 1.878 MB / 240.2 MB, free: 7.496 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3871, allocations: 488.2 kB / 240.7 MB, free: 7.16 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3871, allocations: 0 / 240.7 MB, free: 7.16 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009755/0.3881, allocations: 272.7 kB / 241 MB, free: 6.977 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006213/0.3888, allocations: 47.17 kB / 241 MB, free: 6.941 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008755/0.3976, allocations: 3.659 MB / 244.7 MB, free: 3.629 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.3981, allocations: 0.7841 MB / 245.5 MB, free: 2.816 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.3984, allocations: 88.64 kB / 245.6 MB, free: 2.781 MB / 186.7 MB Notification: Performance of SimCode: time 1.372e-06/0.3984, allocations: 4 kB / 245.6 MB, free: 2.777 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.122/3.521, allocations: 6.955 MB / 252.5 MB, free: 11.87 MB / 202.7 MB