Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.082e-05/3.073e-05, allocations: 4.984 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4256/0.5352, allocations: 79.12 MB / 421.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.5355, allocations: 71.77 kB / 421.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02217/0.5577, allocations: 4.77 MB / 426.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.5578, allocations: 0 / 426.6 MB, free: 10.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.39e-05/0.5578, allocations: 11.98 kB / 426.6 MB, free: 10.47 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.00141/0.5592, allocations: 0.5247 MB / 427.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.798e-05/0.5593, allocations: 12.02 kB / 427.1 MB, free: 9.906 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.121e-05/0.5594, allocations: 54.3 kB / 427.2 MB, free: 9.855 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.659e-05/0.5595, allocations: 27.62 kB / 427.2 MB, free: 9.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.5599, allocations: 258.5 kB / 427.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.5599, allocations: 16.25 kB / 427.5 MB, free: 9.543 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.56, allocations: 19.89 kB / 427.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006127/0.5606, allocations: 246.3 kB / 427.7 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.5607, allocations: 0 / 427.7 MB, free: 9.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.175e-05/0.5607, allocations: 7.938 kB / 427.8 MB, free: 9.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-06/0.5607, allocations: 4 kB / 427.8 MB, free: 9.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005262/0.5613, allocations: 177.9 kB / 427.9 MB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.5638, allocations: 1.078 MB / 429 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002318/0.5661, allocations: 338.5 kB / 429.3 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002766/0.5664, allocations: 107.3 kB / 429.4 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.5665, allocations: 0 / 429.4 MB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.5665, allocations: 41.77 kB / 429.5 MB, free: 7.844 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 5.69e-06/0.5665, allocations: 4 kB / 429.5 MB, free: 7.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.004535/0.5711, allocations: 0.5152 MB / 430 MB, free: 7.371 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.5711, allocations: 59.33 kB / 430.1 MB, free: 7.301 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.5714, allocations: 190 kB / 430.2 MB, free: 7.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.5715, allocations: 25.7 kB / 430.3 MB, free: 7.105 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.5716, allocations: 221.6 kB / 430.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.826e-05/0.5717, allocations: 49.95 kB / 430.5 MB, free: 6.867 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.5717, allocations: 0 / 430.5 MB, free: 6.867 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5719, allocations: 324.5 kB / 430.9 MB, free: 6.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.5721, allocations: 59.73 kB / 430.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.5723, allocations: 76.64 kB / 431 MB, free: 6.457 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.5725, allocations: 58.98 kB / 431 MB, free: 6.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5725, allocations: 0 / 431 MB, free: 6.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.004453/0.577, allocations: 0.5363 MB / 431.6 MB, free: 5.941 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.577, allocations: 4 kB / 431.6 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.577, allocations: 4 kB / 431.6 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004877/0.5775, allocations: 135.5 kB / 431.7 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.5779, allocations: 35.92 kB / 431.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008249/0.5861, allocations: 2.196 MB / 434 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004853/0.5866, allocations: 35.86 kB / 434 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.5867, allocations: 11.92 kB / 434 MB, free: 3.648 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.5868, allocations: 112.8 kB / 434.1 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-05/0.5869, allocations: 23.72 kB / 434.1 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.982e-05/0.587, allocations: 25.39 kB / 434.2 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.587, allocations: 0 / 434.2 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.587, allocations: 3.953 kB / 434.2 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.587, allocations: 0 / 434.2 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005326/0.5876, allocations: 321.2 kB / 434.5 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.5876, allocations: 0 / 434.5 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002869/0.5879, allocations: 35.3 kB / 434.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004134/0.5883, allocations: 136.7 kB / 434.6 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.5884, allocations: 7.984 kB / 434.6 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008071/0.5965, allocations: 2.184 MB / 436.8 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.5965, allocations: 8.016 kB / 436.8 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004765/0.6013, allocations: 0.7072 MB / 437.5 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.096e-05/0.6014, allocations: 104.8 kB / 437.7 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.018e-05/0.6014, allocations: 3.25 kB / 437.7 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005254/0.602, allocations: 35.97 kB / 437.7 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.602, allocations: 15.36 kB / 437.7 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.6021, allocations: 8 kB / 437.7 MB, free: 144 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001922/0.6023, allocations: 158 kB / 437.9 MB, free: 12 kB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6023, allocations: 0 / 437.9 MB, free: 12 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006448/0.6029, allocations: 79.39 kB / 437.9 MB, free: 15.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005122/0.6081, allocations: 1.263 MB / 439.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001958/0.6101, allocations: 383 kB / 439.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.6101, allocations: 0 / 439.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001656/0.6117, allocations: 308.3 kB / 439.9 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.6122, allocations: 24.22 kB / 439.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.6137, allocations: 447.4 kB / 440.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003648/0.6141, allocations: 0.7519 MB / 441.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.6143, allocations: 70.84 kB / 441.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.6143, allocations: 0 / 441.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.616/3.23, allocations: 4.992 MB / 446.2 MB, free: 7.93 MB / 362.7 MB