Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.718/1.718, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.697e-05/2.706e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2539, allocations: 38.77 MB / 263.9 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.3935, allocations: 69.36 MB / 333.2 MB, free: 4.305 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.3939, allocations: 67.97 kB / 333.3 MB, free: 4.238 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03378/0.4277, allocations: 5.998 MB / 339.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4277, allocations: 0 / 339.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.4277, allocations: 11.98 kB / 339.3 MB, free: 14.2 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001377/0.4291, allocations: 0.5771 MB / 339.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4292, allocations: 12.03 kB / 339.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.4294, allocations: 70.53 kB / 339.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.4295, allocations: 39.53 kB / 340 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.4299, allocations: 271.7 kB / 340.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.43, allocations: 76.19 kB / 340.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.903e-05/0.4301, allocations: 32 kB / 340.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007924/0.4309, allocations: 314.7 kB / 340.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.431, allocations: 4 kB / 340.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/0.431, allocations: 16 kB / 340.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.4311, allocations: 8 kB / 340.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005898/0.4317, allocations: 193.1 kB / 340.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003232/0.4349, allocations: 1.414 MB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005514/0.4355, allocations: 162.6 kB / 342.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.4357, allocations: 76.84 kB / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.808e-05/0.4357, allocations: 4 kB / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003572/0.4361, allocations: 141.5 kB / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 4.909e-06/0.4361, allocations: 0 / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000862/0.437, allocations: 218 kB / 342.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.15e-05/0.4371, allocations: 114.8 kB / 343 MB, free: 10.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.4375, allocations: 231.1 kB / 343.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.4376, allocations: 29.7 kB / 343.2 MB, free: 9.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.4378, allocations: 262.1 kB / 343.5 MB, free: 9.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.515e-05/0.4379, allocations: 63.09 kB / 343.6 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/0.4379, allocations: 8 kB / 343.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.4381, allocations: 322.8 kB / 343.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.4383, allocations: 64 kB / 344 MB, free: 9.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.4386, allocations: 154.2 kB / 344.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.4388, allocations: 64.02 kB / 344.2 MB, free: 8.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4388, allocations: 4 kB / 344.2 MB, free: 8.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007129/0.4396, allocations: 262.3 kB / 344.4 MB, free: 8.691 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.4396, allocations: 5.719 kB / 344.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.4396, allocations: 4 kB / 344.4 MB, free: 8.684 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.44, allocations: 52.81 kB / 344.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.4406, allocations: 83.98 kB / 344.6 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001848/0.4424, allocations: 1.401 MB / 346 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.443, allocations: 55.73 kB / 346 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.58e-05/0.443, allocations: 16 kB / 346 MB, free: 6.945 MB / 298.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: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001516/0.4432, allocations: 119.3 kB / 346.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.4433, allocations: 27.72 kB / 346.2 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.823e-05/0.4434, allocations: 25.95 kB / 346.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.4434, allocations: 7.953 kB / 346.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.4434, allocations: 4 kB / 346.2 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.4434, allocations: 7.922 kB / 346.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005463/0.444, allocations: 333.3 kB / 346.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.444, allocations: 11.98 kB / 346.6 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005005/0.4445, allocations: 63.89 kB / 346.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003236/0.4448, allocations: 52.81 kB / 346.7 MB, free: 6.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.4449, allocations: 7.953 kB / 346.7 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001656/0.4466, allocations: 1.312 MB / 348 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4466, allocations: 0 / 348 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.4476, allocations: 325.9 kB / 348.3 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.4478, allocations: 112.8 kB / 348.4 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.037e-05/0.4479, allocations: 11.95 kB / 348.4 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/0.4482, allocations: 23.98 kB / 348.5 MB, free: 4.285 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.4484, allocations: 31.94 kB / 348.5 MB, free: 4.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.4484, allocations: 8.062 kB / 348.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002729/0.4487, allocations: 183.1 kB / 348.7 MB, free: 4.066 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4487, allocations: 0 / 348.7 MB, free: 4.066 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00061/0.4493, allocations: 87.78 kB / 348.8 MB, free: 3.98 MB / 298.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: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.001448/0.4508, allocations: 0.8694 MB / 349.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007868/0.4516, allocations: 269.9 kB / 349.9 MB, free: 2.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4516, allocations: 0 / 349.9 MB, free: 2.805 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003959/0.452, allocations: 179 kB / 350.1 MB, free: 2.621 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.4524, allocations: 40.48 kB / 350.1 MB, free: 2.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.4549, allocations: 0.5813 MB / 350.7 MB, free: 1.965 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004501/0.4554, allocations: 0.7796 MB / 351.5 MB, free: 1.156 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.4556, allocations: 91.41 kB / 351.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of SimCode: time 9.82e-07/0.4556, allocations: 0 / 351.6 MB, free: 1.066 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.474/2.93, allocations: 5.761 MB / 357.3 MB, free: 11.31 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat