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.849/2.849, allocations: 235.2 MB / 242.3 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.756e-05/2.766e-05, allocations: 4 kB / 299.6 MB, free: 200 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3994, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2/0.5995, allocations: 94.13 MB / 448.5 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003585/0.5999, allocations: 83.83 kB / 448.6 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5247/1.125, allocations: 38.36 MB / 487 MB, free: 89.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.125, allocations: 0 / 487 MB, free: 89.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.934e-05/1.125, allocations: 20.09 kB / 487 MB, free: 89.17 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.009591/1.134, allocations: 1.676 MB / 488.7 MB, free: 87.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/1.134, allocations: 8.031 kB / 488.7 MB, free: 87.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005722/1.135, allocations: 146.6 kB / 488.8 MB, free: 87.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01339/1.148, allocations: 1.048 MB / 489.9 MB, free: 86.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/1.15, allocations: 0.5764 MB / 490.5 MB, free: 86.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/1.15, allocations: 62.69 kB / 490.5 MB, free: 86.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003739/1.151, allocations: 76 kB / 490.6 MB, free: 85.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004472/1.155, allocations: 1.411 MB / 492 MB, free: 84.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003792/1.159, allocations: 1.201 MB / 493.2 MB, free: 83.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.941e-05/1.159, allocations: 3.984 kB / 493.2 MB, free: 83.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/1.159, allocations: 7.953 kB / 493.2 MB, free: 83.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.685e-05/1.159, allocations: 40 kB / 493.3 MB, free: 83.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01687/1.176, allocations: 5.233 MB / 498.5 MB, free: 77.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/1.181, allocations: 2.304 MB / 0.4891 GB, free: 75.29 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/1.183, allocations: 0.5946 MB / 0.4896 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002677/1.183, allocations: 106.2 kB / 0.4897 GB, free: 74.58 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/1.183, allocations: 47.88 kB / 0.4898 GB, free: 74.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=129): time 5.36e-06/1.183, allocations: 0 / 0.4898 GB, free: 74.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.004844/1.188, allocations: 1.318 MB / 0.4911 GB, free: 73.19 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/1.188, allocations: 90.42 kB / 0.4912 GB, free: 73.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/1.189, allocations: 329.1 kB / 0.4915 GB, free: 72.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/1.189, allocations: 25.7 kB / 0.4915 GB, free: 72.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/1.189, allocations: 467.3 kB / 0.4919 GB, free: 72.26 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00041/1.19, allocations: 409.7 kB / 0.4923 GB, free: 71.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/1.19, allocations: 4 kB / 0.4923 GB, free: 71.85 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/1.19, allocations: 374.8 kB / 0.4927 GB, free: 71.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/1.191, allocations: 398.6 kB / 0.4931 GB, free: 71.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/1.192, allocations: 0.6415 MB / 0.4937 GB, free: 70.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002803/1.195, allocations: 0.658 MB / 0.4943 GB, free: 69.69 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/1.195, allocations: 0 / 0.4943 GB, free: 69.69 MB / 394.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005938/1.201, allocations: 1.584 MB / 0.4959 GB, free: 68.09 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.096e-05/1.201, allocations: 11.95 kB / 0.4959 GB, free: 68.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/1.201, allocations: 8 kB / 0.4959 GB, free: 68.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002915/1.204, allocations: 0.4932 MB / 0.4964 GB, free: 67.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/1.206, allocations: 203.7 kB / 0.4966 GB, free: 67.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/1.217, allocations: 4.151 MB / 0.5006 GB, free: 63.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/1.219, allocations: 98.78 kB / 0.5007 GB, free: 63.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/1.219, allocations: 48.11 kB / 0.5008 GB, free: 62.98 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.0005343/1.22, allocations: 190 kB / 0.501 GB, free: 62.78 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/1.22, allocations: 71.16 kB / 0.501 GB, free: 62.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005761/1.226, allocations: 1.532 MB / 0.5025 GB, free: 61.17 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/1.226, allocations: 12 kB / 0.5025 GB, free: 61.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.226, allocations: 3.984 kB / 0.5025 GB, free: 61.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/1.226, allocations: 15.97 kB / 0.5026 GB, free: 61.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00848/1.234, allocations: 2.7 MB / 0.5052 GB, free: 58.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/1.234, allocations: 4.031 kB / 0.5052 GB, free: 58.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/1.236, allocations: 147.8 kB / 0.5053 GB, free: 58.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002966/1.239, allocations: 498.9 kB / 0.5058 GB, free: 57.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/1.239, allocations: 7.984 kB / 0.5058 GB, free: 57.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/1.25, allocations: 4.134 MB / 0.5099 GB, free: 53.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/1.25, allocations: 3.953 kB / 0.5099 GB, free: 53.51 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007121/1.257, allocations: 2.249 MB / 0.5121 GB, free: 51.23 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/1.258, allocations: 279.8 kB / 0.5123 GB, free: 50.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/1.259, allocations: 4 kB / 0.5123 GB, free: 50.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/1.26, allocations: 39.97 kB / 0.5124 GB, free: 50.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003978/1.26, allocations: 97.17 kB / 0.5125 GB, free: 50.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/1.26, allocations: 39.98 kB / 0.5125 GB, free: 50.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003943/1.261, allocations: 243 kB / 0.5127 GB, free: 50.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.261, allocations: 0 / 0.5127 GB, free: 50.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001973/1.263, allocations: 359 kB / 0.5131 GB, free: 50.17 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.008225/1.271, allocations: 2.975 MB / 0.516 GB, free: 47.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006153/1.277, allocations: 1.597 MB / 0.5175 GB, free: 45.55 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.277, allocations: 4.125 kB / 0.5175 GB, free: 45.55 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005332/1.283, allocations: 1.047 MB / 0.5186 GB, free: 44.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/1.285, allocations: 50.44 kB / 0.5186 GB, free: 44.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/1.299, allocations: 2.095 MB / 0.5207 GB, free: 42.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001187/1.3, allocations: 1.099 MB / 0.5217 GB, free: 41.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001719/1.302, allocations: 106.4 kB / 0.5218 GB, free: 41.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/1.303, allocations: 379.3 kB / 0.5222 GB, free: 40.72 MB / 394.7 MB Notification: Performance of SimCode: time 2.043e-06/1.303, allocations: 0 / 0.5222 GB, free: 40.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2/1.503, allocations: 22.21 MB / 0.5439 GB, free: 18.53 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003321/1.504, allocations: 154.9 kB / 0.544 GB, free: 18.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.293/5.797, allocations: 0 / 0.544 GB, free: 18.34 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