Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 2.262/2.262, allocations: 235.1 MB / 242 MB, free: 9.758 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1409/2.403, allocations: 57.2 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/2.664, allocations: 54.85 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/3.085, allocations: 99.74 MB / 453.8 MB, free: 33.99 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/3.086, allocations: 81.94 kB / 453.9 MB, free: 33.99 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3353 * Number of variables: 3353 Notification: Performance of Generate backend data structure: time 1.918/5.003, allocations: 393.5 MB / 0.8275 GB, free: 37.05 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/5.004, allocations: 10.47 kB / 0.8275 GB, free: 37.05 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08084/5.084, allocations: 7.588 MB / 0.8349 GB, free: 36.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/5.112, allocations: 7.28 MB / 0.842 GB, free: 35.43 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001282/5.113, allocations: 393.9 kB / 0.8424 GB, free: 35.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006438/5.12, allocations: 0.6638 MB / 0.8431 GB, free: 35.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06068/5.18, allocations: 17.8 MB / 0.8604 GB, free: 35.38 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07179/5.252, allocations: 19.19 MB / 0.8792 GB, free: 34.15 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008192/5.253, allocations: 21.86 kB / 0.8792 GB, free: 34.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005507/5.259, allocations: 10.84 kB / 0.8792 GB, free: 34.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001185/5.26, allocations: 0.868 MB / 0.88 GB, free: 34.11 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2106/5.47, allocations: 59.78 MB / 0.9384 GB, free: 1.449 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07284/5.543, allocations: 14.49 MB / 0.9526 GB, free: 9.953 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.04354/5.587, allocations: 10.83 MB / 0.9632 GB, free: 184 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002639/5.59, allocations: 377.2 kB / 0.9635 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/5.59, allocations: 146.2 kB / 0.9637 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1196): time 3.248e-05/5.59, allocations: 0 / 0.9637 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196): time 0.5954/6.186, allocations: 19.1 MB / 0.9823 GB, free: 96.43 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/6.186, allocations: 155.5 kB / 0.9825 GB, free: 96.36 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007815/6.194, allocations: 1.974 MB / 0.9844 GB, free: 96.17 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.003683/6.197, allocations: 29.42 kB / 0.9844 GB, free: 96.14 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003042/6.2, allocations: 3.052 MB / 0.9874 GB, free: 95.58 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.009227/6.21, allocations: 3.758 MB / 0.9911 GB, free: 93.02 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004236/6.214, allocations: 3.812 kB / 0.9911 GB, free: 93.02 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.002136/6.216, allocations: 0.7129 MB / 0.9918 GB, free: 92.7 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02982/6.246, allocations: 7.52 MB / 0.9991 GB, free: 92.67 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02752/6.274, allocations: 8.386 MB / 1.007 GB, free: 92.16 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03141/6.305, allocations: 9.125 MB / 1.016 GB, free: 92.04 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/6.305, allocations: 3.375 kB / 1.016 GB, free: 92.04 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.07432/6.38, allocations: 19.85 MB / 1.036 GB, free: 91.35 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/6.38, allocations: 6.688 kB / 1.036 GB, free: 91.35 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001261/6.38, allocations: 15.12 kB / 1.036 GB, free: 91.35 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01271/6.393, allocations: 3.758 MB / 1.039 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02215/6.415, allocations: 1.839 MB / 1.041 GB, free: 91.19 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0334/6.448, allocations: 21.79 MB / 1.062 GB, free: 78.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01264/6.461, allocations: 0.7868 MB / 1.063 GB, free: 78.36 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004/6.465, allocations: 346.8 kB / 1.063 GB, free: 78.36 MB / 0.4949 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: conductor.conductor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] conductor.conductor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] conductor.conductor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] conductor.conductor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] conductor.conductor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] conductor.conductor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: impedance.impedance[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] impedance.impedance[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] impedance.impedance[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] impedance.impedance[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] impedance.impedance[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] impedance.impedance[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: admittance.admittance[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] admittance.admittance[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] admittance.admittance[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] admittance.admittance[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] admittance.admittance[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] admittance.admittance[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableResistor.variableResistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableResistor.variableResistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableResistor.variableResistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableResistor.variableResistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableResistor.variableResistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableResistor.variableResistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableConductor.variableResistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableConductor.variableResistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableConductor.variableResistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableConductor.variableResistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableConductor.variableResistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableConductor.variableResistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableCapacitor.variableCapacitor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableCapacitor.variableCapacitor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableCapacitor.variableCapacitor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableCapacitor.variableCapacitor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableCapacitor.variableCapacitor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableCapacitor.variableCapacitor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableInductor.variableInductor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableInductor.variableInductor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableInductor.variableInductor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableInductor.variableInductor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableInductor.variableInductor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableInductor.variableInductor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableImpedance.variableImpedance[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableImpedance.variableImpedance[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableImpedance.variableImpedance[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableImpedance.variableImpedance[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableImpedance.variableImpedance[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableImpedance.variableImpedance[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: variableAdmittance.variableImpedance[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableAdmittance.variableImpedance[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableAdmittance.variableImpedance[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableAdmittance.variableImpedance[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] variableAdmittance.variableImpedance[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] variableAdmittance.variableImpedance[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: star.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] star.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] star.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (933): * Single equations (assignments): 818 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.006902/6.472, allocations: 395.6 kB / 1.064 GB, free: 78.22 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004386/6.476, allocations: 0.5135 MB / 1.064 GB, free: 77.95 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08181/6.558, allocations: 21.49 MB / 1.085 GB, free: 75.67 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005053/6.559, allocations: 297.8 kB / 1.086 GB, free: 75.52 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.539e-05/6.559, allocations: 0 / 1.086 GB, free: 75.52 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002679/6.559, allocations: 51.83 kB / 1.086 GB, free: 75.52 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1295/6.689, allocations: 37.63 MB / 1.122 GB, free: 60.81 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001517/6.689, allocations: 0 / 1.122 GB, free: 60.81 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02165/6.711, allocations: 1.772 MB / 1.124 GB, free: 60.76 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01336/6.724, allocations: 3.732 MB / 1.128 GB, free: 59.5 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003635/6.728, allocations: 130.9 kB / 1.128 GB, free: 59.46 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03429/6.762, allocations: 21.78 MB / 1.149 GB, free: 40.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.038e-05/6.762, allocations: 0 / 1.149 GB, free: 40.2 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1022/6.864, allocations: 32.5 MB / 1.181 GB, free: 11.79 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.437/7.301, allocations: 46.71 MB / 1.227 GB, free: 92.55 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002357/7.304, allocations: 0.7615 MB / 1.227 GB, free: 92.45 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004813/7.309, allocations: 2.094 kB / 1.227 GB, free: 92.45 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01282/7.322, allocations: 387.1 kB / 1.228 GB, free: 92.45 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005325/7.327, allocations: 0.7875 MB / 1.228 GB, free: 92.44 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003663/7.331, allocations: 323.2 kB / 1.229 GB, free: 92.44 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.004174/7.335, allocations: 1.514 MB / 1.23 GB, free: 92.3 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01771/7.353, allocations: 2.837 MB / 1.233 GB, free: 92.3 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.plug_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (921): * Single equations (assignments): 806 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 99 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 10 {6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.004394/7.357, allocations: 247.4 kB / 1.233 GB, free: 92.21 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.05669/7.414, allocations: 18.52 MB / 1.251 GB, free: 91.39 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/7.414, allocations: 3.875 kB / 1.251 GB, free: 91.39 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.03288/7.447, allocations: 10.2 MB / 1.261 GB, free: 90.71 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01233/7.459, allocations: 0.7049 MB / 1.262 GB, free: 90.69 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09862/7.558, allocations: 25.01 MB / 1.286 GB, free: 87.81 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0315/7.589, allocations: 8.754 MB / 1.295 GB, free: 85.78 MB / 0.4949 GB Notification: Performance of SimCode: time 1.924e-06/7.589, allocations: 0 / 1.295 GB, free: 85.78 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat