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.889/1.889, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.639e-05, allocations: 4 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2634, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.3923, allocations: 69.35 MB / 333.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.3926, allocations: 67.97 kB / 333.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02673/0.4194, allocations: 5.994 MB / 339.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.2e-06/0.4194, allocations: 3.984 kB / 339.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.511e-05/0.4195, allocations: 8 kB / 339.3 MB, free: 14.21 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.001427/0.4209, allocations: 0.589 MB / 339.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.421, allocations: 8.031 kB / 339.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.4211, allocations: 70.53 kB / 339.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.4212, allocations: 39.53 kB / 340 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.4217, allocations: 271.7 kB / 340.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.4218, allocations: 80.19 kB / 340.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.4219, allocations: 32 kB / 340.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008294/0.4228, allocations: 316.3 kB / 340.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.4228, allocations: 0 / 340.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.147e-05/0.4229, allocations: 12 kB / 340.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.4229, allocations: 8 kB / 340.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006245/0.4235, allocations: 202.2 kB / 340.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.4268, allocations: 1.406 MB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005745/0.4275, allocations: 174.6 kB / 342.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.4277, allocations: 76.84 kB / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.4277, allocations: 0 / 342.5 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.4281, allocations: 144.1 kB / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 1.954e-06/0.4281, allocations: 0 / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008818/0.429, allocations: 218.6 kB / 342.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.679e-05/0.4291, allocations: 114.8 kB / 343 MB, free: 10.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.4295, allocations: 227.2 kB / 343.2 MB, free: 9.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.89e-05/0.4296, allocations: 29.7 kB / 343.2 MB, free: 9.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.4298, allocations: 262.1 kB / 343.5 MB, free: 9.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.592e-05/0.4299, allocations: 67.09 kB / 343.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.4299, allocations: 8 kB / 343.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4301, allocations: 322.8 kB / 343.9 MB, free: 9.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002063/0.4303, allocations: 64 kB / 343.9 MB, free: 9.207 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.4306, allocations: 154.2 kB / 344.1 MB, free: 9.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.4309, allocations: 68.02 kB / 344.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4309, allocations: 0 / 344.2 MB, free: 8.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007308/0.4316, allocations: 262.1 kB / 344.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.4317, allocations: 8 kB / 344.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.4317, allocations: 0 / 344.4 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004492/0.4321, allocations: 61.09 kB / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005541/0.4327, allocations: 79.89 kB / 344.6 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/0.4346, allocations: 1.409 MB / 346 MB, free: 6.996 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.4352, allocations: 47.67 kB / 346 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.4352, allocations: 8 kB / 346 MB, free: 6.941 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.0001494/0.4354, allocations: 120.9 kB / 346.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.4355, allocations: 31.75 kB / 346.2 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.279e-05/0.4356, allocations: 37.91 kB / 346.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4356, allocations: 0 / 346.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.4356, allocations: 0 / 346.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4356, allocations: 11.92 kB / 346.2 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005345/0.4361, allocations: 337.3 kB / 346.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4362, allocations: 0 / 346.5 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004837/0.4367, allocations: 63.89 kB / 346.6 MB, free: 6.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.437, allocations: 56.81 kB / 346.7 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.437, allocations: 3.953 kB / 346.7 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001644/0.4387, allocations: 1.323 MB / 348 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4387, allocations: 160 / 348 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.4398, allocations: 321.4 kB / 348.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.44, allocations: 112.8 kB / 348.4 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.522e-05/0.4401, allocations: 11.98 kB / 348.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.4404, allocations: 28.05 kB / 348.5 MB, free: 4.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.4406, allocations: 35.88 kB / 348.5 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.203e-05/0.4406, allocations: 4 kB / 348.5 MB, free: 4.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002805/0.4409, allocations: 183.1 kB / 348.7 MB, free: 4.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4409, allocations: 0 / 348.7 MB, free: 4.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005561/0.4415, allocations: 91.69 kB / 348.8 MB, free: 3.965 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.001411/0.4429, allocations: 0.8667 MB / 349.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008094/0.4437, allocations: 286.7 kB / 349.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4437, allocations: 0 / 349.9 MB, free: 2.773 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.4442, allocations: 189.2 kB / 350.1 MB, free: 2.578 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.4446, allocations: 44.98 kB / 350.1 MB, free: 2.535 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.4471, allocations: 0.5736 MB / 350.7 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004293/0.4476, allocations: 0.7758 MB / 351.5 MB, free: 1.121 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.4478, allocations: 91.41 kB / 351.6 MB, free: 1.031 MB / 298.7 MB Notification: Performance of SimCode: time 3.316e-06/0.4478, allocations: 0 / 351.6 MB, free: 1.031 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.595/3.042, allocations: 5.768 MB / 357.3 MB, free: 11.26 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