Running command: "" <> buildModelFMU(ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Electrical_QuasiStatic_SinglePhase_Ideal",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.199/2.199, allocations: 235 MB / 241.9 MB, free: 9.793 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1922/2.392, allocations: 57.21 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/2.684, allocations: 54.84 MB / 354 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/3.085, allocations: 94.05 MB / 448 MB, free: 32.31 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/3.085, allocations: 83.28 kB / 448.1 MB, free: 32.31 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.1912/3.276, allocations: 39.6 MB / 487.7 MB, free: 27.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/3.277, allocations: 7.719 kB / 487.7 MB, free: 27.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01986/3.296, allocations: 1.129 MB / 488.9 MB, free: 26.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002367/3.299, allocations: 0.5695 MB / 489.4 MB, free: 26.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/3.299, allocations: 42.75 kB / 489.5 MB, free: 26.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007189/3.3, allocations: 82.39 kB / 489.5 MB, free: 26.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006884/3.307, allocations: 1.415 MB / 491 MB, free: 26.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006256/3.313, allocations: 1.2 MB / 492.2 MB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.605e-05/3.313, allocations: 3.906 kB / 492.2 MB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002737/3.314, allocations: 0 / 492.2 MB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.632e-05/3.314, allocations: 38.58 kB / 492.2 MB, free: 25.95 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02106/3.335, allocations: 5.74 MB / 497.9 MB, free: 22.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003398/3.338, allocations: 0.9346 MB / 498.9 MB, free: 22.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/3.34, allocations: 0.5698 MB / 499.4 MB, free: 22.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003705/3.341, allocations: 108.8 kB / 499.6 MB, free: 22.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/3.341, allocations: 57.8 kB / 499.6 MB, free: 22.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=129): time 6.321e-06/3.341, allocations: 0 / 499.6 MB, free: 22.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=129): time 0.006426/3.347, allocations: 1.229 MB / 0.4891 GB, free: 22.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/3.347, allocations: 93.73 kB / 0.4892 GB, free: 22.06 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007999/3.348, allocations: 326.8 kB / 0.4895 GB, free: 21.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003418/3.349, allocations: 25.7 kB / 0.4895 GB, free: 21.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003569/3.349, allocations: 434.4 kB / 0.4899 GB, free: 21.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008108/3.35, allocations: 414.2 kB / 0.4903 GB, free: 21.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001877/3.35, allocations: 3.938 kB / 0.4903 GB, free: 21.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002389/3.35, allocations: 377.3 kB / 0.4907 GB, free: 20.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/3.352, allocations: 414.3 kB / 0.4911 GB, free: 20.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/3.355, allocations: 0.6438 MB / 0.4917 GB, free: 20.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/3.358, allocations: 0.5196 MB / 0.4922 GB, free: 20.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/3.358, allocations: 0 / 0.4922 GB, free: 20.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.007829/3.366, allocations: 1.467 MB / 0.4937 GB, free: 19.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/3.366, allocations: 8.438 kB / 0.4937 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.049e-05/3.366, allocations: 15.75 kB / 0.4937 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003851/3.37, allocations: 0.4938 MB / 0.4942 GB, free: 19.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002465/3.372, allocations: 212 kB / 0.4944 GB, free: 19.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/3.388, allocations: 3.956 MB / 0.4982 GB, free: 16.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/3.39, allocations: 101.9 kB / 0.4983 GB, free: 16.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004001/3.391, allocations: 51.06 kB / 0.4984 GB, free: 16.18 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.0006784/3.391, allocations: 174.7 kB / 0.4985 GB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/3.392, allocations: 74.12 kB / 0.4986 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007357/3.399, allocations: 1.472 MB / 0.5001 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-05/3.399, allocations: 15.34 kB / 0.5001 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/3.399, allocations: 3.906 kB / 0.5001 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.572e-05/3.399, allocations: 7.984 kB / 0.5001 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/3.411, allocations: 2.619 MB / 0.5026 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.048e-05/3.411, allocations: 1.531 kB / 0.5026 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/3.413, allocations: 151.7 kB / 0.5028 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004026/3.417, allocations: 0.4939 MB / 0.5033 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003658/3.418, allocations: 8.906 kB / 0.5033 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01616/3.434, allocations: 3.956 MB / 0.5071 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.32e-05/3.434, allocations: 9.016 kB / 0.5071 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009726/3.444, allocations: 2.176 MB / 0.5093 GB, free: 9.145 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01312/3.457, allocations: 3.216 MB / 0.5124 GB, free: 7.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/3.458, allocations: 282.2 kB / 0.5127 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004052/3.459, allocations: 6.328 kB / 0.5127 GB, free: 6.934 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002153/3.461, allocations: 34.05 kB / 0.5127 GB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004809/3.461, allocations: 79.88 kB / 0.5128 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002209/3.462, allocations: 32.09 kB / 0.5128 GB, free: 6.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006381/3.462, allocations: 238.8 kB / 0.5131 GB, free: 6.727 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004963/3.467, allocations: 372 kB / 0.5134 GB, free: 6.652 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.0008322/3.468, allocations: 145.3 kB / 0.5135 GB, free: 6.539 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008455/3.477, allocations: 1.524 MB / 0.515 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.083e-05/3.477, allocations: 1.188 kB / 0.515 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005172/3.482, allocations: 0.973 MB / 0.516 GB, free: 4.961 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/3.483, allocations: 61.5 kB / 0.516 GB, free: 4.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01176/3.495, allocations: 2.054 MB / 0.518 GB, free: 2.828 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/3.497, allocations: 1.141 MB / 0.5192 GB, free: 1.66 MB / 378.7 MB Notification: Performance of SimCode: time 3.106e-06/3.497, allocations: 0 / 0.5192 GB, free: 1.66 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Electrical.QuasiStatic.SinglePhase.Ideal_res.mat does not exist to compare? outputFormat=mat