Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.977/1.977, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.643e-05/2.642e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.2998, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.4553, allocations: 73.08 MB / 367.3 MB, free: 8.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/0.4557, allocations: 63.97 kB / 367.3 MB, free: 8.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0281/0.4838, allocations: 5.348 MB / 372.7 MB, free: 3.387 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4839, allocations: 0 / 372.7 MB, free: 3.387 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.227e-05/0.4839, allocations: 8 kB / 372.7 MB, free: 3.379 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001211/0.4851, allocations: 0.5444 MB / 373.2 MB, free: 2.789 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.463e-05/0.4852, allocations: 12.03 kB / 373.3 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.4853, allocations: 31.62 kB / 373.3 MB, free: 2.746 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.4858, allocations: 254.5 kB / 373.5 MB, free: 2.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-05/0.4859, allocations: 64.19 kB / 373.6 MB, free: 2.383 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.486, allocations: 19.91 kB / 373.6 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005186/0.4865, allocations: 165.5 kB / 373.8 MB, free: 2.203 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.4872, allocations: 249.8 kB / 374 MB, free: 1.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.4872, allocations: 4 kB / 374 MB, free: 1.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.4873, allocations: 0 / 374 MB, free: 1.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.4873, allocations: 11.98 kB / 374 MB, free: 1.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002512/0.4898, allocations: 1.072 MB / 375.1 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004135/0.4903, allocations: 138.6 kB / 375.3 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001847/0.4905, allocations: 76.88 kB / 375.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.4905, allocations: 8.328 kB / 375.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003539/0.4909, allocations: 159.2 kB / 375.5 MB, free: 384 kB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.956e-06/0.4909, allocations: 224 / 375.5 MB, free: 384 kB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000818/0.4917, allocations: 196.7 kB / 375.7 MB, free: 180 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.4918, allocations: 114.8 kB / 375.8 MB, free: 40 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.4921, allocations: 162 kB / 376 MB, free: 15.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.4921, allocations: 29.7 kB / 376 MB, free: 15.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.4923, allocations: 238.3 kB / 376.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.958e-05/0.4924, allocations: 63.17 kB / 376.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.4924, allocations: 0 / 376.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.4926, allocations: 318.8 kB / 376.6 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.4928, allocations: 56.55 kB / 376.6 MB, free: 15.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002332/0.493, allocations: 123.9 kB / 376.8 MB, free: 15.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.4932, allocations: 57.16 kB / 376.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4932, allocations: 0 / 376.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006347/0.4939, allocations: 232.4 kB / 377 MB, free: 14.72 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.494, allocations: 7.953 kB / 377.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.494, allocations: 4 kB / 377.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/0.4944, allocations: 48.81 kB / 377.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.4948, allocations: 55.98 kB / 377.2 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001756/0.4966, allocations: 1.365 MB / 378.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000386/0.497, allocations: 27.86 kB / 378.6 MB, free: 13.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.331e-05/0.4971, allocations: 11.94 kB / 378.6 MB, free: 13.09 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: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$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 (32): * Single equations (assignments): 31 * 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.0002022/0.4973, allocations: 132.7 kB / 378.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007437/0.498, allocations: 202.2 kB / 378.9 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.244e-05/0.4981, allocations: 23.72 kB / 378.9 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.066e-05/0.4982, allocations: 21.95 kB / 378.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4982, allocations: 0 / 378.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.4982, allocations: 0 / 378.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4982, allocations: 4 kB / 378.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004383/0.4987, allocations: 274 kB / 379.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.4987, allocations: 4 kB / 379.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.499, allocations: 27.98 kB / 379.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002861/0.4993, allocations: 52.77 kB / 379.3 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.4994, allocations: 11.98 kB / 379.3 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001514/0.5009, allocations: 1.272 MB / 380.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.5009, allocations: 0 / 380.6 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009826/0.5019, allocations: 317.8 kB / 380.9 MB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001496/0.5021, allocations: 100.8 kB / 381 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/0.5022, allocations: 8.156 kB / 381 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.5025, allocations: 15.98 kB / 381 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001439/0.5026, allocations: 31.94 kB / 381 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.5027, allocations: 11.98 kB / 381 MB, free: 10.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000159/0.5028, allocations: 128.3 kB / 381.2 MB, free: 10.27 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5029, allocations: 4 kB / 381.2 MB, free: 10.26 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006001/0.5035, allocations: 79.69 kB / 381.3 MB, free: 10.18 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001329/0.5048, allocations: 0.8472 MB / 382.1 MB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007015/0.5055, allocations: 257.8 kB / 382.4 MB, free: 9.047 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.5056, allocations: 3.938 kB / 382.4 MB, free: 9.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004298/0.506, allocations: 189.5 kB / 382.5 MB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.5064, allocations: 27.25 kB / 382.6 MB, free: 8.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002531/0.509, allocations: 0.5714 MB / 383.1 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.5094, allocations: 0.7672 MB / 383.9 MB, free: 7.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.5096, allocations: 87.34 kB / 384 MB, free: 7.332 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5096, allocations: 7.938 kB / 384 MB, free: 7.324 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.708/3.218, allocations: 5.019 MB / 389 MB, free: 2.305 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat