Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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(Modelica): time 1.715/1.715, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.238/1.953, allocations: 41.1 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/2.064, allocations: 38.76 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3672/2.431, allocations: 93.52 MB / 351.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/2.431, allocations: 73.66 kB / 351.6 MB, free: 10.79 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.6614/3.093, allocations: 125.7 MB / 477.3 MB, free: 70.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/3.093, allocations: 9.312 kB / 477.3 MB, free: 70.98 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001935/3.095, allocations: 400.8 kB / 477.7 MB, free: 70.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/3.106, allocations: 2.37 MB / 480.1 MB, free: 68.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.732e-05/3.106, allocations: 16 kB / 480.1 MB, free: 68.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002999/3.106, allocations: 39.91 kB / 480.1 MB, free: 68.87 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002701/3.109, allocations: 0.6818 MB / 480.8 MB, free: 68.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002491/3.112, allocations: 0.7149 MB / 481.5 MB, free: 67.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/3.112, allocations: 0 / 481.5 MB, free: 67.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/3.112, allocations: 12 kB / 481.5 MB, free: 67.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.245e-05/3.112, allocations: 19.98 kB / 481.5 MB, free: 67.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/3.126, allocations: 3.098 MB / 484.6 MB, free: 64.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/3.127, allocations: 351 kB / 485 MB, free: 63.92 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/3.129, allocations: 0.5453 MB / 485.5 MB, free: 63.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07549/3.204, allocations: 36.03 MB / 0.5093 GB, free: 22.26 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009868/3.205, allocations: 293.6 kB / 0.5096 GB, free: 21.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 5.771e-06/3.205, allocations: 3.938 kB / 0.5096 GB, free: 21.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.003302/3.209, allocations: 0.7704 MB / 0.5104 GB, free: 21.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/3.209, allocations: 272.8 kB / 0.5106 GB, free: 20.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008731/3.218, allocations: 2.314 MB / 0.5129 GB, free: 18.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002636/3.218, allocations: 33.64 kB / 0.5129 GB, free: 18.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/3.219, allocations: 0.6459 MB / 0.5136 GB, free: 17.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004643/3.22, allocations: 161.7 kB / 0.5137 GB, free: 17.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/3.22, allocations: 0 / 0.5137 GB, free: 17.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/3.22, allocations: 341.9 kB / 0.514 GB, free: 17.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000816/3.221, allocations: 174 kB / 0.5142 GB, free: 17.17 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/3.222, allocations: 0.576 MB / 0.5148 GB, free: 16.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/3.223, allocations: 268.5 kB / 0.515 GB, free: 16.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/3.223, allocations: 4 kB / 0.515 GB, free: 16.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003912/3.227, allocations: 1.03 MB / 0.516 GB, free: 15.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/3.227, allocations: 12 kB / 0.516 GB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002756/3.227, allocations: 83.98 kB / 0.5161 GB, free: 15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.452e-05/3.227, allocations: 16 kB / 0.5161 GB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002045/3.23, allocations: 223.6 kB / 0.5164 GB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.735e-05/3.23, allocations: 27.86 kB / 0.5164 GB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003912/3.234, allocations: 115 kB / 0.5165 GB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002709/3.234, allocations: 72 kB / 0.5166 GB, free: 14.55 MB / 346.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.0003617/3.234, allocations: 140.7 kB / 0.5167 GB, free: 14.41 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008585/3.235, allocations: 383.3 kB / 0.5171 GB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009899/3.245, allocations: 1.389 MB / 0.5184 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/3.245, allocations: 8 kB / 0.5184 GB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/3.245, allocations: 0 / 0.5184 GB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/3.245, allocations: 3.984 kB / 0.5184 GB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007982/3.253, allocations: 1.998 MB / 0.5204 GB, free: 10.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002274/3.253, allocations: 67.98 kB / 0.5204 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001405/3.255, allocations: 107.9 kB / 0.5205 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.489e-05/3.255, allocations: 4 kB / 0.5205 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/3.255, allocations: 27.98 kB / 0.5206 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.757e-06/3.255, allocations: 4 kB / 0.5206 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/3.255, allocations: 0 / 0.5206 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004048/3.259, allocations: 1.186 MB / 0.5217 GB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005064/3.264, allocations: 1.834 MB / 0.5235 GB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002491/3.267, allocations: 0.5567 MB / 0.5241 GB, free: 6.672 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001155/3.268, allocations: 8 kB / 0.5241 GB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002497/3.271, allocations: 44.02 kB / 0.5241 GB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003199/3.271, allocations: 55.94 kB / 0.5242 GB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001712/3.271, allocations: 43.98 kB / 0.5242 GB, free: 6.523 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00599/3.277, allocations: 1.725 MB / 0.5259 GB, free: 4.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006241/3.283, allocations: 0.6205 MB / 0.5265 GB, free: 4.18 MB / 346.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.002535/3.286, allocations: 0.9423 MB / 0.5274 GB, free: 3.305 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002252/3.288, allocations: 0.6729 MB / 0.5281 GB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/3.288, allocations: 0 / 0.5281 GB, free: 2.609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/3.289, allocations: 387.1 kB / 0.5284 GB, free: 2.207 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/3.294, allocations: 483.4 kB / 0.5289 GB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1703/3.464, allocations: 3.154 MB / 0.532 GB, free: 105.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003846/3.468, allocations: 1.901 MB / 0.5338 GB, free: 105 MB / 346.7 MB Notification: Performance of SimCode: time 2.124e-06/3.468, allocations: 0 / 0.5338 GB, free: 105 MB / 346.7 MB