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.17/2.17, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.647e-05/3.666e-05, allocations: 4 kB / 249.7 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3517, allocations: 44.48 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1707/0.5225, allocations: 73.74 MB / 368 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.5228, allocations: 75.89 kB / 368 MB, free: 8.039 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0269/0.5498, allocations: 5.991 MB / 374 MB, free: 2.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5498, allocations: 0 / 374 MB, free: 2.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.5498, allocations: 4 kB / 374 MB, free: 2.016 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.001349/0.5512, allocations: 0.5781 MB / 374.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.5513, allocations: 12.03 kB / 374.6 MB, free: 1.375 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.5514, allocations: 39.92 kB / 374.7 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.5519, allocations: 267.4 kB / 374.9 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.683e-05/0.552, allocations: 68.19 kB / 375 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.921e-05/0.5521, allocations: 20 kB / 375 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005683/0.5527, allocations: 189.5 kB / 375.2 MB, free: 0.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006779/0.5533, allocations: 279.1 kB / 375.5 MB, free: 468 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.5534, allocations: 3.938 kB / 375.5 MB, free: 464 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4e-05/0.5534, allocations: 0 / 375.5 MB, free: 464 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.761e-05/0.5535, allocations: 8 kB / 375.5 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002882/0.5563, allocations: 1.317 MB / 376.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.5568, allocations: 150.6 kB / 376.9 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.557, allocations: 68.86 kB / 377 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.557, allocations: 0 / 377 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.5574, allocations: 159.3 kB / 377.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.464e-06/0.5574, allocations: 0 / 377.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008156/0.5582, allocations: 200.8 kB / 377.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/0.5583, allocations: 107.2 kB / 377.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.5587, allocations: 196.5 kB / 377.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.5587, allocations: 29.7 kB / 377.7 MB, free: 14.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.5589, allocations: 212 kB / 377.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.751e-05/0.559, allocations: 63.09 kB / 378 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.762e-05/0.559, allocations: 0 / 378 MB, free: 13.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5592, allocations: 338.8 kB / 378.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.5594, allocations: 60 kB / 378.3 MB, free: 13.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/0.5597, allocations: 146.5 kB / 378.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.5599, allocations: 73.17 kB / 378.6 MB, free: 13.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.56, allocations: 0 / 378.6 MB, free: 13.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009694/0.5609, allocations: 288.8 kB / 378.8 MB, free: 12.86 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.561, allocations: 8 kB / 378.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.561, allocations: 4 kB / 378.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.5614, allocations: 48.83 kB / 378.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.5618, allocations: 63.97 kB / 379 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.5636, allocations: 1.381 MB / 380.3 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.5641, allocations: 39.75 kB / 380.4 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.5642, allocations: 12 kB / 380.4 MB, free: 11.19 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.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: 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.0002143/0.5644, allocations: 120.8 kB / 380.5 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007464/0.5651, allocations: 206.1 kB / 380.7 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.5652, allocations: 35.66 kB / 380.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.49e-05/0.5653, allocations: 17.97 kB / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.5653, allocations: 0 / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.5654, allocations: 4 kB / 380.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.5654, allocations: 7.984 kB / 380.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004796/0.5659, allocations: 289.9 kB / 381.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5659, allocations: 0 / 381.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000375/0.5663, allocations: 43.91 kB / 381.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002937/0.5666, allocations: 48.83 kB / 381.1 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.063e-05/0.5666, allocations: 11.88 kB / 381.2 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/0.5682, allocations: 1.28 MB / 382.4 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.5683, allocations: 3.938 kB / 382.4 MB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.5693, allocations: 313.8 kB / 382.7 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.5696, allocations: 113.1 kB / 382.9 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.717e-05/0.5696, allocations: 7.938 kB / 382.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003006/0.5699, allocations: 19.98 kB / 382.9 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.5701, allocations: 27.95 kB / 382.9 MB, free: 8.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.5701, allocations: 11.98 kB / 382.9 MB, free: 8.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.5704, allocations: 144.5 kB / 383.1 MB, free: 8.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5704, allocations: 4 kB / 383.1 MB, free: 8.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006039/0.571, allocations: 87.69 kB / 383.2 MB, free: 8.207 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.001421/0.5724, allocations: 0.8659 MB / 384 MB, free: 7.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007655/0.5732, allocations: 265.6 kB / 384.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5732, allocations: 0 / 384.3 MB, free: 7.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004152/0.5737, allocations: 193.5 kB / 384.5 MB, free: 6.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.5741, allocations: 16.33 kB / 384.5 MB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.5766, allocations: 0.5387 MB / 385 MB, free: 6.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.5771, allocations: 0.7789 MB / 385.8 MB, free: 5.449 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002237/0.5773, allocations: 26.06 kB / 385.8 MB, free: 5.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.5775, allocations: 91.41 kB / 385.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5776, allocations: 0 / 385.9 MB, free: 5.332 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04763/0.6252, allocations: 4.402 MB / 390.3 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002664/0.6255, allocations: 157.1 kB / 390.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/3.142, allocations: 0 / 390.5 MB, free: 0.75 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