Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.683e-05, allocations: 9.688 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1095, allocations: 50.4 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5425, allocations: 80.57 MB / 423.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.5428, allocations: 70.45 kB / 423.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02671/0.5695, allocations: 6.288 MB / 429.6 MB, free: 8.215 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5696, allocations: 4 kB / 429.6 MB, free: 8.211 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.5696, allocations: 8 kB / 429.6 MB, free: 8.203 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00137/0.571, allocations: 0.5845 MB / 430.2 MB, free: 7.594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.5711, allocations: 8.031 kB / 430.2 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.5712, allocations: 77.19 kB / 430.2 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.5713, allocations: 39.53 kB / 430.3 MB, free: 7.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004688/0.5718, allocations: 268.4 kB / 430.5 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.5719, allocations: 75.41 kB / 430.6 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.572, allocations: 38.52 kB / 430.7 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007716/0.5728, allocations: 322.2 kB / 431 MB, free: 6.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.5728, allocations: 0 / 431 MB, free: 6.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.5729, allocations: 14.38 kB / 431 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/0.5729, allocations: 11.98 kB / 431 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005666/0.5735, allocations: 198.9 kB / 431.2 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002975/0.5765, allocations: 1.387 MB / 432.6 MB, free: 5.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000435/0.5769, allocations: 163.6 kB / 432.7 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.5772, allocations: 78.39 kB / 432.8 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.5772, allocations: 3.953 kB / 432.8 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003707/0.5776, allocations: 152.2 kB / 433 MB, free: 5.117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.545e-06/0.5776, allocations: 0 / 433 MB, free: 5.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008865/0.5785, allocations: 221.1 kB / 433.2 MB, free: 4.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/0.5786, allocations: 114.5 kB / 433.3 MB, free: 4.801 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003685/0.579, allocations: 228.7 kB / 433.5 MB, free: 4.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.5791, allocations: 28.89 kB / 433.5 MB, free: 4.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.5793, allocations: 258.7 kB / 433.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.356e-05/0.5794, allocations: 71.73 kB / 433.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/0.5794, allocations: 6.188 kB / 433.9 MB, free: 4.297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5796, allocations: 321.8 kB / 434.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/0.5798, allocations: 67.19 kB / 434.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.5801, allocations: 155.3 kB / 434.4 MB, free: 3.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.5804, allocations: 87 kB / 434.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.5804, allocations: 0 / 434.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009617/0.5814, allocations: 294.8 kB / 434.8 MB, free: 3.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.5814, allocations: 11.94 kB / 434.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.5814, allocations: 0 / 434.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.5818, allocations: 52.25 kB / 434.8 MB, free: 3.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.5823, allocations: 71.94 kB / 434.9 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.5841, allocations: 1.404 MB / 436.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/0.5846, allocations: 43.23 kB / 436.4 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.5847, allocations: 15.58 kB / 436.4 MB, free: 1.824 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.5849, allocations: 126.9 kB / 436.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.5849, allocations: 27.62 kB / 436.5 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.974e-05/0.585, allocations: 37.38 kB / 436.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.585, allocations: 0 / 436.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.585, allocations: 4 kB / 436.6 MB, free: 1.652 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.5851, allocations: 3.984 kB / 436.6 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/0.5856, allocations: 332.1 kB / 436.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5856, allocations: 0 / 436.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003675/0.586, allocations: 39.97 kB / 436.9 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002979/0.5863, allocations: 58.12 kB / 437 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.5863, allocations: 7.812 kB / 437 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.588, allocations: 1.319 MB / 438.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.588, allocations: 0 / 438.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.589, allocations: 338.4 kB / 438.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.5892, allocations: 111.9 kB / 438.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.077e-05/0.5893, allocations: 7.812 kB / 438.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/0.5896, allocations: 27.98 kB / 438.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.5898, allocations: 27.27 kB / 438.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.5898, allocations: 7.984 kB / 438.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002573/0.5901, allocations: 180.4 kB / 439 MB, free: 15.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5901, allocations: 4 kB / 439 MB, free: 15.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000585/0.5907, allocations: 90.25 kB / 439.1 MB, free: 15.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/0.5921, allocations: 0.8727 MB / 440 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007565/0.5929, allocations: 282.1 kB / 440.2 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5929, allocations: 8 kB / 440.2 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.5933, allocations: 185.9 kB / 440.4 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.5937, allocations: 35.66 kB / 440.5 MB, free: 13.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.596, allocations: 0.5821 MB / 441 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.5965, allocations: 0.776 MB / 441.8 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.5967, allocations: 104.2 kB / 441.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of SimCode: time 9.31e-07/0.5967, allocations: 0 / 441.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.547/3.144, allocations: 5.796 MB / 447.7 MB, free: 6.758 MB / 362.7 MB