Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.635/1.635, allocations: 171.2 MB / 183.3 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.246e-05, allocations: 0 / 225.1 MB, free: 2.211 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2598, allocations: 38.77 MB / 263.9 MB, free: 9.699 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.3943, allocations: 68.35 MB / 332.2 MB, free: 5.246 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.3946, allocations: 75.95 kB / 332.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02279/0.4174, allocations: 5.318 MB / 337.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4175, allocations: 0 / 337.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.4175, allocations: 8 kB / 337.6 MB, free: 15.82 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.001167/0.4187, allocations: 0.544 MB / 338.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.761e-05/0.4187, allocations: 8.031 kB / 338.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.4188, allocations: 62.55 kB / 338.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.665e-05/0.4189, allocations: 35.61 kB / 338.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/0.4193, allocations: 250.9 kB / 338.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.756e-05/0.4194, allocations: 88.12 kB / 338.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.762e-05/0.4195, allocations: 28 kB / 338.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006932/0.4202, allocations: 283.4 kB / 338.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4203, allocations: 0 / 338.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.482e-05/0.4203, allocations: 12 kB / 338.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/0.4203, allocations: 8 kB / 338.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005406/0.4209, allocations: 182.2 kB / 339.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.4234, allocations: 1.158 MB / 340.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004224/0.4238, allocations: 158.1 kB / 340.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.424, allocations: 77.16 kB / 340.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.4241, allocations: 4 kB / 340.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003565/0.4244, allocations: 158.8 kB / 340.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.284e-06/0.4245, allocations: 0 / 340.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008274/0.4253, allocations: 220.5 kB / 340.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.4254, allocations: 110.8 kB / 341 MB, free: 12.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002873/0.4257, allocations: 200.8 kB / 341.2 MB, free: 12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.4257, allocations: 25.7 kB / 341.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.4259, allocations: 180 kB / 341.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.186e-05/0.426, allocations: 71.08 kB / 341.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.426, allocations: 12 kB / 341.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4262, allocations: 330.8 kB / 341.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001936/0.4264, allocations: 60.56 kB / 341.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002546/0.4266, allocations: 128.2 kB / 341.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.4269, allocations: 69.17 kB / 342 MB, free: 11.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.4269, allocations: 3.953 kB / 342 MB, free: 11.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006298/0.4275, allocations: 256.2 kB / 342.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.4276, allocations: 8 kB / 342.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.4276, allocations: 4.156 kB / 342.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003459/0.4279, allocations: 56.77 kB / 342.3 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.4283, allocations: 47.91 kB / 342.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001709/0.43, allocations: 1.409 MB / 343.8 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003793/0.4304, allocations: 43.73 kB / 343.8 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.4305, allocations: 11.95 kB / 343.8 MB, free: 9.113 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.0001227/0.4306, allocations: 116.9 kB / 344 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.14e-05/0.4307, allocations: 23.81 kB / 344 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.115e-05/0.4308, allocations: 33.89 kB / 344 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.4308, allocations: 4 kB / 344 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.4308, allocations: 0 / 344 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.4308, allocations: 0 / 344 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004691/0.4313, allocations: 329.3 kB / 344.3 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.4313, allocations: 0 / 344.3 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.4316, allocations: 31.98 kB / 344.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.4319, allocations: 52.83 kB / 344.4 MB, free: 8.473 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.432, allocations: 7.984 kB / 344.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001494/0.4335, allocations: 1.323 MB / 345.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4335, allocations: 3.984 kB / 345.8 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009699/0.4345, allocations: 329.4 kB / 346.1 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.4346, allocations: 112.8 kB / 346.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.605e-05/0.4347, allocations: 8 kB / 346.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002968/0.435, allocations: 19.98 kB / 346.2 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/0.4352, allocations: 31.94 kB / 346.3 MB, free: 6.477 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.583e-05/0.4352, allocations: 11.98 kB / 346.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002133/0.4354, allocations: 165.4 kB / 346.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4354, allocations: 0 / 346.4 MB, free: 6.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004805/0.4359, allocations: 83.84 kB / 346.5 MB, free: 6.219 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.001366/0.4373, allocations: 0.8684 MB / 347.4 MB, free: 5.324 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007099/0.438, allocations: 278.4 kB / 347.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4381, allocations: 4 kB / 347.7 MB, free: 5.035 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000403/0.4385, allocations: 190.6 kB / 347.8 MB, free: 4.836 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.4388, allocations: 32.8 kB / 347.9 MB, free: 4.805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.4414, allocations: 0.5742 MB / 348.4 MB, free: 4.195 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.4418, allocations: 0.7596 MB / 349.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000158/0.442, allocations: 26.06 kB / 349.2 MB, free: 3.387 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.4422, allocations: 83.41 kB / 349.3 MB, free: 3.305 MB / 298.7 MB Notification: Performance of SimCode: time 8.52e-07/0.4422, allocations: 0 / 349.3 MB, free: 3.305 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/0.4766, allocations: 5.011 MB / 354.3 MB, free: 14.35 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.4769, allocations: 174.7 kB / 354.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.409/2.886, allocations: 0 / 354.5 MB, free: 14.13 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat