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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.124/1.124, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.532e-05/2.533e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06184/0.06191, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.2829, allocations: 34.15 MB / 207.5 MB, free: 4.645 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.2832, allocations: 62.09 kB / 207.6 MB, free: 4.645 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02231/0.3055, allocations: 4.981 MB / 212.6 MB, free: 4.016 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3056, allocations: 0 / 212.6 MB, free: 4.016 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.3056, allocations: 6.344 kB / 212.6 MB, free: 4.016 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.001518/0.3072, allocations: 0.5868 MB / 213.2 MB, free: 3.59 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.3072, allocations: 10.62 kB / 213.2 MB, free: 3.59 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.3074, allocations: 32 kB / 213.2 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.3077, allocations: 268.1 kB / 213.5 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.643e-05/0.3078, allocations: 13.06 kB / 213.5 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.318e-05/0.3079, allocations: 19.17 kB / 213.5 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000884/0.3088, allocations: 358.4 kB / 213.9 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007196/0.3095, allocations: 325.8 kB / 214.2 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.3096, allocations: 1.828 kB / 214.2 MB, free: 3.305 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.188e-05/0.3096, allocations: 3.953 kB / 214.2 MB, free: 3.301 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.3097, allocations: 7.75 kB / 214.2 MB, free: 3.301 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00278/0.3124, allocations: 1.052 MB / 215.2 MB, free: 2.859 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.313, allocations: 247.8 kB / 215.5 MB, free: 2.828 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003491/0.3133, allocations: 174.4 kB / 215.7 MB, free: 2.816 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.478e-05/0.3134, allocations: 6.703 kB / 215.7 MB, free: 2.816 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.3135, allocations: 37.34 kB / 215.7 MB, free: 2.777 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 3.577e-06/0.3135, allocations: 0 / 215.7 MB, free: 2.777 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.004179/0.3177, allocations: 1.393 MB / 217.1 MB, free: 2.129 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.854e-05/0.3177, allocations: 59.28 kB / 217.2 MB, free: 2.062 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002289/0.318, allocations: 183.9 kB / 217.3 MB, free: 1.953 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.586e-05/0.318, allocations: 37.16 kB / 217.4 MB, free: 1.918 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3182, allocations: 206.5 kB / 217.6 MB, free: 1.738 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.3183, allocations: 150.5 kB / 217.7 MB, free: 1.633 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/0.3184, allocations: 0 / 217.7 MB, free: 1.633 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.18e-05/0.3184, allocations: 326.2 kB / 218 MB, free: 1.316 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/0.3189, allocations: 185.6 kB / 218.2 MB, free: 1.305 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/0.3193, allocations: 255 kB / 218.5 MB, free: 1.223 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000497/0.3198, allocations: 154.4 kB / 218.6 MB, free: 1.195 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3198, allocations: 0 / 218.6 MB, free: 1.195 MB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001908/0.3218, allocations: 0.6052 MB / 219.2 MB, free: 1.047 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.3218, allocations: 7.656 kB / 219.2 MB, free: 1.047 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3218, allocations: 11.89 kB / 219.2 MB, free: 1.035 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0012/0.323, allocations: 0.5121 MB / 219.8 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004864/0.3235, allocations: 71.28 kB / 219.8 MB, free: 0.8789 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.3252, allocations: 1.415 MB / 221.2 MB, free: 15.79 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/0.3261, allocations: 93.86 kB / 221.3 MB, free: 15.75 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.881e-05/0.3262, allocations: 19.12 kB / 221.3 MB, free: 15.75 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.000272/0.3265, allocations: 120.6 kB / 221.5 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001849/0.3283, allocations: 0.5259 MB / 222 MB, free: 15.49 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.3284, allocations: 27.2 kB / 222 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001499/0.3286, allocations: 46.08 kB / 222.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3286, allocations: 3.875 kB / 222.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.3286, allocations: 0 / 222.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.3287, allocations: 3.984 kB / 222.1 MB, free: 15.46 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/0.3328, allocations: 1.246 MB / 223.3 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.3329, allocations: 8 kB / 223.3 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.3334, allocations: 58.41 kB / 223.4 MB, free: 14.85 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.3346, allocations: 476.3 kB / 223.8 MB, free: 14.72 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.944e-05/0.3347, allocations: 19.05 kB / 223.9 MB, free: 14.71 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00175/0.3364, allocations: 1.365 MB / 225.2 MB, free: 13.61 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.3365, allocations: 0 / 225.2 MB, free: 13.61 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.3389, allocations: 0.9246 MB / 226.2 MB, free: 13.21 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/0.3392, allocations: 151.2 kB / 226.3 MB, free: 13.09 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3394, allocations: 11.28 kB / 226.3 MB, free: 13.08 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005156/0.3399, allocations: 46.8 kB / 226.4 MB, free: 13.07 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.3402, allocations: 108.3 kB / 226.5 MB, free: 13 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/0.3403, allocations: 25.41 kB / 226.5 MB, free: 13 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.3405, allocations: 153.4 kB / 226.6 MB, free: 12.9 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3405, allocations: 0 / 226.6 MB, free: 12.9 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006375/0.3412, allocations: 84.12 kB / 226.7 MB, free: 12.9 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) * 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.002907/0.3441, allocations: 1.801 MB / 228.5 MB, free: 11.65 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.3453, allocations: 447 kB / 229 MB, free: 11.61 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3453, allocations: 0 / 229 MB, free: 11.61 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006693/0.346, allocations: 250 kB / 229.2 MB, free: 11.58 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006249/0.3467, allocations: 42.22 kB / 229.2 MB, free: 11.57 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003783/0.3505, allocations: 0.919 MB / 230.2 MB, free: 10.99 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.351, allocations: 0.7847 MB / 230.9 MB, free: 10.25 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.3512, allocations: 89.11 kB / 231 MB, free: 10.23 MB / 186.7 MB Notification: Performance of SimCode: time 1.263e-06/0.3512, allocations: 0 / 231 MB, free: 10.23 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.042/3.394, allocations: 6.963 MB / 238 MB, free: 6.195 MB / 186.7 MB