Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.573/2.573, allocations: 235.2 MB / 242.3 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.835e-05/2.846e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.4029, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1904/0.5934, allocations: 94.13 MB / 448.6 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003695/0.5938, allocations: 79.95 kB / 448.7 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4741/1.068, allocations: 38.17 MB / 486.8 MB, free: 89.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.068, allocations: 4 kB / 486.8 MB, free: 89.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.991e-05/1.068, allocations: 21.25 kB / 486.8 MB, free: 89.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.008172/1.076, allocations: 1.679 MB / 488.5 MB, free: 88.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.076, allocations: 8.031 kB / 488.5 MB, free: 88.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/1.088, allocations: 1.056 MB / 489.6 MB, free: 87.08 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001574/1.089, allocations: 0.5727 MB / 490.2 MB, free: 86.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-05/1.09, allocations: 44 kB / 490.2 MB, free: 86.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003332/1.09, allocations: 76 kB / 490.3 MB, free: 86.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004219/1.094, allocations: 1.415 MB / 491.7 MB, free: 84.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00397/1.098, allocations: 1.193 MB / 492.9 MB, free: 83.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.865e-05/1.098, allocations: 7.984 kB / 492.9 MB, free: 83.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/1.099, allocations: 7.953 kB / 492.9 MB, free: 83.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.176e-05/1.099, allocations: 36 kB / 492.9 MB, free: 83.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01315/1.112, allocations: 5.233 MB / 498.2 MB, free: 78.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003305/1.115, allocations: 2.3 MB / 0.4887 GB, free: 75.67 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/1.117, allocations: 0.5869 MB / 0.4893 GB, free: 75.08 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002914/1.117, allocations: 109.6 kB / 0.4894 GB, free: 74.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/1.117, allocations: 51.81 kB / 0.4895 GB, free: 74.9 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 5.621e-06/1.117, allocations: 0 / 0.4895 GB, free: 74.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.004538/1.122, allocations: 1.314 MB / 0.4908 GB, free: 73.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/1.122, allocations: 98.39 kB / 0.4908 GB, free: 73.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/1.122, allocations: 329.1 kB / 0.4912 GB, free: 73.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001692/1.122, allocations: 25.7 kB / 0.4912 GB, free: 73.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/1.123, allocations: 466.4 kB / 0.4916 GB, free: 72.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/1.123, allocations: 413.7 kB / 0.492 GB, free: 72.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/1.123, allocations: 3.938 kB / 0.492 GB, free: 72.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/1.123, allocations: 374.8 kB / 0.4924 GB, free: 71.85 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/1.124, allocations: 398.6 kB / 0.4928 GB, free: 71.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001236/1.126, allocations: 0.6419 MB / 0.4934 GB, free: 70.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002737/1.128, allocations: 0.6542 MB / 0.494 GB, free: 70.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.79e-05/1.129, allocations: 7.953 kB / 0.494 GB, free: 70.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005617/1.134, allocations: 1.58 MB / 0.4956 GB, free: 68.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/1.134, allocations: 11.95 kB / 0.4956 GB, free: 68.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.135e-05/1.134, allocations: 8.469 kB / 0.4956 GB, free: 68.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.137, allocations: 0.4928 MB / 0.4961 GB, free: 67.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/1.139, allocations: 207.7 kB / 0.4963 GB, free: 67.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009799/1.149, allocations: 4.143 MB / 0.5003 GB, free: 63.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001451/1.15, allocations: 98.78 kB / 0.5004 GB, free: 63.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/1.15, allocations: 48 kB / 0.5005 GB, free: 63.36 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real impedance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real admittance.i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real variableAdmittance.v.re:VARIABLE(unit = "V" ) "Imaginary part of complex voltage" type: Real idealIntermediateSwitch.s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealOpeningSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealCommutingSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealIntermediateSwitch.s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real idealIntermediateSwitch.s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealOpeningSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealCommutingSwitch.s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real idealClosingSwitch.s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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 {20 30} Notification: Performance of prepare postOptimizeDAE: time 0.0004756/1.151, allocations: 193.8 kB / 0.5007 GB, free: 63.16 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004197/1.155, allocations: 1.31 MB / 0.5019 GB, free: 61.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/1.155, allocations: 83 kB / 0.502 GB, free: 61.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004902/1.16, allocations: 1.532 MB / 0.5035 GB, free: 60.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/1.16, allocations: 12 kB / 0.5035 GB, free: 60.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.16, allocations: 3.953 kB / 0.5035 GB, free: 60.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/1.16, allocations: 7.984 kB / 0.5035 GB, free: 60.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007359/1.168, allocations: 2.714 MB / 0.5062 GB, free: 57.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.168, allocations: 4 kB / 0.5062 GB, free: 57.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/1.169, allocations: 147.8 kB / 0.5063 GB, free: 57.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002487/1.171, allocations: 491.5 kB / 0.5068 GB, free: 56.81 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/1.172, allocations: 11.98 kB / 0.5068 GB, free: 56.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009674/1.181, allocations: 4.138 MB / 0.5108 GB, free: 52.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/1.181, allocations: 4 kB / 0.5108 GB, free: 52.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006252/1.188, allocations: 2.253 MB / 0.513 GB, free: 50.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006742/1.188, allocations: 279.8 kB / 0.5133 GB, free: 49.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/1.189, allocations: 4 kB / 0.5133 GB, free: 49.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/1.19, allocations: 35.91 kB / 0.5134 GB, free: 49.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003773/1.19, allocations: 101.2 kB / 0.5135 GB, free: 49.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/1.19, allocations: 32 kB / 0.5135 GB, free: 49.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003594/1.191, allocations: 243 kB / 0.5137 GB, free: 49.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.191, allocations: 0 / 0.5137 GB, free: 49.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00181/1.193, allocations: 367 kB / 0.5141 GB, free: 49.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (idealClosingSwitch.pin_p.reference.gamma) * Number of discrete variables: 4 (booleanStep1.y,booleanStep2.y,booleanStep3.y,booleanStep4.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 85 * 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 {20 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.006548/1.199, allocations: 2.971 MB / 0.517 GB, free: 46.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004708/1.204, allocations: 1.6 MB / 0.5185 GB, free: 44.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.204, allocations: 0 / 0.5185 GB, free: 44.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003462/1.207, allocations: 1.055 MB / 0.5196 GB, free: 43.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009062/1.208, allocations: 53.84 kB / 0.5196 GB, free: 43.47 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007862/1.216, allocations: 2.072 MB / 0.5216 GB, free: 41.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007327/1.217, allocations: 1.103 MB / 0.5227 GB, free: 40.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001063/1.218, allocations: 106.4 kB / 0.5228 GB, free: 40.13 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007644/1.219, allocations: 375.3 kB / 0.5232 GB, free: 39.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/1.219, allocations: 4 kB / 0.5232 GB, free: 39.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1112/1.33, allocations: 21.82 MB / 0.5445 GB, free: 17.98 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002358/1.33, allocations: 150.9 kB / 0.5446 GB, free: 17.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.572/4.903, allocations: 3.938 kB / 0.5446 GB, free: 17.79 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat