Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.663/1.663, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.556e-05/3.575e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2683, allocations: 38.77 MB / 263.9 MB, free: 9.715 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.3975, allocations: 69.36 MB / 333.2 MB, free: 4.25 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.3979, allocations: 71.95 kB / 333.3 MB, free: 4.18 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03442/0.4323, allocations: 5.995 MB / 339.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4324, allocations: 3.938 kB / 339.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.4324, allocations: 8 kB / 339.3 MB, free: 14.14 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.001559/0.434, allocations: 0.581 MB / 339.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.968e-05/0.4341, allocations: 12.03 kB / 339.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.4342, allocations: 66.53 kB / 340 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.4344, allocations: 39.53 kB / 340 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005315/0.4349, allocations: 271.7 kB / 340.3 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.4351, allocations: 84.19 kB / 340.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.4352, allocations: 28 kB / 340.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008422/0.436, allocations: 318.7 kB / 340.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.436, allocations: 0 / 340.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.4361, allocations: 16 kB / 340.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.4361, allocations: 8 kB / 340.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006146/0.4368, allocations: 193.1 kB / 340.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003308/0.4401, allocations: 1.41 MB / 342.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005428/0.4407, allocations: 162.7 kB / 342.5 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002169/0.4409, allocations: 80.83 kB / 342.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.441, allocations: 0 / 342.6 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000348/0.4413, allocations: 140.1 kB / 342.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.158e-05/0.4413, allocations: 4 kB / 342.7 MB, free: 10.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008503/0.4422, allocations: 222 kB / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.951e-05/0.4423, allocations: 102.8 kB / 343 MB, free: 10.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.4427, allocations: 231.1 kB / 343.2 MB, free: 9.906 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.4428, allocations: 33.7 kB / 343.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000189/0.443, allocations: 207.7 kB / 343.5 MB, free: 9.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.197e-05/0.443, allocations: 67.09 kB / 343.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/0.4431, allocations: 4 kB / 343.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4433, allocations: 338.8 kB / 343.9 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.4435, allocations: 64 kB / 343.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.4438, allocations: 150.2 kB / 344.1 MB, free: 9.004 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.444, allocations: 75.31 kB / 344.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.4441, allocations: 0 / 344.2 MB, free: 8.934 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007196/0.4448, allocations: 270 kB / 344.4 MB, free: 8.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.4448, allocations: 4 kB / 344.4 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.4448, allocations: 4 kB / 344.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004013/0.4453, allocations: 57.09 kB / 344.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005733/0.4458, allocations: 83.89 kB / 344.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.4477, allocations: 1.409 MB / 346 MB, free: 6.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004931/0.4482, allocations: 47.67 kB / 346 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.4482, allocations: 15.98 kB / 346 MB, free: 6.91 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.0001528/0.4484, allocations: 124.6 kB / 346.2 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.856e-05/0.4485, allocations: 27.72 kB / 346.2 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.901e-05/0.4486, allocations: 29.89 kB / 346.2 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4486, allocations: 7.953 kB / 346.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4486, allocations: 3.938 kB / 346.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.4486, allocations: 0 / 346.2 MB, free: 6.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.4491, allocations: 337.3 kB / 346.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4491, allocations: 4 kB / 346.6 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.4496, allocations: 63.91 kB / 346.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003036/0.45, allocations: 48.81 kB / 346.7 MB, free: 6.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.45, allocations: 7.953 kB / 346.7 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/0.4516, allocations: 1.319 MB / 348 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4516, allocations: 4.156 kB / 348 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.4527, allocations: 320.8 kB / 348.3 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.4529, allocations: 112.8 kB / 348.4 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.63e-05/0.453, allocations: 11.95 kB / 348.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003394/0.4533, allocations: 32.05 kB / 348.5 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.4535, allocations: 31.94 kB / 348.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.165e-05/0.4535, allocations: 4 kB / 348.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002678/0.4538, allocations: 187.1 kB / 348.7 MB, free: 4.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4538, allocations: 0 / 348.7 MB, free: 4.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005681/0.4544, allocations: 87.78 kB / 348.8 MB, free: 3.941 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.001437/0.4558, allocations: 0.8669 MB / 349.6 MB, free: 3.043 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007731/0.4566, allocations: 277.8 kB / 349.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4566, allocations: 4 kB / 349.9 MB, free: 2.758 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.4571, allocations: 180.5 kB / 350.1 MB, free: 2.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.4575, allocations: 37.05 kB / 350.1 MB, free: 2.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.46, allocations: 0.5485 MB / 350.7 MB, free: 1.961 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.4605, allocations: 0.7835 MB / 351.5 MB, free: 1.148 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002052/0.4607, allocations: 18.08 kB / 351.5 MB, free: 1.129 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.4609, allocations: 99.39 kB / 351.6 MB, free: 1.035 MB / 298.7 MB Notification: Performance of SimCode: time 1.844e-06/0.4609, allocations: 0 / 351.6 MB, free: 1.035 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03579/0.4967, allocations: 5.32 MB / 356.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/0.4971, allocations: 183.9 kB / 357.1 MB, free: 11.55 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/2.888, allocations: 4.062 kB / 357.1 MB, free: 11.55 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat