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.798/1.798, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.349e-05/3.352e-05, allocations: 8 kB / 219.6 MB, free: 6.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2649, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1228/0.3877, allocations: 68.69 MB / 327 MB, free: 9.094 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.388, allocations: 63.97 kB / 327.1 MB, free: 9.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0264/0.4144, allocations: 5.932 MB / 333 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4145, allocations: 0 / 333 MB, free: 3.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.283e-05/0.4145, allocations: 4 kB / 333 MB, free: 3.062 MB / 282.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.001348/0.4159, allocations: 0.5849 MB / 333.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.416, allocations: 8.031 kB / 333.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.4161, allocations: 39.53 kB / 333.7 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.4165, allocations: 275.9 kB / 333.9 MB, free: 2.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.4167, allocations: 68.17 kB / 334 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.4167, allocations: 20 kB / 334 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005582/0.4173, allocations: 181.5 kB / 334.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006707/0.418, allocations: 270.7 kB / 334.5 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.418, allocations: 0 / 334.5 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.4181, allocations: 0 / 334.5 MB, free: 1.512 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.4181, allocations: 12 kB / 334.5 MB, free: 1.5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.4211, allocations: 1.324 MB / 335.8 MB, free: 92 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.4216, allocations: 167.7 kB / 336 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.4218, allocations: 65.17 kB / 336 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.665e-05/0.4219, allocations: 7.906 kB / 336 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003265/0.4222, allocations: 135.3 kB / 336.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 2.695e-06/0.4222, allocations: 7.938 kB / 336.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008128/0.423, allocations: 201.3 kB / 336.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.4231, allocations: 106.8 kB / 336.5 MB, free: 15.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.4234, allocations: 200.4 kB / 336.7 MB, free: 15.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.4235, allocations: 25.7 kB / 336.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.4237, allocations: 212.1 kB / 336.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.654e-05/0.4238, allocations: 63.09 kB / 337 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.4238, allocations: 0 / 337 MB, free: 14.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.424, allocations: 338.8 kB / 337.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.4241, allocations: 60 kB / 337.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000251/0.4244, allocations: 142.2 kB / 337.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001999/0.4246, allocations: 75.88 kB / 337.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4246, allocations: 0 / 337.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006319/0.4253, allocations: 238.1 kB / 337.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4253, allocations: 11.59 kB / 337.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4253, allocations: 0 / 337.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003537/0.4257, allocations: 61.09 kB / 337.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.4263, allocations: 79.89 kB / 337.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.4279, allocations: 1.376 MB / 339.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004222/0.4284, allocations: 47.69 kB / 339.4 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.4284, allocations: 11.98 kB / 339.4 MB, free: 12.26 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) type: Real 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.0001866/0.4286, allocations: 113 kB / 339.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000663/0.4293, allocations: 202.2 kB / 339.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.091e-05/0.4294, allocations: 23.72 kB / 339.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.645e-05/0.4294, allocations: 21.95 kB / 339.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.4295, allocations: 4 kB / 339.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.4295, allocations: 0 / 339.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.4295, allocations: 3.953 kB / 339.7 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.4299, allocations: 301.8 kB / 340 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.43, allocations: 0 / 340 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000476/0.4304, allocations: 59.89 kB / 340.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002708/0.4307, allocations: 48.83 kB / 340.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.4308, allocations: 3.984 kB / 340.1 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001468/0.4322, allocations: 1.276 MB / 341.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.4323, allocations: 3.938 kB / 341.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.4332, allocations: 302 kB / 341.7 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001666/0.4334, allocations: 116.8 kB / 341.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.4334, allocations: 0 / 341.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/0.4338, allocations: 27.97 kB / 341.9 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/0.4339, allocations: 32.02 kB / 341.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.434, allocations: 11.94 kB / 341.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.4341, allocations: 144.5 kB / 342 MB, free: 9.371 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4342, allocations: 4 kB / 342.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005768/0.4347, allocations: 83.67 kB / 342.1 MB, free: 9.285 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.001283/0.436, allocations: 0.8425 MB / 343 MB, free: 8.414 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006892/0.4368, allocations: 265.6 kB / 343.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4368, allocations: 0 / 343.2 MB, free: 8.145 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003676/0.4372, allocations: 178.3 kB / 343.4 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.4375, allocations: 32.36 kB / 343.4 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002299/0.4398, allocations: 0.5309 MB / 344 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.4402, allocations: 0.7753 MB / 344.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001994/0.4404, allocations: 26.06 kB / 344.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001833/0.4406, allocations: 87.41 kB / 344.9 MB, free: 6.445 MB / 298.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4406, allocations: 0 / 344.9 MB, free: 6.445 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0366/0.4772, allocations: 4.427 MB / 349.3 MB, free: 2.035 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005854/0.4779, allocations: 148.9 kB / 349.4 MB, free: 1.844 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.27/2.748, allocations: 0 / 349.4 MB, free: 1.844 MB / 298.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