Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.645/2.645, allocations: 195 MB / 202.9 MB, free: 6.711 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.269e-05/3.29e-05, allocations: 4.125 kB / 249.8 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4951/0.6016, allocations: 73.73 MB / 368 MB, free: 6.93 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.602, allocations: 71.98 kB / 368.1 MB, free: 6.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03267/0.6347, allocations: 6.035 MB / 374.1 MB, free: 22.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6347, allocations: 3.875 kB / 374.1 MB, free: 22.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.6348, allocations: 3.875 kB / 374.1 MB, free: 22.14 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00154/0.6363, allocations: 0.5839 MB / 374.7 MB, free: 21.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.6364, allocations: 7.781 kB / 374.7 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001181/0.6365, allocations: 57.48 kB / 374.8 MB, free: 21.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.6367, allocations: 39.27 kB / 374.8 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.6372, allocations: 264 kB / 375.1 MB, free: 21.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-05/0.6373, allocations: 74.55 kB / 375.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.582e-05/0.6374, allocations: 22.62 kB / 375.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006589/0.638, allocations: 178.5 kB / 375.3 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.6388, allocations: 276.5 kB / 375.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.6389, allocations: 0 / 375.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.745e-05/0.6389, allocations: 3.906 kB / 375.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.639, allocations: 11.77 kB / 375.6 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003244/0.6422, allocations: 1.319 MB / 376.9 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004504/0.6427, allocations: 142.4 kB / 377.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.6429, allocations: 71.86 kB / 377.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.643, allocations: 7.875 kB / 377.1 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003663/0.6434, allocations: 144 kB / 377.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 4.038e-06/0.6434, allocations: 224 / 377.3 MB, free: 20.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009866/0.6444, allocations: 205.2 kB / 377.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.6445, allocations: 118.2 kB / 377.6 MB, free: 20.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.6448, allocations: 191.5 kB / 377.8 MB, free: 20.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.552e-05/0.6449, allocations: 33.48 kB / 377.8 MB, free: 20.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.6451, allocations: 204.5 kB / 378 MB, free: 19.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.868e-05/0.6452, allocations: 71.02 kB / 378.1 MB, free: 19.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.6452, allocations: 0 / 378.1 MB, free: 19.87 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.6454, allocations: 335.3 kB / 378.4 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002058/0.6456, allocations: 59.12 kB / 378.5 MB, free: 19.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002631/0.6459, allocations: 142.4 kB / 378.6 MB, free: 19.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.6462, allocations: 86.27 kB / 378.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.6462, allocations: 0 / 378.7 MB, free: 19.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001103/0.6473, allocations: 271.1 kB / 379 MB, free: 19.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.6474, allocations: 11.5 kB / 379 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.6474, allocations: 3.844 kB / 379 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004296/0.6478, allocations: 66.17 kB / 379 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.6484, allocations: 58.69 kB / 379.1 MB, free: 19.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/0.6505, allocations: 1.372 MB / 380.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005819/0.6511, allocations: 36.48 kB / 380.5 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.6512, allocations: 19.31 kB / 380.5 MB, free: 18.04 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: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.0002351/0.6514, allocations: 116.6 kB / 380.6 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.074e-05/0.6515, allocations: 26.53 kB / 380.7 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.838e-05/0.6516, allocations: 23.88 kB / 380.7 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.6517, allocations: 7.859 kB / 380.7 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.6517, allocations: 3.094 kB / 380.7 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.6517, allocations: 0 / 380.7 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.6522, allocations: 284 kB / 381 MB, free: 17.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.6522, allocations: 4 kB / 381 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.6527, allocations: 36.22 kB / 381 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003556/0.6531, allocations: 51.66 kB / 381.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.227e-05/0.6531, allocations: 3.844 kB / 381.1 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.655, allocations: 1.283 MB / 382.4 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.655, allocations: 12.08 kB / 382.4 MB, free: 16.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00112/0.6561, allocations: 312.5 kB / 382.7 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001988/0.6564, allocations: 110.6 kB / 382.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.922e-05/0.6565, allocations: 3.938 kB / 382.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.6569, allocations: 22.23 kB / 382.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.657, allocations: 33.75 kB / 382.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.6571, allocations: 13.53 kB / 382.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002228/0.6573, allocations: 148.8 kB / 383 MB, free: 16.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6573, allocations: 0 / 383 MB, free: 16.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007089/0.658, allocations: 85.47 kB / 383.1 MB, free: 16.2 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001586/0.6597, allocations: 0.8581 MB / 383.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009118/0.6606, allocations: 276.8 kB / 384.2 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.6606, allocations: 0 / 384.2 MB, free: 15.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007074/0.6614, allocations: 180 kB / 384.4 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006703/0.6621, allocations: 25.42 kB / 384.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004413/0.6665, allocations: 0.5391 MB / 384.9 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007123/0.6673, allocations: 0.7806 MB / 385.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003997/0.6677, allocations: 17.83 kB / 385.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.6681, allocations: 90.72 kB / 385.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.893e-06/0.6681, allocations: 0 / 385.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/0.7773, allocations: 4.516 MB / 390.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.00031/0.7776, allocations: 169.5 kB / 390.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.637/4.415, allocations: 0 / 390.5 MB, free: 11.91 MB / 314.7 MB "Warning: Resultfile and Reference have different end time points! Reffile[48038]=6.000000 File[102]=3.030303 " Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:_D_whenCondition1,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),ground.p.i,ground.p.v,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,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control.i,switch1.control.v,switch1.i,switch1.level,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.i,switch2.control.v,switch2.dVdt,switch2.i,switch2.level,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time