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.063/1.063, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.811e-05, allocations: 4 kB / 151.5 MB, free: 15.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1901, allocations: 25.16 MB / 176.6 MB, free: 24 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06797/0.2582, allocations: 34.84 MB / 211.5 MB, free: 14.63 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.2584, allocations: 59.97 kB / 211.5 MB, free: 14.57 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02423/0.2827, allocations: 5.022 MB / 216.6 MB, free: 9.531 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2827, allocations: 0 / 216.6 MB, free: 9.531 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.2827, allocations: 8 kB / 216.6 MB, free: 9.523 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.001679/0.2844, allocations: 0.5841 MB / 217.1 MB, free: 8.895 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.2845, allocations: 12.03 kB / 217.2 MB, free: 8.883 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.2846, allocations: 66.53 kB / 217.2 MB, free: 8.809 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.2848, allocations: 31.62 kB / 217.3 MB, free: 8.777 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.2853, allocations: 270.2 kB / 217.5 MB, free: 8.473 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.503e-05/0.2853, allocations: 20.56 kB / 217.5 MB, free: 8.453 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.2854, allocations: 24 kB / 217.6 MB, free: 8.43 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009721/0.2864, allocations: 355.6 kB / 217.9 MB, free: 8.078 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.2865, allocations: 4 kB / 217.9 MB, free: 8.074 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.421e-05/0.2865, allocations: 11.95 kB / 217.9 MB, free: 8.062 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.2866, allocations: 12 kB / 217.9 MB, free: 8.051 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.2876, allocations: 376.9 kB / 218.3 MB, free: 7.684 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.2909, allocations: 1.107 MB / 219.4 MB, free: 6.5 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.2916, allocations: 258.8 kB / 219.7 MB, free: 6.234 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004688/0.2921, allocations: 180.8 kB / 219.8 MB, free: 6.051 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.468e-05/0.2922, allocations: 7.938 kB / 219.9 MB, free: 6.043 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.2922, allocations: 38.56 kB / 219.9 MB, free: 5.996 MB / 186.7 MB Notification: Performance of pre-optimization done (n=37): time 2.805e-06/0.2922, allocations: 0 / 219.9 MB, free: 5.996 MB / 186.7 MB Notification: Performance of matching and sorting (n=43): time 0.00441/0.2967, allocations: 1.463 MB / 221.4 MB, free: 4.43 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2968, allocations: 55.41 kB / 221.4 MB, free: 4.363 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.2971, allocations: 196.9 kB / 221.6 MB, free: 4.168 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.063e-05/0.2972, allocations: 41.69 kB / 221.6 MB, free: 4.121 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.2973, allocations: 211.2 kB / 221.8 MB, free: 3.91 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.2975, allocations: 146.1 kB / 222 MB, free: 3.766 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-05/0.2976, allocations: 12 kB / 222 MB, free: 3.754 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2977, allocations: 330.8 kB / 222.3 MB, free: 3.422 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005269/0.2983, allocations: 193.1 kB / 222.5 MB, free: 3.234 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.2989, allocations: 263.7 kB / 222.8 MB, free: 2.949 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004353/0.2993, allocations: 165.5 kB / 222.9 MB, free: 2.785 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2993, allocations: 0 / 222.9 MB, free: 2.785 MB / 186.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002139/0.3015, allocations: 0.6381 MB / 223.6 MB, free: 2.137 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.3015, allocations: 11.98 kB / 223.6 MB, free: 2.125 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.3015, allocations: 0 / 223.6 MB, free: 2.125 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.3029, allocations: 0.5052 MB / 224.1 MB, free: 1.613 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.3035, allocations: 79.83 kB / 224.2 MB, free: 1.535 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/0.3052, allocations: 1.37 MB / 225.5 MB, free: 116 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008517/0.3061, allocations: 95.97 kB / 225.6 MB, free: 20 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.3062, allocations: 24.03 kB / 225.7 MB, free: 15.99 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.0002048/0.3064, allocations: 141.8 kB / 225.8 MB, free: 15.85 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.3066, allocations: 23.72 kB / 225.8 MB, free: 15.82 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.3067, allocations: 51.03 kB / 225.9 MB, free: 15.78 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.3067, allocations: 4 kB / 225.9 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3068, allocations: 8.016 kB / 225.9 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3068, allocations: 0 / 225.9 MB, free: 15.77 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00439/0.3112, allocations: 1.328 MB / 227.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.585e-06/0.3112, allocations: 0 / 227.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005505/0.3118, allocations: 64.06 kB / 227.3 MB, free: 14.29 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00129/0.3131, allocations: 481.3 kB / 227.7 MB, free: 13.82 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.215e-05/0.3132, allocations: 19.97 kB / 227.8 MB, free: 13.8 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.3149, allocations: 1.323 MB / 229.1 MB, free: 12.42 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3149, allocations: 4.062 kB / 229.1 MB, free: 12.42 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002728/0.3176, allocations: 0.9526 MB / 230 MB, free: 11.4 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.318, allocations: 156.7 kB / 230.2 MB, free: 11.23 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.3181, allocations: 16 kB / 230.2 MB, free: 11.21 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000567/0.3187, allocations: 47.95 kB / 230.2 MB, free: 11.16 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/0.319, allocations: 99.78 kB / 230.3 MB, free: 11.07 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.3191, allocations: 27.98 kB / 230.4 MB, free: 11.04 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3193, allocations: 161.4 kB / 230.5 MB, free: 10.88 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3193, allocations: 0 / 230.5 MB, free: 10.88 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006575/0.32, allocations: 103.9 kB / 230.6 MB, free: 10.78 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.00313/0.3232, allocations: 1.844 MB / 232.5 MB, free: 8.867 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.3246, allocations: 458 kB / 232.9 MB, free: 8.422 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3246, allocations: 3.938 kB / 232.9 MB, free: 8.418 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008319/0.3255, allocations: 259.8 kB / 233.2 MB, free: 8.164 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005603/0.326, allocations: 44.94 kB / 233.2 MB, free: 8.121 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.3299, allocations: 0.9582 MB / 234.2 MB, free: 7.109 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.3303, allocations: 0.7842 MB / 235 MB, free: 6.301 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.3305, allocations: 87.41 kB / 235.1 MB, free: 6.215 MB / 202.7 MB Notification: Performance of SimCode: time 3.256e-06/0.3306, allocations: 0 / 235.1 MB, free: 6.215 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.935/3.266, allocations: 6.991 MB / 242 MB, free: 15.21 MB / 218.7 MB