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.098/2.098, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.091e-05/3.095e-05, allocations: 8 kB / 255.5 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09339/0.09344, allocations: 44.5 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.416/0.5095, allocations: 74.39 MB / 374.3 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.5098, allocations: 67.16 kB / 374.4 MB, free: 12.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02523/0.5351, allocations: 6.062 MB / 380.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5351, allocations: 0 / 380.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.5352, allocations: 6.375 kB / 380.5 MB, free: 12.02 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.001206/0.5364, allocations: 0.5747 MB / 381.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.5364, allocations: 10.09 kB / 381.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001216/0.5366, allocations: 74.06 kB / 381.1 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.5367, allocations: 42.19 kB / 381.2 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.5371, allocations: 263 kB / 381.4 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.651e-05/0.5372, allocations: 85.27 kB / 381.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.571e-05/0.5373, allocations: 33.31 kB / 381.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007492/0.5381, allocations: 322.4 kB / 381.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.5381, allocations: 0 / 381.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.972e-05/0.5381, allocations: 14.62 kB / 381.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.5382, allocations: 10.88 kB / 381.9 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005694/0.5388, allocations: 206.4 kB / 382.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.5415, allocations: 1.387 MB / 383.5 MB, free: 10.33 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004187/0.5419, allocations: 165.2 kB / 383.6 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002073/0.5421, allocations: 83.89 kB / 383.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.5422, allocations: 2.781 kB / 383.7 MB, free: 10.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003489/0.5426, allocations: 150.6 kB / 383.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.014e-06/0.5426, allocations: 224 / 383.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008564/0.5434, allocations: 227.8 kB / 384.1 MB, free: 10.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.309e-05/0.5435, allocations: 114.2 kB / 384.2 MB, free: 10.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.5439, allocations: 230.3 kB / 384.4 MB, free: 9.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.5439, allocations: 31.92 kB / 384.5 MB, free: 9.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.544, allocations: 204.2 kB / 384.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.5441, allocations: 73.47 kB / 384.7 MB, free: 9.703 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.5442, allocations: 3.312 kB / 384.7 MB, free: 9.703 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.5442, allocations: 335 kB / 385.1 MB, free: 9.391 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.5445, allocations: 73.28 kB / 385.1 MB, free: 9.387 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002666/0.5447, allocations: 156 kB / 385.3 MB, free: 9.281 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002373/0.545, allocations: 85.39 kB / 385.4 MB, free: 9.273 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.545, allocations: 0 / 385.4 MB, free: 9.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009567/0.546, allocations: 315.7 kB / 385.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.546, allocations: 5.5 kB / 385.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.546, allocations: 2.75 kB / 385.7 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.5464, allocations: 62.72 kB / 385.7 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.5468, allocations: 61.66 kB / 385.8 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.5482, allocations: 1.406 MB / 387.2 MB, free: 7.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/0.5487, allocations: 49.11 kB / 387.3 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.5488, allocations: 12.97 kB / 387.3 MB, free: 7.816 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.0001168/0.5489, allocations: 122.6 kB / 387.4 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.057e-05/0.549, allocations: 28.36 kB / 387.4 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.269e-05/0.5491, allocations: 31.22 kB / 387.5 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5491, allocations: 2.531 kB / 387.5 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5491, allocations: 0 / 387.5 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5491, allocations: 4.391 kB / 387.5 MB, free: 7.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.5496, allocations: 340.6 kB / 387.8 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5496, allocations: 1.312 kB / 387.8 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.5499, allocations: 36.55 kB / 387.8 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002781/0.5502, allocations: 54.36 kB / 387.9 MB, free: 7.469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.5503, allocations: 12.2 kB / 387.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.5515, allocations: 1.324 MB / 389.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5515, allocations: 3.938 kB / 389.2 MB, free: 6.191 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009291/0.5524, allocations: 324.6 kB / 389.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.5526, allocations: 127.9 kB / 389.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.787e-05/0.5527, allocations: 4.188 kB / 389.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003098/0.553, allocations: 23.77 kB / 389.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.5531, allocations: 29.25 kB / 389.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/0.5532, allocations: 8.812 kB / 389.7 MB, free: 5.984 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002373/0.5534, allocations: 178.5 kB / 389.9 MB, free: 5.906 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5534, allocations: 4 kB / 389.9 MB, free: 5.902 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005535/0.554, allocations: 95.16 kB / 390 MB, free: 5.887 MB / 314.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.001533/0.5555, allocations: 0.8875 MB / 390.9 MB, free: 21.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007576/0.5563, allocations: 297.8 kB / 391.2 MB, free: 21.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5563, allocations: 0 / 391.2 MB, free: 21.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003889/0.5567, allocations: 192.5 kB / 391.4 MB, free: 21.01 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.5571, allocations: 40.52 kB / 391.4 MB, free: 21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.5592, allocations: 0.5483 MB / 392 MB, free: 20.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.5596, allocations: 0.7815 MB / 392.7 MB, free: 20.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001799/0.5598, allocations: 28.72 kB / 392.8 MB, free: 20.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.5599, allocations: 95.16 kB / 392.9 MB, free: 20 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5599, allocations: 0 / 392.9 MB, free: 20 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.594, allocations: 5.327 MB / 398.2 MB, free: 19.45 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/0.5943, allocations: 193.4 kB / 398.4 MB, free: 19.23 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.595/3.19, allocations: 4 kB / 398.4 MB, free: 19.22 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