Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.883/2.883, allocations: 195 MB / 202.9 MB, free: 6.734 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.467e-05/3.485e-05, allocations: 3.25 kB / 249.8 MB, free: 5.289 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 44.52 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6099/0.7274, allocations: 73.09 MB / 367.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003676/0.7278, allocations: 66.95 kB / 367.4 MB, free: 6.934 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03953/0.7674, allocations: 5.358 MB / 372.8 MB, free: 22.22 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.7675, allocations: 0 / 372.8 MB, free: 22.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.835e-05/0.7675, allocations: 7.75 kB / 372.8 MB, free: 22.22 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.001786/0.7693, allocations: 0.5493 MB / 373.3 MB, free: 21.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.572e-05/0.7694, allocations: 15.62 kB / 373.4 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001289/0.7696, allocations: 49.91 kB / 373.4 MB, free: 21.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.7697, allocations: 34.94 kB / 373.4 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005461/0.7703, allocations: 248 kB / 373.7 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.7705, allocations: 71.5 kB / 373.7 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.7706, allocations: 23.28 kB / 373.8 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008106/0.7714, allocations: 159.2 kB / 373.9 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009817/0.7724, allocations: 250.9 kB / 374.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.7725, allocations: 0 / 374.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-05/0.7726, allocations: 3.781 kB / 374.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.7726, allocations: 7.75 kB / 374.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003766/0.7764, allocations: 1.075 MB / 375.3 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005825/0.777, allocations: 142.4 kB / 375.4 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.7773, allocations: 68.58 kB / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.863e-05/0.7774, allocations: 3.953 kB / 375.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004944/0.7779, allocations: 150.2 kB / 375.6 MB, free: 20.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 4.418e-06/0.7779, allocations: 224 / 375.6 MB, free: 20.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001301/0.7793, allocations: 198.5 kB / 375.8 MB, free: 20.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.368e-05/0.7794, allocations: 110.6 kB / 375.9 MB, free: 20.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.7798, allocations: 172.9 kB / 376.1 MB, free: 20.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.7798, allocations: 32.64 kB / 376.1 MB, free: 20.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.7801, allocations: 177.4 kB / 376.3 MB, free: 20.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.7802, allocations: 60.19 kB / 376.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-05/0.7802, allocations: 0 / 376.4 MB, free: 20.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002309/0.7805, allocations: 335.1 kB / 376.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.7808, allocations: 56.34 kB / 376.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003468/0.7812, allocations: 117.8 kB / 376.8 MB, free: 19.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002988/0.7815, allocations: 66.94 kB / 376.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.7815, allocations: 0 / 376.9 MB, free: 19.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009598/0.7825, allocations: 233.9 kB / 377.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.7826, allocations: 3.875 kB / 377.1 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.7826, allocations: 7.859 kB / 377.2 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005524/0.7832, allocations: 55.27 kB / 377.2 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006169/0.7838, allocations: 55.05 kB / 377.3 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.7866, allocations: 1.368 MB / 378.6 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/0.7873, allocations: 26.45 kB / 378.7 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.102e-05/0.7873, allocations: 11.55 kB / 378.7 MB, free: 18.38 MB / 314.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.0003026/0.7877, allocations: 127.5 kB / 378.8 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.464e-05/0.7878, allocations: 27.33 kB / 378.8 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.58e-05/0.7879, allocations: 19.77 kB / 378.8 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.7879, allocations: 0 / 378.8 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.7879, allocations: 0 / 378.8 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.788, allocations: 3.875 kB / 378.8 MB, free: 18.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006003/0.7886, allocations: 264 kB / 379.1 MB, free: 18.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7886, allocations: 3.953 kB / 379.1 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000435/0.7891, allocations: 37.53 kB / 379.1 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003623/0.7894, allocations: 49.05 kB / 379.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.7895, allocations: 6.188 kB / 379.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0018/0.7913, allocations: 1.282 MB / 380.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/0.7914, allocations: 0 / 380.5 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.7924, allocations: 307 kB / 380.8 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.7926, allocations: 111.8 kB / 380.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.005e-05/0.7927, allocations: 3.938 kB / 380.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003523/0.7931, allocations: 14.42 kB / 380.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.7932, allocations: 40.64 kB / 380.9 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/0.7933, allocations: 7.531 kB / 380.9 MB, free: 16.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001738/0.7935, allocations: 130.7 kB / 381.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.7935, allocations: 0 / 381.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006388/0.7941, allocations: 85.09 kB / 381.2 MB, free: 16.55 MB / 314.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.001502/0.7957, allocations: 0.8454 MB / 382 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007682/0.7965, allocations: 254.7 kB / 382.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.7965, allocations: 3.938 kB / 382.3 MB, free: 15.81 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004338/0.7969, allocations: 187.5 kB / 382.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004275/0.7974, allocations: 27.73 kB / 382.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.8004, allocations: 0.5538 MB / 383 MB, free: 15.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.8009, allocations: 0.7634 MB / 383.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.8011, allocations: 28.83 kB / 383.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.8013, allocations: 82.84 kB / 383.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of SimCode: time 1.543e-06/0.8013, allocations: 0 / 383.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07259/0.8739, allocations: 4.199 MB / 388.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003244/0.8743, allocations: 145.4 kB / 388.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.644/4.519, allocations: 0 / 388.2 MB, free: 12.79 MB / 314.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[16009]=2.000000 File[172]=1.717172 " Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:_D_whenCondition1,_D_whenCondition2,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,der(inductor1.i),der(inductor2.i),ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.useHeatPort,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.useHeatPort,resistor2.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control,switch1.i,switch1.n.i,switch1.n.v,switch1.off,switch1.p.i,switch1.p.v,switch1.s,switch1.useHeatPort,switch1.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control,switch2.dVdt,switch2.i,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time