Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.738/1.738, allocations: 171.3 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.515e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.252, allocations: 38.76 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1191/0.3712, allocations: 68.69 MB / 327 MB, free: 9.148 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.3715, allocations: 75.95 kB / 327.1 MB, free: 9.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0265/0.398, allocations: 5.919 MB / 333 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.398, allocations: 0 / 333 MB, free: 3.121 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.594e-05/0.3981, allocations: 8 kB / 333 MB, free: 3.113 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.001373/0.3995, allocations: 0.581 MB / 333.6 MB, free: 2.488 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.3995, allocations: 12.03 kB / 333.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.3997, allocations: 47.53 kB / 333.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.4001, allocations: 259.9 kB / 333.9 MB, free: 2.133 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.4002, allocations: 76.19 kB / 334 MB, free: 2.047 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.4003, allocations: 19.94 kB / 334 MB, free: 2.027 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005798/0.4009, allocations: 181.5 kB / 334.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006814/0.4016, allocations: 270.7 kB / 334.4 MB, free: 1.562 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.4017, allocations: 4 kB / 334.4 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.4017, allocations: 3.984 kB / 334.4 MB, free: 1.555 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.4017, allocations: 8 kB / 334.5 MB, free: 1.547 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0031/0.4048, allocations: 1.324 MB / 335.8 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.4054, allocations: 170.5 kB / 335.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.4056, allocations: 65.17 kB / 336 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.4057, allocations: 3.906 kB / 336 MB, free: 15.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.406, allocations: 139.3 kB / 336.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=19): time 2.435e-06/0.406, allocations: 0 / 336.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008315/0.4069, allocations: 205.3 kB / 336.3 MB, free: 15.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.407, allocations: 102.8 kB / 336.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003138/0.4073, allocations: 204.4 kB / 336.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.4074, allocations: 29.7 kB / 336.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.4075, allocations: 266.5 kB / 336.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.378e-05/0.4076, allocations: 59.11 kB / 337 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.797e-05/0.4077, allocations: 3.938 kB / 337 MB, free: 14.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4078, allocations: 326.8 kB / 337.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.408, allocations: 63.98 kB / 337.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002456/0.4082, allocations: 142.1 kB / 337.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.4085, allocations: 75.94 kB / 337.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4085, allocations: 0 / 337.6 MB, free: 14.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006246/0.4092, allocations: 230.2 kB / 337.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.4092, allocations: 7.594 kB / 337.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4092, allocations: 4 kB / 337.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003807/0.4096, allocations: 61.09 kB / 337.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005618/0.4102, allocations: 79.89 kB / 338 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.4119, allocations: 1.365 MB / 339.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005068/0.4124, allocations: 43.62 kB / 339.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.4125, allocations: 12 kB / 339.4 MB, free: 12.28 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.000198/0.4127, allocations: 126.2 kB / 339.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007074/0.4134, allocations: 202.2 kB / 339.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.199e-05/0.4135, allocations: 19.81 kB / 339.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.726e-05/0.4135, allocations: 21.95 kB / 339.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4136, allocations: 4 kB / 339.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.4136, allocations: 7.938 kB / 339.8 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.4136, allocations: 3.953 kB / 339.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.414, allocations: 289.8 kB / 340 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.4141, allocations: 4 kB / 340.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004727/0.4145, allocations: 55.97 kB / 340.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.4149, allocations: 56.81 kB / 340.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.4149, allocations: 3.984 kB / 340.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001484/0.4164, allocations: 1.276 MB / 341.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4164, allocations: 0 / 341.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009583/0.4174, allocations: 306 kB / 341.7 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.4176, allocations: 112.8 kB / 341.9 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.4177, allocations: 0 / 341.9 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.418, allocations: 24.05 kB / 341.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.4181, allocations: 31.94 kB / 341.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.4182, allocations: 7.953 kB / 341.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001969/0.4184, allocations: 152.5 kB / 342.1 MB, free: 9.391 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.745e-06/0.4184, allocations: 0 / 342.1 MB, free: 9.391 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005893/0.419, allocations: 87.62 kB / 342.1 MB, free: 9.305 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.001294/0.4203, allocations: 0.8464 MB / 343 MB, free: 8.43 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007458/0.4211, allocations: 261.7 kB / 343.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4211, allocations: 0.625 kB / 343.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003773/0.4215, allocations: 181.7 kB / 343.4 MB, free: 7.977 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.4219, allocations: 20.38 kB / 343.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.4244, allocations: 0.5561 MB / 344 MB, free: 7.355 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.4248, allocations: 0.7791 MB / 344.8 MB, free: 6.551 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.425, allocations: 95.41 kB / 344.9 MB, free: 6.457 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4251, allocations: 0 / 344.9 MB, free: 6.457 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.619/3.044, allocations: 5.545 MB / 350.4 MB, free: 0.9141 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat