Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.147/2.147, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.982e-05/3.969e-05, allocations: 0 / 292.7 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1174, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4896/0.607, allocations: 79.59 MB / 422.7 MB, free: 14.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/0.6074, allocations: 75.27 kB / 422.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02553/0.6329, allocations: 5.571 MB / 428.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.633, allocations: 0 / 428.4 MB, free: 9.473 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.633, allocations: 4 kB / 428.4 MB, free: 9.469 MB / 346.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.001328/0.6344, allocations: 0.5353 MB / 428.9 MB, free: 8.906 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.06e-05/0.6344, allocations: 12.03 kB / 428.9 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/0.6346, allocations: 64.84 kB / 429 MB, free: 8.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.6347, allocations: 35.84 kB / 429 MB, free: 8.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.6352, allocations: 257.1 kB / 429.3 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-05/0.6353, allocations: 75.75 kB / 429.4 MB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.156e-05/0.6354, allocations: 39.55 kB / 429.4 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.6361, allocations: 289.8 kB / 429.7 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.6362, allocations: 0 / 429.7 MB, free: 8.211 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.66e-05/0.6362, allocations: 11.88 kB / 429.7 MB, free: 8.207 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.6362, allocations: 8 kB / 429.7 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.6368, allocations: 177.6 kB / 429.9 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002846/0.6396, allocations: 1.143 MB / 431 MB, free: 7.031 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004487/0.6401, allocations: 149 kB / 431.2 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.6404, allocations: 80.17 kB / 431.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.6404, allocations: 0 / 431.2 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003999/0.6408, allocations: 151.5 kB / 431.4 MB, free: 6.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 2.214e-06/0.6408, allocations: 0 / 431.4 MB, free: 6.727 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009421/0.6418, allocations: 218.7 kB / 431.6 MB, free: 6.547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.6419, allocations: 114.8 kB / 431.7 MB, free: 6.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003322/0.6423, allocations: 201 kB / 431.9 MB, free: 6.242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.675e-05/0.6423, allocations: 37.45 kB / 432 MB, free: 6.203 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.6425, allocations: 167.4 kB / 432.1 MB, free: 6.059 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.6426, allocations: 69.89 kB / 432.2 MB, free: 6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.886e-05/0.6426, allocations: 3 kB / 432.2 MB, free: 6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6428, allocations: 337.6 kB / 432.5 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.643, allocations: 60.19 kB / 432.6 MB, free: 5.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.6433, allocations: 122 kB / 432.7 MB, free: 5.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.6435, allocations: 70.11 kB / 432.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.6436, allocations: 0 / 432.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007016/0.6443, allocations: 251.7 kB / 433 MB, free: 5.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.6443, allocations: 4 kB / 433 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.6443, allocations: 4 kB / 433 MB, free: 5.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004214/0.6448, allocations: 58.72 kB / 433.1 MB, free: 5.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.6452, allocations: 47.91 kB / 433.1 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001913/0.6471, allocations: 1.416 MB / 434.5 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.6476, allocations: 46.89 kB / 434.6 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.935e-05/0.6477, allocations: 7.5 kB / 434.6 MB, free: 3.633 MB / 346.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.pulseStart,booleanPulse.pulseStart,$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.0001545/0.6478, allocations: 125.3 kB / 434.7 MB, free: 3.512 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.6479, allocations: 23.72 kB / 434.7 MB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-05/0.648, allocations: 25.8 kB / 434.8 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.648, allocations: 4 kB / 434.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.648, allocations: 0 / 434.8 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.648, allocations: 3.984 kB / 434.8 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005106/0.6485, allocations: 322.1 kB / 435.1 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6486, allocations: 0 / 435.1 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003304/0.6489, allocations: 35.36 kB / 435.1 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003202/0.6492, allocations: 49.88 kB / 435.2 MB, free: 3.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.6493, allocations: 7.375 kB / 435.2 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00168/0.651, allocations: 1.332 MB / 436.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.651, allocations: 0 / 436.5 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.6521, allocations: 321 kB / 436.8 MB, free: 1.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.6523, allocations: 111.6 kB / 436.9 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.084e-05/0.6524, allocations: 11.92 kB / 436.9 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/0.6527, allocations: 23.86 kB / 437 MB, free: 1.266 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.6529, allocations: 31.88 kB / 437 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.527e-05/0.6529, allocations: 11.98 kB / 437 MB, free: 1.227 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002262/0.6531, allocations: 157.8 kB / 437.2 MB, free: 1.094 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6532, allocations: 0 / 437.2 MB, free: 1.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.6537, allocations: 87.31 kB / 437.2 MB, free: 1.016 MB / 346.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.pulseStart,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.001522/0.6553, allocations: 0.8764 MB / 438.1 MB, free: 192 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007984/0.6561, allocations: 263.8 kB / 438.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6562, allocations: 0 / 438.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004054/0.6566, allocations: 176 kB / 438.6 MB, free: 15.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.657, allocations: 45.61 kB / 438.6 MB, free: 15.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.6597, allocations: 0.5731 MB / 439.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.6602, allocations: 0.764 MB / 439.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.6604, allocations: 26.06 kB / 440 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.6606, allocations: 81.53 kB / 440 MB, free: 14.36 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.6606, allocations: 0 / 440 MB, free: 14.36 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03283/0.6934, allocations: 4.987 MB / 445 MB, free: 9.48 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003545/0.6939, allocations: 193 kB / 445.2 MB, free: 9.246 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.37, allocations: 0 / 445.2 MB, free: 9.246 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat