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"}) [: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.431/2.431, allocations: 235.1 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2027/2.633, allocations: 57.2 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/2.921, allocations: 54.86 MB / 354.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4022/3.324, allocations: 94.07 MB / 448.1 MB, free: 32.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/3.324, allocations: 80.83 kB / 448.2 MB, free: 32.43 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: 345 * Number of variables: 345 Notification: Performance of Generate backend data structure: time 0.1657/3.49, allocations: 39.59 MB / 487.8 MB, free: 27.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/3.49, allocations: 7.719 kB / 487.8 MB, free: 27.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01396/3.504, allocations: 1.131 MB / 489 MB, free: 26.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001802/3.506, allocations: 0.5683 MB / 489.5 MB, free: 26.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.244e-05/3.506, allocations: 46.3 kB / 489.6 MB, free: 26.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003533/3.506, allocations: 81.59 kB / 489.6 MB, free: 26.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004675/3.511, allocations: 1.417 MB / 491.1 MB, free: 26.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003972/3.515, allocations: 1.196 MB / 492.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.021e-05/3.515, allocations: 7.594 kB / 492.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/3.515, allocations: 0 / 492.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.324e-05/3.515, allocations: 31.28 kB / 492.3 MB, free: 26.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0156/3.531, allocations: 5.735 MB / 498 MB, free: 22.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002509/3.533, allocations: 0.9409 MB / 499 MB, free: 22.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/3.535, allocations: 0.5726 MB / 499.5 MB, free: 22.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002668/3.535, allocations: 120.6 kB / 499.7 MB, free: 22.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/3.535, allocations: 43.09 kB / 499.7 MB, free: 22.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=129): time 4.459e-06/3.535, allocations: 0 / 499.7 MB, free: 22.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.005384/3.541, allocations: 1.232 MB / 0.4892 GB, free: 22.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/3.541, allocations: 93.36 kB / 0.4893 GB, free: 22.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006068/3.541, allocations: 326.3 kB / 0.4896 GB, free: 22.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001917/3.542, allocations: 25.7 kB / 0.4896 GB, free: 22.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/3.542, allocations: 433.8 kB / 0.49 GB, free: 21.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004943/3.542, allocations: 410.7 kB / 0.4904 GB, free: 21.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/3.543, allocations: 0 / 0.4904 GB, free: 21.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/3.543, allocations: 378.9 kB / 0.4908 GB, free: 21.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001453/3.544, allocations: 418 kB / 0.4912 GB, free: 20.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/3.546, allocations: 0.6464 MB / 0.4918 GB, free: 20.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002312/3.548, allocations: 0.5157 MB / 0.4923 GB, free: 20.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.738e-05/3.548, allocations: 3.781 kB / 0.4923 GB, free: 20.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.005385/3.554, allocations: 1.468 MB / 0.4938 GB, free: 19.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/3.554, allocations: 3.906 kB / 0.4938 GB, free: 19.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/3.554, allocations: 15.81 kB / 0.4938 GB, free: 19.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002863/3.556, allocations: 0.4892 MB / 0.4943 GB, free: 19.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/3.559, allocations: 211.9 kB / 0.4945 GB, free: 19.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/3.57, allocations: 3.962 MB / 0.4983 GB, free: 16.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/3.572, allocations: 105.4 kB / 0.4984 GB, free: 16.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002841/3.572, allocations: 54.67 kB / 0.4985 GB, free: 16.29 MB / 378.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.0005551/3.573, allocations: 164.7 kB / 0.4986 GB, free: 16.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003257/3.573, allocations: 73.56 kB / 0.4987 GB, free: 16.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005624/3.579, allocations: 1.473 MB / 0.5001 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/3.579, allocations: 11.69 kB / 0.5002 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/3.579, allocations: 7.812 kB / 0.5002 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/3.579, allocations: 7.984 kB / 0.5002 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008852/3.588, allocations: 2.616 MB / 0.5027 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/3.588, allocations: 1.688 kB / 0.5027 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/3.59, allocations: 151.5 kB / 0.5029 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003496/3.593, allocations: 0.4911 MB / 0.5034 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000259/3.594, allocations: 12.28 kB / 0.5034 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/3.607, allocations: 3.965 MB / 0.5072 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.289e-05/3.607, allocations: 3.906 kB / 0.5072 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009905/3.617, allocations: 2.175 MB / 0.5094 GB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0103/3.627, allocations: 3.217 MB / 0.5125 GB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001319/3.629, allocations: 285.9 kB / 0.5128 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005581/3.629, allocations: 1.156 kB / 0.5128 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00265/3.632, allocations: 35.23 kB / 0.5128 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007143/3.633, allocations: 80.09 kB / 0.5129 GB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003198/3.633, allocations: 32.31 kB / 0.5129 GB, free: 6.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007607/3.634, allocations: 234 kB / 0.5131 GB, free: 6.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006085/3.64, allocations: 373 kB / 0.5135 GB, free: 6.766 MB / 378.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.0009114/3.641, allocations: 145.2 kB / 0.5136 GB, free: 6.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007331/3.648, allocations: 1.528 MB / 0.5151 GB, free: 5.863 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/3.648, allocations: 5.188 kB / 0.5151 GB, free: 5.859 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003903/3.652, allocations: 0.9706 MB / 0.5161 GB, free: 4.879 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/3.653, allocations: 49.62 kB / 0.5161 GB, free: 4.828 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008905/3.662, allocations: 2.054 MB / 0.5181 GB, free: 2.758 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/3.664, allocations: 1.145 MB / 0.5193 GB, free: 1.586 MB / 378.7 MB Notification: Performance of SimCode: time 1.543e-06/3.664, allocations: 0 / 0.5193 GB, free: 1.586 MB / 378.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