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 1.933/1.933, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.412e-05/3.427e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09349/0.09356, allocations: 44.51 MB / 299.9 MB, free: 6.555 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4104/0.504, allocations: 74.39 MB / 374.3 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.5043, allocations: 69 kB / 374.4 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02578/0.5301, allocations: 6.07 MB / 380.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5302, allocations: 0 / 380.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.73e-05/0.5302, allocations: 13.89 kB / 380.5 MB, free: 11.73 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.001282/0.5315, allocations: 0.5703 MB / 381 MB, free: 11.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.5316, allocations: 10.94 kB / 381.1 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.5317, allocations: 70.28 kB / 381.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.5318, allocations: 44.23 kB / 381.2 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.5322, allocations: 265.2 kB / 381.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.637e-05/0.5323, allocations: 79.59 kB / 381.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.375e-05/0.5324, allocations: 31.34 kB / 381.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.5332, allocations: 321.7 kB / 381.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.5332, allocations: 1.062 kB / 381.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.5333, allocations: 13.09 kB / 381.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.5333, allocations: 12.78 kB / 381.9 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005688/0.5339, allocations: 211.5 kB / 382.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002712/0.5366, allocations: 1.379 MB / 383.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004275/0.5371, allocations: 159.6 kB / 383.6 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002055/0.5373, allocations: 84.16 kB / 383.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.758e-05/0.5373, allocations: 1.062 kB / 383.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/0.5377, allocations: 151.8 kB / 383.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.405e-06/0.5377, allocations: 0 / 383.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008423/0.5385, allocations: 227.9 kB / 384.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.5386, allocations: 106.2 kB / 384.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003774/0.539, allocations: 240.1 kB / 384.4 MB, free: 9.645 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.5391, allocations: 32.45 kB / 384.4 MB, free: 9.613 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.5392, allocations: 259.7 kB / 384.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.957e-05/0.5393, allocations: 70.8 kB / 384.8 MB, free: 9.363 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.047e-05/0.5393, allocations: 6.562 kB / 384.8 MB, free: 9.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.483e-05/0.5394, allocations: 327.6 kB / 385.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000192/0.5396, allocations: 66.28 kB / 385.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002492/0.5398, allocations: 151.6 kB / 385.3 MB, free: 8.945 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.5401, allocations: 83.12 kB / 385.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.5401, allocations: 1.375 kB / 385.4 MB, free: 8.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008913/0.541, allocations: 300 kB / 385.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.541, allocations: 8 kB / 385.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.541, allocations: 2.75 kB / 385.7 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003479/0.5414, allocations: 64.3 kB / 385.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.5419, allocations: 60.06 kB / 385.8 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.5433, allocations: 1.409 MB / 387.2 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004867/0.5438, allocations: 49.2 kB / 387.3 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.345e-05/0.5438, allocations: 9.062 kB / 387.3 MB, free: 7.484 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.0001145/0.544, allocations: 129.5 kB / 387.4 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.888e-05/0.544, allocations: 28.52 kB / 387.4 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.75e-05/0.5441, allocations: 28.22 kB / 387.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.5441, allocations: 2.531 kB / 387.5 MB, free: 7.348 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5442, allocations: 4 kB / 387.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.5442, allocations: 2.766 kB / 387.5 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.5447, allocations: 337 kB / 387.8 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5447, allocations: 1.188 kB / 387.8 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.545, allocations: 33.66 kB / 387.8 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002791/0.5453, allocations: 60.91 kB / 387.9 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.5454, allocations: 11.61 kB / 387.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00148/0.5469, allocations: 1.32 MB / 389.2 MB, free: 21.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.5469, allocations: 4 kB / 389.2 MB, free: 21.86 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000976/0.5479, allocations: 337.1 kB / 389.5 MB, free: 21.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.5481, allocations: 124.7 kB / 389.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.832e-05/0.5482, allocations: 5.094 kB / 389.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.5485, allocations: 24.05 kB / 389.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.5486, allocations: 30.81 kB / 389.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.5486, allocations: 3.844 kB / 389.7 MB, free: 21.65 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000255/0.5489, allocations: 184 kB / 389.9 MB, free: 21.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5489, allocations: 0 / 389.9 MB, free: 21.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000565/0.5495, allocations: 90.78 kB / 390 MB, free: 21.55 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.001392/0.5509, allocations: 0.8844 MB / 390.9 MB, free: 20.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008011/0.5517, allocations: 297.7 kB / 391.2 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5518, allocations: 1.281 kB / 391.2 MB, free: 20.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003917/0.5522, allocations: 189.1 kB / 391.4 MB, free: 20.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.5526, allocations: 39.89 kB / 391.4 MB, free: 20.67 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.555, allocations: 0.5735 MB / 392 MB, free: 20.37 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.5554, allocations: 0.7846 MB / 392.8 MB, free: 19.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.5556, allocations: 94.33 kB / 392.9 MB, free: 19.65 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5556, allocations: 0 / 392.9 MB, free: 19.65 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.243, allocations: 5.804 MB / 398.7 MB, free: 19.28 MB / 330.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