Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 5.194e-05/5.202e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09546, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4252/0.5207, allocations: 74.39 MB / 374.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.5211, allocations: 69.58 kB / 374.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02675/0.5478, allocations: 6.054 MB / 380.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.5479, allocations: 3.938 kB / 380.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.548, allocations: 8.469 kB / 380.5 MB, free: 11.62 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.001316/0.5493, allocations: 0.5832 MB / 381.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.5493, allocations: 9.5 kB / 381.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.5495, allocations: 69.12 kB / 381.2 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.5496, allocations: 39.67 kB / 381.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.55, allocations: 266.7 kB / 381.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.652e-05/0.5501, allocations: 79.88 kB / 381.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.5502, allocations: 28.69 kB / 381.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008126/0.5511, allocations: 323.3 kB / 381.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.5511, allocations: 1.25 kB / 381.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.5512, allocations: 15.83 kB / 381.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.5512, allocations: 7.656 kB / 381.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006124/0.5518, allocations: 206.4 kB / 382.1 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002922/0.5548, allocations: 1.384 MB / 383.5 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004344/0.5553, allocations: 158.5 kB / 383.7 MB, free: 9.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002058/0.5555, allocations: 83.25 kB / 383.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.5555, allocations: 5.859 kB / 383.7 MB, free: 9.898 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.5559, allocations: 152.6 kB / 383.9 MB, free: 9.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 4.498e-06/0.5559, allocations: 4 kB / 383.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008837/0.5568, allocations: 231.1 kB / 384.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.5569, allocations: 105.6 kB / 384.2 MB, free: 9.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003502/0.5572, allocations: 232.6 kB / 384.5 MB, free: 9.531 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.5573, allocations: 29.95 kB / 384.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.5574, allocations: 205.2 kB / 384.7 MB, free: 9.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.984e-05/0.5575, allocations: 71.92 kB / 384.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/0.5576, allocations: 6.375 kB / 384.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.616e-05/0.5577, allocations: 339.9 kB / 385.1 MB, free: 9 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.5579, allocations: 66.88 kB / 385.2 MB, free: 9 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.5582, allocations: 151.5 kB / 385.3 MB, free: 8.898 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.5584, allocations: 86.47 kB / 385.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5585, allocations: 3.781 kB / 385.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001004/0.5595, allocations: 304.2 kB / 385.7 MB, free: 8.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.5595, allocations: 10.16 kB / 385.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5595, allocations: 2.531 kB / 385.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003601/0.5599, allocations: 57.05 kB / 385.8 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00045/0.5604, allocations: 68.58 kB / 385.8 MB, free: 8.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.5618, allocations: 1.403 MB / 387.2 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.5624, allocations: 43.42 kB / 387.3 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.5625, allocations: 13.19 kB / 387.3 MB, free: 7.438 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.0001263/0.5626, allocations: 136.1 kB / 387.4 MB, free: 7.316 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.161e-05/0.5627, allocations: 34.81 kB / 387.4 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.036e-05/0.5628, allocations: 29.92 kB / 387.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.5628, allocations: 1.375 kB / 387.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5628, allocations: 1.25 kB / 387.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.5628, allocations: 0 / 387.5 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004597/0.5633, allocations: 337.7 kB / 387.8 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.5633, allocations: 0 / 387.8 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.5637, allocations: 38.72 kB / 387.8 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003002/0.564, allocations: 55.11 kB / 387.9 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.564, allocations: 8.156 kB / 387.9 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001557/0.5656, allocations: 1.325 MB / 389.2 MB, free: 21.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.5656, allocations: 1.312 kB / 389.2 MB, free: 21.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.5668, allocations: 333.8 kB / 389.6 MB, free: 21.71 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.567, allocations: 121.8 kB / 389.7 MB, free: 21.6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.524e-05/0.5671, allocations: 4.125 kB / 389.7 MB, free: 21.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003263/0.5674, allocations: 21.19 kB / 389.7 MB, free: 21.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.5676, allocations: 36.06 kB / 389.7 MB, free: 21.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.439e-05/0.5676, allocations: 11.73 kB / 389.8 MB, free: 21.59 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002687/0.5679, allocations: 181.2 kB / 389.9 MB, free: 21.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5679, allocations: 0 / 389.9 MB, free: 21.51 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006091/0.5685, allocations: 93.31 kB / 390 MB, free: 21.5 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.001362/0.5699, allocations: 0.8816 MB / 390.9 MB, free: 20.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007782/0.5707, allocations: 282.1 kB / 391.2 MB, free: 20.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.5707, allocations: 0.625 kB / 391.2 MB, free: 20.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.5711, allocations: 188.8 kB / 391.4 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000372/0.5715, allocations: 40.31 kB / 391.4 MB, free: 20.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.5737, allocations: 0.5466 MB / 391.9 MB, free: 20.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.5741, allocations: 0.7838 MB / 392.7 MB, free: 19.65 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.5743, allocations: 25.81 kB / 392.8 MB, free: 19.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.5745, allocations: 97.98 kB / 392.9 MB, free: 19.63 MB / 330.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5745, allocations: 0 / 392.9 MB, free: 19.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.6088, allocations: 5.305 MB / 398.2 MB, free: 19.09 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/0.6091, allocations: 188.3 kB / 398.3 MB, free: 18.86 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.319, allocations: 0 / 398.3 MB, free: 18.86 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat