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.727/1.727, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.451e-05, allocations: 4 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2768, allocations: 38.77 MB / 263.9 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.3998, allocations: 69.36 MB / 333.2 MB, free: 4.238 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4001, allocations: 67.95 kB / 333.3 MB, free: 4.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02632/0.4264, allocations: 5.983 MB / 339.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4265, allocations: 0 / 339.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.511e-05/0.4265, allocations: 8.188 kB / 339.3 MB, free: 14.15 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.001326/0.4279, allocations: 0.5849 MB / 339.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.4279, allocations: 16.03 kB / 339.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.428, allocations: 70.53 kB / 339.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.4282, allocations: 43.53 kB / 340 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004293/0.4286, allocations: 267.7 kB / 340.2 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.4287, allocations: 84.17 kB / 340.3 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.382e-05/0.4289, allocations: 32 kB / 340.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000809/0.4297, allocations: 312.3 kB / 340.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.4297, allocations: 7.938 kB / 340.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.364e-05/0.4298, allocations: 16 kB / 340.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.4298, allocations: 8 kB / 340.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006161/0.4304, allocations: 194.2 kB / 340.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003092/0.4335, allocations: 1.418 MB / 342.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005539/0.4341, allocations: 166.6 kB / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.4344, allocations: 72.86 kB / 342.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.349e-05/0.4344, allocations: 7.984 kB / 342.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.4348, allocations: 143.9 kB / 342.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 2.845e-06/0.4348, allocations: 0 / 342.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.000884/0.4357, allocations: 218.1 kB / 342.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.4358, allocations: 114.8 kB / 343 MB, free: 10.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.4362, allocations: 231.2 kB / 343.2 MB, free: 9.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.4363, allocations: 29.7 kB / 343.3 MB, free: 9.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.4365, allocations: 199.7 kB / 343.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.4366, allocations: 67.08 kB / 343.5 MB, free: 9.574 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.4366, allocations: 8 kB / 343.5 MB, free: 9.566 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.4368, allocations: 334.8 kB / 343.9 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.437, allocations: 67.94 kB / 343.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.4373, allocations: 150.3 kB / 344.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002448/0.4375, allocations: 72.02 kB / 344.1 MB, free: 8.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.4376, allocations: 3.938 kB / 344.1 MB, free: 8.906 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000756/0.4383, allocations: 278.1 kB / 344.4 MB, free: 8.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4384, allocations: 4 kB / 344.4 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.4384, allocations: 4 kB / 344.4 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003982/0.4388, allocations: 52.81 kB / 344.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.4394, allocations: 88.05 kB / 344.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.4412, allocations: 1.401 MB / 346 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004618/0.4417, allocations: 51.77 kB / 346 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.801e-05/0.4417, allocations: 12 kB / 346 MB, free: 6.879 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.000141/0.4419, allocations: 121.6 kB / 346.1 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.666e-05/0.4419, allocations: 23.72 kB / 346.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.114e-05/0.442, allocations: 33.91 kB / 346.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.442, allocations: 0 / 346.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.442, allocations: 0 / 346.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.4421, allocations: 3.984 kB / 346.2 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005249/0.4426, allocations: 345.2 kB / 346.5 MB, free: 6.305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.4426, allocations: 0 / 346.5 MB, free: 6.305 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.4431, allocations: 67.89 kB / 346.6 MB, free: 6.238 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000291/0.4434, allocations: 52.81 kB / 346.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.4435, allocations: 11.95 kB / 346.7 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001565/0.445, allocations: 1.319 MB / 348 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4451, allocations: 4.031 kB / 348 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009914/0.4461, allocations: 317.5 kB / 348.3 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.4462, allocations: 120.7 kB / 348.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/0.4463, allocations: 7.984 kB / 348.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003364/0.4467, allocations: 27.92 kB / 348.5 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.4468, allocations: 36 kB / 348.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.4469, allocations: 8 kB / 348.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002638/0.4471, allocations: 179.1 kB / 348.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4471, allocations: 0 / 348.7 MB, free: 3.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005319/0.4477, allocations: 91.69 kB / 348.8 MB, free: 3.906 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.001382/0.4491, allocations: 0.8632 MB / 349.6 MB, free: 3.008 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007992/0.4499, allocations: 282.7 kB / 349.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4499, allocations: 0.625 kB / 349.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.4503, allocations: 190.6 kB / 350.1 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.4508, allocations: 44.84 kB / 350.1 MB, free: 2.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.4532, allocations: 0.5515 MB / 350.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.4537, allocations: 0.7758 MB / 351.5 MB, free: 1.098 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002058/0.4539, allocations: 30.05 kB / 351.5 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000191/0.4541, allocations: 91.41 kB / 351.6 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of SimCode: time 1.372e-06/0.4541, allocations: 0 / 351.6 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03766/0.4918, allocations: 5.348 MB / 356.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/0.4922, allocations: 193.1 kB / 357.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/2.845, allocations: 0 / 357.1 MB, free: 11.47 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