Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_QuasiStatic_MultiPhase_SerialConnection",fmuType="me",version="2.0",platforms={"static"}) [: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.308/2.308, allocations: 234.9 MB / 241.9 MB, free: 9.793 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1788/2.486, allocations: 57.21 MB / 299.1 MB, free: 480 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/2.756, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4354/3.192, allocations: 99.73 MB / 453.7 MB, free: 33.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004383/3.192, allocations: 87.19 kB / 453.8 MB, free: 33.96 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.922/5.114, allocations: 393.5 MB / 0.8274 GB, free: 37.04 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/5.114, allocations: 11.84 kB / 0.8274 GB, free: 37.04 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07472/5.189, allocations: 7.583 MB / 0.8348 GB, free: 36.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03286/5.221, allocations: 7.291 MB / 0.8419 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002056/5.224, allocations: 395.6 kB / 0.8423 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008729/5.232, allocations: 0.6525 MB / 0.843 GB, free: 35.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.07724/5.31, allocations: 17.8 MB / 0.8603 GB, free: 35.36 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08241/5.392, allocations: 19.19 MB / 0.8791 GB, free: 34.13 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000882/5.393, allocations: 21.2 kB / 0.8791 GB, free: 34.12 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006067/5.399, allocations: 7.594 kB / 0.8791 GB, free: 34.12 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00156/5.401, allocations: 0.8711 MB / 0.88 GB, free: 34.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.194/5.595, allocations: 59.77 MB / 0.9383 GB, free: 1.617 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07151/5.666, allocations: 14.51 MB / 0.9525 GB, free: 10.18 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03091/5.697, allocations: 10.84 MB / 0.9631 GB, free: 404 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002243/5.7, allocations: 368.5 kB / 0.9634 GB, free: 44 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/5.7, allocations: 141.7 kB / 0.9636 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1196): time 3.775e-05/5.7, allocations: 0 / 0.9636 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196): time 0.5292/6.229, allocations: 19.11 MB / 0.9822 GB, free: 96.32 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/6.229, allocations: 154.6 kB / 0.9824 GB, free: 96.25 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005248/6.235, allocations: 1.97 MB / 0.9843 GB, free: 96.06 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002915/6.238, allocations: 29.45 kB / 0.9843 GB, free: 96.03 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002168/6.24, allocations: 3.047 MB / 0.9873 GB, free: 95.47 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.007074/6.247, allocations: 3.756 MB / 0.991 GB, free: 92.91 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003341/6.25, allocations: 0 / 0.991 GB, free: 92.91 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.00156/6.252, allocations: 0.718 MB / 0.9917 GB, free: 92.59 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02605/6.278, allocations: 7.517 MB / 0.999 GB, free: 92.56 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03332/6.312, allocations: 8.386 MB / 1.007 GB, free: 92.05 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03627/6.348, allocations: 9.129 MB / 1.016 GB, free: 91.93 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/6.348, allocations: 7.547 kB / 1.016 GB, free: 91.93 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1268) (initialization): time 0.0686/6.417, allocations: 19.86 MB / 1.036 GB, free: 91.23 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/6.417, allocations: 2.812 kB / 1.036 GB, free: 91.23 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001196/6.417, allocations: 13.88 kB / 1.036 GB, free: 91.23 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01196/6.429, allocations: 3.757 MB / 1.039 GB, free: 91.09 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02424/6.453, allocations: 1.833 MB / 1.041 GB, free: 91.09 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03761/6.491, allocations: 21.8 MB / 1.062 GB, free: 78.64 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/6.503, allocations: 0.7889 MB / 1.063 GB, free: 78.25 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003879/6.507, allocations: 338.6 kB / 1.063 GB, free: 78.25 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.00702/6.514, allocations: 400.2 kB / 1.064 GB, free: 78.12 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00451/6.518, allocations: 0.5182 MB / 1.064 GB, free: 77.84 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08433/6.603, allocations: 21.47 MB / 1.085 GB, free: 75.71 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007975/6.604, allocations: 292.9 kB / 1.086 GB, free: 75.57 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.186e-05/6.604, allocations: 7.312 kB / 1.086 GB, free: 75.56 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003378/6.604, allocations: 50.2 kB / 1.086 GB, free: 75.56 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1332/6.737, allocations: 37.64 MB / 1.122 GB, free: 60.85 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001771/6.738, allocations: 0 / 1.122 GB, free: 60.85 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01923/6.757, allocations: 1.771 MB / 1.124 GB, free: 60.8 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01205/6.769, allocations: 3.73 MB / 1.128 GB, free: 59.55 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003384/6.772, allocations: 120.8 kB / 1.128 GB, free: 59.51 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03048/6.803, allocations: 21.8 MB / 1.149 GB, free: 40.48 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/6.803, allocations: 0 / 1.149 GB, free: 40.48 MB / 0.4949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.09594/6.899, allocations: 32.5 MB / 1.181 GB, free: 12.08 MB / 0.4949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.3887/7.288, allocations: 46.6 MB / 1.226 GB, free: 92.25 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/7.29, allocations: 0.7677 MB / 1.227 GB, free: 92.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005422/7.296, allocations: 0 / 1.227 GB, free: 92.16 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01514/7.311, allocations: 388 kB / 1.227 GB, free: 92.16 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006848/7.318, allocations: 0.7911 MB / 1.228 GB, free: 92.15 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005164/7.323, allocations: 322.8 kB / 1.229 GB, free: 92.15 MB / 0.4949 GB Notification: Performance of sort global known variables: time 0.006246/7.329, allocations: 1.515 MB / 1.23 GB, free: 92 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01745/7.347, allocations: 2.844 MB / 1.233 GB, free: 92 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.00383/7.351, allocations: 235.9 kB / 1.233 GB, free: 91.92 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.05793/7.409, allocations: 18.52 MB / 1.251 GB, free: 91.09 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-05/7.409, allocations: 3.5 kB / 1.251 GB, free: 91.09 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.03496/7.444, allocations: 10.19 MB / 1.261 GB, free: 90.41 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/7.455, allocations: 0.712 MB / 1.262 GB, free: 90.4 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09637/7.552, allocations: 25 MB / 1.286 GB, free: 87.52 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02997/7.582, allocations: 8.753 MB / 1.295 GB, free: 85.57 MB / 0.4949 GB Notification: Performance of SimCode: time 2.194e-06/7.582, allocations: 2.406 kB / 1.295 GB, free: 85.57 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Electrical.QuasiStatic.MultiPhase.SerialConnection_res.mat does not exist to compare? outputFormat=mat