Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.294e-05/3.299e-05, allocations: 3.438 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2511/0.2512, allocations: 38.77 MB / 263.9 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.3732, allocations: 68.36 MB / 332.2 MB, free: 5.406 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.3735, allocations: 71.97 kB / 332.3 MB, free: 5.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02338/0.3969, allocations: 5.317 MB / 337.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.397, allocations: 0 / 337.6 MB, free: 15.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.126e-05/0.397, allocations: 4 kB / 337.6 MB, free: 15.99 MB / 298.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.001207/0.3982, allocations: 0.5479 MB / 338.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3983, allocations: 16.03 kB / 338.2 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.3984, allocations: 62.53 kB / 338.2 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.798e-05/0.3985, allocations: 31.62 kB / 338.3 MB, free: 15.28 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004106/0.3989, allocations: 247 kB / 338.5 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.941e-05/0.399, allocations: 88.06 kB / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/0.3991, allocations: 28 kB / 338.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.3998, allocations: 281.9 kB / 338.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3999, allocations: 3.938 kB / 338.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.3999, allocations: 20 kB / 338.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.3999, allocations: 8 kB / 338.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.4005, allocations: 173.2 kB / 339.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002639/0.4031, allocations: 1.162 MB / 340.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004383/0.4036, allocations: 146.6 kB / 340.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.4038, allocations: 81.19 kB / 340.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.4039, allocations: 3.953 kB / 340.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000371/0.4043, allocations: 159.3 kB / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.4043, allocations: 0 / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008439/0.4051, allocations: 219.8 kB / 340.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.454e-05/0.4052, allocations: 110.8 kB / 341 MB, free: 12.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002875/0.4055, allocations: 204.8 kB / 341.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.351e-05/0.4056, allocations: 29.7 kB / 341.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.4057, allocations: 234.5 kB / 341.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.95e-05/0.4058, allocations: 63.09 kB / 341.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.025e-05/0.4058, allocations: 4 kB / 341.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.406, allocations: 326.8 kB / 341.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.4062, allocations: 56.56 kB / 341.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.4064, allocations: 131.9 kB / 342 MB, free: 11.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.4067, allocations: 69.08 kB / 342.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.4067, allocations: 0 / 342.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006167/0.4073, allocations: 244.4 kB / 342.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.4074, allocations: 8 kB / 342.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4074, allocations: 0 / 342.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003758/0.4078, allocations: 60.91 kB / 342.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.4081, allocations: 43.98 kB / 342.4 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.4099, allocations: 1.404 MB / 343.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000409/0.4103, allocations: 35.86 kB / 343.8 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.4104, allocations: 12 kB / 343.9 MB, free: 9.277 MB / 298.7 MB 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.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * 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.0001472/0.4105, allocations: 132.9 kB / 344 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.25e-05/0.4106, allocations: 27.72 kB / 344 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.561e-05/0.4107, allocations: 25.95 kB / 344 MB, free: 9.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4107, allocations: 4 kB / 344 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4108, allocations: 0 / 344 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.4108, allocations: 3.938 kB / 344 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.4113, allocations: 321.3 kB / 344.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4113, allocations: 0 / 344.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.4116, allocations: 39.92 kB / 344.4 MB, free: 8.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.4119, allocations: 52.81 kB / 344.5 MB, free: 8.621 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.412, allocations: 8 kB / 344.5 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001533/0.4135, allocations: 1.312 MB / 345.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4135, allocations: 3.938 kB / 345.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.4146, allocations: 333.5 kB / 346.1 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.4148, allocations: 116.8 kB / 346.2 MB, free: 6.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/0.4148, allocations: 8 kB / 346.2 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.4151, allocations: 20.05 kB / 346.2 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.4153, allocations: 35.94 kB / 346.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.4153, allocations: 4 kB / 346.3 MB, free: 6.617 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002199/0.4155, allocations: 161.4 kB / 346.4 MB, free: 6.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4156, allocations: 0 / 346.4 MB, free: 6.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005578/0.4161, allocations: 87.8 kB / 346.5 MB, free: 6.371 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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 (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.001363/0.4175, allocations: 0.8703 MB / 347.4 MB, free: 5.473 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007252/0.4182, allocations: 261.6 kB / 347.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/0.4183, allocations: 4.375 kB / 347.7 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004206/0.4187, allocations: 185.7 kB / 347.8 MB, free: 5.012 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.4191, allocations: 32.42 kB / 347.9 MB, free: 4.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.4218, allocations: 0.6057 MB / 348.5 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.4222, allocations: 0.7635 MB / 349.2 MB, free: 3.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.4224, allocations: 79.41 kB / 349.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4224, allocations: 0 / 349.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.6/3.023, allocations: 5.235 MB / 354.5 MB, free: 14.23 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat