Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.773/1.773, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2552/2.029, allocations: 46.82 MB / 249.4 MB, free: 5.344 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09459/2.123, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3336/2.457, allocations: 97.03 MB / 390.9 MB, free: 3.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/2.457, allocations: 76.11 kB / 391 MB, free: 3.082 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.6624/3.12, allocations: 123.6 MB / 0.5026 GB, free: 78.48 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/3.12, allocations: 8.406 kB / 0.5026 GB, free: 78.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008991/3.121, allocations: 399.9 kB / 0.503 GB, free: 78.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007094/3.128, allocations: 2.375 MB / 0.5053 GB, free: 77.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/3.128, allocations: 13.66 kB / 0.5053 GB, free: 77.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00032/3.128, allocations: 36.94 kB / 0.5053 GB, free: 77.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002053/3.13, allocations: 0.6838 MB / 0.506 GB, free: 77.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001975/3.132, allocations: 0.7208 MB / 0.5067 GB, free: 77.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.066e-05/3.133, allocations: 6.484 kB / 0.5067 GB, free: 77.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/3.133, allocations: 0 / 0.5067 GB, free: 77.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/3.133, allocations: 26.58 kB / 0.5067 GB, free: 77.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009937/3.143, allocations: 3.094 MB / 0.5098 GB, free: 77.03 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009622/3.144, allocations: 361.1 kB / 0.5101 GB, free: 77.01 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001103/3.145, allocations: 0.53 MB / 0.5106 GB, free: 77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05422/3.199, allocations: 36.03 MB / 0.5458 GB, free: 50.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009568/3.2, allocations: 295.3 kB / 0.5461 GB, free: 50.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 4.729e-06/3.2, allocations: 2.812 kB / 0.5461 GB, free: 50.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.00213/3.202, allocations: 0.7693 MB / 0.5468 GB, free: 50.32 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/3.202, allocations: 275.8 kB / 0.5471 GB, free: 50.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005319/3.208, allocations: 2.314 MB / 0.5494 GB, free: 49.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/3.208, allocations: 28.55 kB / 0.5494 GB, free: 49.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006027/3.209, allocations: 0.6463 MB / 0.55 GB, free: 49.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/3.209, allocations: 164.5 kB / 0.5502 GB, free: 49.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.44e-05/3.209, allocations: 0 / 0.5502 GB, free: 49.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/3.209, allocations: 339 kB / 0.5505 GB, free: 49.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005544/3.21, allocations: 173 kB / 0.5507 GB, free: 49.04 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007698/3.21, allocations: 0.5782 MB / 0.5512 GB, free: 48.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007908/3.211, allocations: 264.1 kB / 0.5515 GB, free: 48.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/3.211, allocations: 4.781 kB / 0.5515 GB, free: 48.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002787/3.214, allocations: 1.04 MB / 0.5525 GB, free: 48.28 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/3.214, allocations: 3.094 kB / 0.5525 GB, free: 48.28 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/3.214, allocations: 80.28 kB / 0.5526 GB, free: 48.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.588e-05/3.214, allocations: 21.47 kB / 0.5526 GB, free: 48.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/3.216, allocations: 222.4 kB / 0.5528 GB, free: 48.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.575e-05/3.216, allocations: 26.53 kB / 0.5528 GB, free: 48.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003589/3.22, allocations: 115.6 kB / 0.553 GB, free: 48.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003749/3.22, allocations: 67.7 kB / 0.553 GB, free: 48.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004423/3.22, allocations: 138.1 kB / 0.5532 GB, free: 48.12 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/3.222, allocations: 386.6 kB / 0.5535 GB, free: 47.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/3.233, allocations: 1.379 MB / 0.5549 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/3.233, allocations: 4.812 kB / 0.5549 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/3.233, allocations: 0 / 0.5549 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/3.233, allocations: 7.688 kB / 0.5549 GB, free: 47.83 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006464/3.24, allocations: 2.001 MB / 0.5568 GB, free: 47.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001673/3.24, allocations: 71.48 kB / 0.5569 GB, free: 47.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/3.241, allocations: 107.4 kB / 0.557 GB, free: 47.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/3.241, allocations: 3.031 kB / 0.557 GB, free: 47.49 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/3.241, allocations: 31.84 kB / 0.557 GB, free: 47.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/3.241, allocations: 7.062 kB / 0.557 GB, free: 47.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/3.241, allocations: 3.906 kB / 0.557 GB, free: 47.48 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002606/3.244, allocations: 1.175 MB / 0.5582 GB, free: 47.04 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003333/3.247, allocations: 1.846 MB / 0.56 GB, free: 46.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/3.249, allocations: 0.544 MB / 0.5605 GB, free: 45.85 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007643/3.249, allocations: 17.56 kB / 0.5605 GB, free: 45.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/3.251, allocations: 42.67 kB / 0.5606 GB, free: 45.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/3.252, allocations: 62.08 kB / 0.5606 GB, free: 45.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/3.252, allocations: 36.56 kB / 0.5607 GB, free: 45.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.004573/3.256, allocations: 1.721 MB / 0.5624 GB, free: 45.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003667/3.26, allocations: 0.6303 MB / 0.563 GB, free: 45.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001975/3.262, allocations: 0.9274 MB / 0.5639 GB, free: 45.45 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00179/3.264, allocations: 0.6779 MB / 0.5645 GB, free: 45.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/3.264, allocations: 0 / 0.5645 GB, free: 45.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008215/3.265, allocations: 389.9 kB / 0.5649 GB, free: 45.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003429/3.268, allocations: 483.6 kB / 0.5654 GB, free: 45.15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/3.279, allocations: 3.145 MB / 0.5685 GB, free: 44.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002396/3.281, allocations: 1.9 MB / 0.5703 GB, free: 43.46 MB / 394.7 MB Notification: Performance of SimCode: time 2.374e-06/3.282, allocations: 0 / 0.5703 GB, free: 43.46 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat