Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.953e-05/3.966e-05, allocations: 8 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09529, allocations: 44.49 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4317/0.527, allocations: 74.39 MB / 374.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.5274, allocations: 71.7 kB / 374.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03018/0.5576, allocations: 6.062 MB / 380.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5577, allocations: 0 / 380.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.546e-05/0.5577, allocations: 6.656 kB / 380.5 MB, free: 11.64 MB / 314.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.001996/0.5597, allocations: 0.5822 MB / 381.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.061e-05/0.5598, allocations: 8.625 kB / 381.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001978/0.56, allocations: 78.81 kB / 381.2 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.5603, allocations: 39.8 kB / 381.2 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006388/0.5609, allocations: 265.1 kB / 381.5 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.5611, allocations: 79.2 kB / 381.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.5612, allocations: 32.38 kB / 381.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.5624, allocations: 320.7 kB / 381.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.5625, allocations: 0 / 381.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.569e-05/0.5626, allocations: 17.38 kB / 381.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.5626, allocations: 7.969 kB / 381.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009127/0.5635, allocations: 203.6 kB / 382.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004176/0.5678, allocations: 1.385 MB / 383.5 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005986/0.5684, allocations: 151.4 kB / 383.6 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.5687, allocations: 86.88 kB / 383.7 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.5688, allocations: 5.219 kB / 383.7 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004777/0.5693, allocations: 149.7 kB / 383.9 MB, free: 9.832 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.968e-06/0.5693, allocations: 1.531 kB / 383.9 MB, free: 9.832 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001231/0.5706, allocations: 227.1 kB / 384.1 MB, free: 9.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.5707, allocations: 112.2 kB / 384.2 MB, free: 9.641 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005089/0.5712, allocations: 228.2 kB / 384.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.708e-05/0.5713, allocations: 31.89 kB / 384.5 MB, free: 9.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.5715, allocations: 265.6 kB / 384.7 MB, free: 9.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.5716, allocations: 66.89 kB / 384.8 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.923e-05/0.5717, allocations: 5.312 kB / 384.8 MB, free: 9.262 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.84e-05/0.5718, allocations: 330.8 kB / 385.1 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.5721, allocations: 65.12 kB / 385.2 MB, free: 8.945 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.5724, allocations: 147.1 kB / 385.3 MB, free: 8.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.5728, allocations: 86.27 kB / 385.4 MB, free: 8.836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.5728, allocations: 1.375 kB / 385.4 MB, free: 8.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001353/0.5742, allocations: 290.4 kB / 385.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.5743, allocations: 5.5 kB / 385.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.5743, allocations: 2.75 kB / 385.7 MB, free: 8.777 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.5748, allocations: 65.66 kB / 385.8 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006569/0.5755, allocations: 63.64 kB / 385.8 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.5776, allocations: 1.399 MB / 387.2 MB, free: 7.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007428/0.5784, allocations: 48.28 kB / 387.3 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/0.5785, allocations: 11.06 kB / 387.3 MB, free: 7.395 MB / 314.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.0002035/0.5787, allocations: 132.5 kB / 387.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.5788, allocations: 33.11 kB / 387.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.5789, allocations: 27.92 kB / 387.5 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.579, allocations: 7.094 kB / 387.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.579, allocations: 3.938 kB / 387.5 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.579, allocations: 3.641 kB / 387.5 MB, free: 7.238 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006712/0.5797, allocations: 333 kB / 387.8 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.5797, allocations: 0 / 387.8 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005397/0.5803, allocations: 39.81 kB / 387.8 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004203/0.5807, allocations: 61.55 kB / 387.9 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.134e-05/0.5808, allocations: 6.75 kB / 387.9 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.5829, allocations: 1.316 MB / 389.2 MB, free: 21.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.583, allocations: 7.938 kB / 389.2 MB, free: 21.76 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.5844, allocations: 333.2 kB / 389.6 MB, free: 21.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.5848, allocations: 119.5 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.427e-05/0.5849, allocations: 5.625 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004471/0.5854, allocations: 27.19 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.5856, allocations: 31.48 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.499e-05/0.5856, allocations: 5.312 kB / 389.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000397/0.586, allocations: 184.9 kB / 389.9 MB, free: 21.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5861, allocations: 1.25 kB / 389.9 MB, free: 21.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009739/0.587, allocations: 92.25 kB / 390 MB, free: 21.45 MB / 330.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.002015/0.5891, allocations: 0.8836 MB / 390.9 MB, free: 20.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001051/0.5902, allocations: 279.6 kB / 391.2 MB, free: 20.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5902, allocations: 0 / 391.2 MB, free: 20.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005588/0.5908, allocations: 189.9 kB / 391.4 MB, free: 20.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005563/0.5914, allocations: 32 kB / 391.4 MB, free: 20.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003479/0.5949, allocations: 0.5856 MB / 392 MB, free: 20.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005805/0.5955, allocations: 0.7802 MB / 392.8 MB, free: 19.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.5959, allocations: 99.16 kB / 392.8 MB, free: 19.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5959, allocations: 0 / 392.8 MB, free: 19.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.482/3.078, allocations: 5.786 MB / 398.6 MB, free: 19.19 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat