Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.815e-05/2.837e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3043, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1841/0.4885, allocations: 73.73 MB / 367.9 MB, free: 8.238 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4888, allocations: 63.97 kB / 368 MB, free: 8.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02666/0.5155, allocations: 6.006 MB / 374 MB, free: 2.141 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5155, allocations: 0 / 374 MB, free: 2.141 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.901e-05/0.5156, allocations: 8 kB / 374 MB, free: 2.133 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.001375/0.517, allocations: 0.5741 MB / 374.6 MB, free: 1.508 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.517, allocations: 8.031 kB / 374.6 MB, free: 1.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5171, allocations: 43.92 kB / 374.6 MB, free: 1.457 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.5176, allocations: 267.4 kB / 374.9 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.5177, allocations: 76.17 kB / 375 MB, free: 1.066 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.5178, allocations: 16 kB / 375 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005623/0.5184, allocations: 181.5 kB / 375.2 MB, free: 0.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006951/0.5191, allocations: 279.1 kB / 375.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.5191, allocations: 0 / 375.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.5192, allocations: 0 / 375.4 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.5192, allocations: 8 kB / 375.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/0.5221, allocations: 1.321 MB / 376.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.5226, allocations: 142.6 kB / 376.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.5228, allocations: 80.83 kB / 377 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.5229, allocations: 0 / 377 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.5232, allocations: 143.4 kB / 377.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.164e-06/0.5233, allocations: 3.938 kB / 377.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008852/0.5241, allocations: 212.8 kB / 377.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.199e-05/0.5243, allocations: 110.8 kB / 377.4 MB, free: 14.42 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.5245, allocations: 196.8 kB / 377.6 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.5246, allocations: 25.7 kB / 377.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001947/0.5248, allocations: 270.5 kB / 377.9 MB, free: 13.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.471e-05/0.5249, allocations: 67.02 kB / 378 MB, free: 13.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/0.5249, allocations: 0 / 378 MB, free: 13.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5251, allocations: 326.8 kB / 378.3 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.5253, allocations: 56 kB / 378.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.5255, allocations: 154.5 kB / 378.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.5258, allocations: 73.11 kB / 378.6 MB, free: 13.22 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.5258, allocations: 0 / 378.6 MB, free: 13.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009134/0.5267, allocations: 268.9 kB / 378.8 MB, free: 12.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.5268, allocations: 8 kB / 378.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.5268, allocations: 3.938 kB / 378.9 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003477/0.5271, allocations: 56.97 kB / 378.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/0.5276, allocations: 63.91 kB / 379 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001774/0.5294, allocations: 1.373 MB / 380.4 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004567/0.5299, allocations: 39.67 kB / 380.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.5299, allocations: 11.98 kB / 380.4 MB, free: 11.28 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.0002043/0.5302, allocations: 124.8 kB / 380.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007036/0.5309, allocations: 202.1 kB / 380.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.208e-05/0.5309, allocations: 27.67 kB / 380.7 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.124e-05/0.531, allocations: 29.95 kB / 380.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.5311, allocations: 4 kB / 380.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.5311, allocations: 0 / 380.8 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.5311, allocations: 8 kB / 380.8 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004537/0.5315, allocations: 286 kB / 381.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.5316, allocations: 0 / 381.1 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.5319, allocations: 39.92 kB / 381.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003128/0.5323, allocations: 56.81 kB / 381.2 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.5323, allocations: 3.953 kB / 381.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001513/0.5338, allocations: 1.272 MB / 382.4 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.5339, allocations: 7.969 kB / 382.4 MB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009488/0.5348, allocations: 313.9 kB / 382.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.535, allocations: 116.8 kB / 382.9 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.257e-05/0.5351, allocations: 7.953 kB / 382.9 MB, free: 8.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002964/0.5354, allocations: 15.98 kB / 382.9 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/0.5356, allocations: 31.94 kB / 382.9 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.5356, allocations: 8.062 kB / 382.9 MB, free: 8.539 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.5358, allocations: 152.5 kB / 383.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5358, allocations: 3.938 kB / 383.1 MB, free: 8.383 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006193/0.5364, allocations: 87.69 kB / 383.2 MB, free: 8.297 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.001369/0.5378, allocations: 0.8549 MB / 384 MB, free: 7.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007408/0.5386, allocations: 269.6 kB / 384.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.5386, allocations: 0 / 384.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.539, allocations: 182.3 kB / 384.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.5393, allocations: 31.64 kB / 384.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.5417, allocations: 0.5598 MB / 385.1 MB, free: 6.316 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.5422, allocations: 0.7828 MB / 385.8 MB, free: 5.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.5424, allocations: 91.41 kB / 385.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of SimCode: time 1.382e-06/0.5424, allocations: 4 kB / 385.9 MB, free: 5.414 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.518/3.061, allocations: 5.586 MB / 391.5 MB, free: 15.83 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat