Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.008/2.008, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.263e-05/3.267e-05, allocations: 8 kB / 255.5 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1193, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4119/0.5313, allocations: 73.74 MB / 373.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5317, allocations: 71.22 kB / 373.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02297/0.5547, allocations: 5.395 MB / 379.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5547, allocations: 0 / 379.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.5547, allocations: 6.781 kB / 379.2 MB, free: 11.7 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.001149/0.5559, allocations: 0.5415 MB / 379.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.556, allocations: 10.53 kB / 379.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.026e-05/0.5561, allocations: 63.91 kB / 379.8 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.933e-05/0.5562, allocations: 38.34 kB / 379.8 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.5565, allocations: 248.2 kB / 380.1 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.402e-05/0.5566, allocations: 79.83 kB / 380.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.5567, allocations: 31.91 kB / 380.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006796/0.5574, allocations: 289.9 kB / 380.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.5574, allocations: 0 / 380.5 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.532e-05/0.5575, allocations: 17.89 kB / 380.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.5575, allocations: 11.09 kB / 380.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005327/0.5581, allocations: 184 kB / 380.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.5606, allocations: 1.139 MB / 381.8 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.561, allocations: 155 kB / 382 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.5612, allocations: 82.27 kB / 382 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.346e-05/0.5613, allocations: 2.594 kB / 382 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003479/0.5616, allocations: 151.1 kB / 382.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.186e-06/0.5617, allocations: 0 / 382.2 MB, free: 10.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000841/0.5625, allocations: 223.2 kB / 382.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.5626, allocations: 108.8 kB / 382.5 MB, free: 9.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.5629, allocations: 200.9 kB / 382.7 MB, free: 9.781 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.5629, allocations: 30.52 kB / 382.7 MB, free: 9.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.563, allocations: 178.4 kB / 382.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.938e-05/0.5631, allocations: 65.91 kB / 383 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.5631, allocations: 4.438 kB / 383 MB, free: 9.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.976e-05/0.5632, allocations: 340.9 kB / 383.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.5634, allocations: 61.53 kB / 383.4 MB, free: 9.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.5637, allocations: 125.4 kB / 383.5 MB, free: 9.195 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.5639, allocations: 83.38 kB / 383.6 MB, free: 9.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.5639, allocations: 0 / 383.6 MB, free: 9.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006118/0.5645, allocations: 251 kB / 383.8 MB, free: 9.121 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.5646, allocations: 5.719 kB / 383.8 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.5646, allocations: 2.562 kB / 383.8 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003753/0.565, allocations: 56.73 kB / 383.9 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003727/0.5654, allocations: 52.2 kB / 383.9 MB, free: 9.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.5669, allocations: 1.408 MB / 385.3 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004866/0.5674, allocations: 49.41 kB / 385.4 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.5675, allocations: 11.53 kB / 385.4 MB, free: 7.738 MB / 314.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.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.0001223/0.5676, allocations: 119.7 kB / 385.5 MB, free: 7.629 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.46e-05/0.5677, allocations: 24.53 kB / 385.5 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.5678, allocations: 26.55 kB / 385.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.5678, allocations: 2.5 kB / 385.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.5678, allocations: 0 / 385.6 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5678, allocations: 6.484 kB / 385.6 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004487/0.5683, allocations: 314.3 kB / 385.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5683, allocations: 3.719 kB / 385.9 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.5686, allocations: 31.77 kB / 385.9 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000312/0.569, allocations: 52.73 kB / 386 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.569, allocations: 15.91 kB / 386 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001549/0.5706, allocations: 1.319 MB / 387.3 MB, free: 22.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5706, allocations: 0 / 387.3 MB, free: 22.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.5717, allocations: 319.2 kB / 387.6 MB, free: 22.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001997/0.5719, allocations: 122.5 kB / 387.7 MB, free: 21.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.961e-05/0.5719, allocations: 13.08 kB / 387.8 MB, free: 21.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.5723, allocations: 18.14 kB / 387.8 MB, free: 21.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.5724, allocations: 37.09 kB / 387.8 MB, free: 21.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/0.5724, allocations: 5.688 kB / 387.8 MB, free: 21.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002408/0.5727, allocations: 158.7 kB / 388 MB, free: 21.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5727, allocations: 0 / 388 MB, free: 21.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005673/0.5733, allocations: 92.19 kB / 388.1 MB, free: 21.82 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.001437/0.5747, allocations: 0.8693 MB / 388.9 MB, free: 21.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000796/0.5756, allocations: 275.1 kB / 389.2 MB, free: 21.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5756, allocations: 5.219 kB / 389.2 MB, free: 21.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.576, allocations: 192.3 kB / 389.4 MB, free: 20.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.5765, allocations: 39.33 kB / 389.4 MB, free: 20.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.579, allocations: 0.5679 MB / 390 MB, free: 20.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.5794, allocations: 0.7679 MB / 390.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00018/0.5796, allocations: 21.55 kB / 390.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.5798, allocations: 80.23 kB / 390.9 MB, free: 19.96 MB / 330.7 MB Notification: Performance of SimCode: time 1.263e-06/0.5798, allocations: 0 / 390.9 MB, free: 19.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/0.6144, allocations: 5.015 MB / 395.9 MB, free: 19.43 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.6147, allocations: 179.7 kB / 396.1 MB, free: 19.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.738/3.353, allocations: 0 / 396.1 MB, free: 19.2 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat does not exist to compare? outputFormat=mat