Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingDelta",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(Modelica): time 1.818/1.818, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.261/2.079, allocations: 46.83 MB / 249.4 MB, free: 5.316 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09657/2.176, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3086/2.485, allocations: 84.22 MB / 378.1 MB, free: 6.535 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/2.485, allocations: 79.55 kB / 378.2 MB, free: 6.523 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1203 * Number of variables: 1203 Notification: Performance of Generate backend data structure: time 0.7173/3.202, allocations: 143.7 MB / 0.5097 GB, free: 79.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/3.202, allocations: 11.19 kB / 0.5097 GB, free: 79.67 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01969/3.222, allocations: 1.769 MB / 0.5114 GB, free: 79.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008664/3.231, allocations: 2.435 MB / 0.5138 GB, free: 79.01 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004928/3.231, allocations: 145.1 kB / 0.5139 GB, free: 79.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001999/3.233, allocations: 250.6 kB / 0.5142 GB, free: 79 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01871/3.252, allocations: 5.329 MB / 0.5194 GB, free: 78.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/3.276, allocations: 6.249 MB / 0.5255 GB, free: 78.47 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002579/3.276, allocations: 3.906 kB / 0.5255 GB, free: 78.47 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001754/3.278, allocations: 3.531 kB / 0.5255 GB, free: 78.47 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003937/3.278, allocations: 280.8 kB / 0.5258 GB, free: 78.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06311/3.342, allocations: 21.65 MB / 0.5469 GB, free: 72.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008837/3.351, allocations: 3.49 MB / 0.5503 GB, free: 71.02 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008497/3.359, allocations: 2.909 MB / 0.5532 GB, free: 69.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0354/3.395, allocations: 11.05 MB / 0.5639 GB, free: 63.33 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/3.395, allocations: 51.62 kB / 0.564 GB, free: 63.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=280): time 7.774e-06/3.395, allocations: 4.562 kB / 0.564 GB, free: 63.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=280): time 0.01463/3.409, allocations: 4.55 MB / 0.5684 GB, free: 59.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/3.409, allocations: 73.41 kB / 0.5685 GB, free: 59.44 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002911/3.412, allocations: 1.131 MB / 0.5696 GB, free: 58.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006468/3.413, allocations: 25.7 kB / 0.5696 GB, free: 58.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/3.414, allocations: 1.571 MB / 0.5712 GB, free: 57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001648/3.416, allocations: 0.9088 MB / 0.5721 GB, free: 56.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004712/3.416, allocations: 2.812 kB / 0.5721 GB, free: 56.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005293/3.417, allocations: 0.4888 MB / 0.5725 GB, free: 55.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005915/3.423, allocations: 2.05 MB / 0.5745 GB, free: 53.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006719/3.43, allocations: 2.821 MB / 0.5773 GB, free: 51.06 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00828/3.438, allocations: 2.612 MB / 0.5798 GB, free: 48.85 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.844e-05/3.438, allocations: 10.53 kB / 0.5799 GB, free: 48.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.01907/3.457, allocations: 5.786 MB / 0.5855 GB, free: 43.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/3.457, allocations: 8 kB / 0.5855 GB, free: 43.83 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.366e-05/3.457, allocations: 24 kB / 0.5855 GB, free: 43.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0032/3.46, allocations: 1.064 MB / 0.5866 GB, free: 42.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005807/3.466, allocations: 0.5882 MB / 0.5872 GB, free: 42.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006851/3.473, allocations: 4.074 MB / 0.5911 GB, free: 38.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004481/3.478, allocations: 314.1 kB / 0.5914 GB, free: 38.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/3.479, allocations: 143.6 kB / 0.5916 GB, free: 38.22 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: complexToPolar[3].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[1].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[3].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[2].u.re:VARIABLE() "Real part of complex number" type: Real [3] complexToPolar[2].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] complexToPolar[1].u.im:VARIABLE() "Imaginary part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerSensor.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] powerSensor.powerSensor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] powerSensor.powerSensor[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: 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.re:VARIABLE(flow=true unit = "A" ) "Real 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[2].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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (332): * Single equations (assignments): 280 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 49 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.001369/3.48, allocations: 231.6 kB / 0.5918 GB, free: 38.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007648/3.481, allocations: 169.8 kB / 0.592 GB, free: 37.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01543/3.496, allocations: 4.893 MB / 0.5967 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01311/3.51, allocations: 4.476 MB / 0.6011 GB, free: 29.72 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/3.51, allocations: 0 / 0.6011 GB, free: 29.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.418e-05/3.51, allocations: 7.688 kB / 0.6011 GB, free: 29.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02704/3.537, allocations: 9.164 MB / 0.6101 GB, free: 22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.633e-05/3.537, allocations: 4 kB / 0.6101 GB, free: 22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003637/3.541, allocations: 287.8 kB / 0.6103 GB, free: 21.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003357/3.544, allocations: 1.032 MB / 0.6113 GB, free: 20.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007453/3.545, allocations: 36.77 kB / 0.6114 GB, free: 20.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007287/3.552, allocations: 4.023 MB / 0.6153 GB, free: 17.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/3.552, allocations: 0.5625 kB / 0.6153 GB, free: 17.11 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02111/3.573, allocations: 7.572 MB / 0.6227 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.184/3.757, allocations: 10.75 MB / 0.6332 GB, free: 113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008419/3.758, allocations: 317.2 kB / 0.6335 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/3.759, allocations: 7.344 kB / 0.6335 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/3.762, allocations: 37.53 kB / 0.6335 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001165/3.763, allocations: 203 kB / 0.6337 GB, free: 112.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006134/3.764, allocations: 75.8 kB / 0.6338 GB, free: 112.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002092/3.766, allocations: 0.8008 MB / 0.6346 GB, free: 112.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006141/3.772, allocations: 0.9385 MB / 0.6355 GB, free: 112.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor31.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 49 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {6 9,6 9,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/3.774, allocations: 172.7 kB / 0.6357 GB, free: 112.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01364/3.787, allocations: 4.693 MB / 0.6403 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/3.787, allocations: 0 / 0.6403 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006992/3.794, allocations: 2.161 MB / 0.6424 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003601/3.798, allocations: 241.5 kB / 0.6426 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/3.825, allocations: 7.571 MB / 0.65 GB, free: 111.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00811/3.833, allocations: 3.2 MB / 0.6531 GB, free: 110.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.683e-06/3.833, allocations: 2.531 kB / 0.6531 GB, free: 110.8 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingDelta_res.mat does not exist to compare? outputFormat=mat