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.667/2.667, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.147e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.365, allocations: 44.49 MB / 294.3 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1924/0.5575, allocations: 73.73 MB / 368 MB, free: 8.074 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004136/0.558, allocations: 67.95 kB / 368.1 MB, free: 8.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04675/0.6048, allocations: 6.002 MB / 374.1 MB, free: 1.977 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.6048, allocations: 0 / 374.1 MB, free: 1.977 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.019e-05/0.6049, allocations: 8 kB / 374.1 MB, free: 1.969 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.002516/0.6074, allocations: 0.5819 MB / 374.7 MB, free: 1.336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.778e-05/0.6076, allocations: 12.03 kB / 374.7 MB, free: 1.324 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/0.6079, allocations: 39.92 kB / 374.7 MB, free: 1.285 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009483/0.6089, allocations: 267.5 kB / 375 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.6091, allocations: 72.12 kB / 375.1 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.6092, allocations: 20.22 kB / 375.1 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001228/0.6105, allocations: 181.5 kB / 375.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.6119, allocations: 283.1 kB / 375.5 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.6119, allocations: 0 / 375.5 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.6121, allocations: 0 / 375.5 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.797e-05/0.6121, allocations: 8 kB / 375.5 MB, free: 408 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005208/0.6174, allocations: 1.313 MB / 376.9 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008473/0.6183, allocations: 158.5 kB / 377 MB, free: 14.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004288/0.6188, allocations: 76.8 kB / 377.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.695e-05/0.6188, allocations: 3.984 kB / 377.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007045/0.6196, allocations: 139.4 kB / 377.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 8.636e-06/0.6196, allocations: 0 / 377.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.001622/0.6213, allocations: 215.3 kB / 377.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.6215, allocations: 110.8 kB / 377.5 MB, free: 14.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006655/0.6222, allocations: 188.9 kB / 377.7 MB, free: 14.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.6223, allocations: 25.7 kB / 377.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000408/0.6227, allocations: 212 kB / 378 MB, free: 13.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.623, allocations: 67 kB / 378 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.623, allocations: 0 / 378 MB, free: 13.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003185/0.6234, allocations: 342.8 kB / 378.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.6238, allocations: 60 kB / 378.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005707/0.6244, allocations: 146.5 kB / 378.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004009/0.6249, allocations: 73.17 kB / 378.6 MB, free: 13.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.6249, allocations: 0 / 378.6 MB, free: 13.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001707/0.6266, allocations: 284.6 kB / 378.9 MB, free: 12.81 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.6267, allocations: 8 kB / 378.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.6267, allocations: 0 / 378.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005981/0.6274, allocations: 57.09 kB / 379 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008294/0.6282, allocations: 63.91 kB / 379 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00316/0.6314, allocations: 1.377 MB / 380.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/0.6324, allocations: 39.89 kB / 380.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.229e-05/0.6325, allocations: 12 kB / 380.5 MB, free: 11.14 MB / 330.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.0003427/0.6328, allocations: 119 kB / 380.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00141/0.6343, allocations: 214.1 kB / 380.8 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.6344, allocations: 27.67 kB / 380.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.6346, allocations: 25.97 kB / 380.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.6346, allocations: 3.984 kB / 380.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.6347, allocations: 0 / 380.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.6347, allocations: 4 kB / 380.8 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008762/0.6356, allocations: 281.9 kB / 381.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.6356, allocations: 3.984 kB / 381.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/0.6364, allocations: 31.98 kB / 381.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005887/0.6371, allocations: 60.81 kB / 381.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.6371, allocations: 3.953 kB / 381.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002979/0.6402, allocations: 1.279 MB / 382.5 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-05/0.6402, allocations: 4.031 kB / 382.5 MB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001935/0.6422, allocations: 305.7 kB / 382.8 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.6426, allocations: 108.9 kB / 382.9 MB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.6427, allocations: 11.89 kB / 382.9 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.6433, allocations: 20.05 kB / 382.9 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.6436, allocations: 31.89 kB / 383 MB, free: 8.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.151e-05/0.6437, allocations: 7.984 kB / 383 MB, free: 8.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003726/0.6441, allocations: 152.5 kB / 383.1 MB, free: 8.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.6441, allocations: 0 / 383.1 MB, free: 8.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001194/0.6453, allocations: 87.69 kB / 383.2 MB, free: 8.172 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: 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.002607/0.6479, allocations: 0.8543 MB / 384.1 MB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.6494, allocations: 282 kB / 384.3 MB, free: 7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.6495, allocations: 0 / 384.3 MB, free: 7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007819/0.6503, allocations: 181.6 kB / 384.5 MB, free: 6.812 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000623/0.651, allocations: 32.31 kB / 384.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0046/0.6556, allocations: 0.5304 MB / 385.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007536/0.6564, allocations: 0.775 MB / 385.9 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004002/0.6569, allocations: 22.06 kB / 385.9 MB, free: 5.395 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000357/0.6572, allocations: 91.41 kB / 386 MB, free: 5.305 MB / 330.7 MB Notification: Performance of SimCode: time 2.044e-06/0.6573, allocations: 4 kB / 386 MB, free: 5.301 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1088/0.7661, allocations: 4.419 MB / 390.4 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003309/0.7665, allocations: 153.7 kB / 390.5 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.01/3.777, allocations: 0 / 390.5 MB, free: 0.7148 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat does not exist to compare? outputFormat=mat