Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nand",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.74/1.74, allocations: 171.2 MB / 178.1 MB, free: 8.293 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1942/1.934, allocations: 41.1 MB / 219.2 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/2.039, allocations: 38.76 MB / 258 MB, free: 4.379 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3287/2.368, allocations: 93.42 MB / 351.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00042/2.368, allocations: 66.03 kB / 351.5 MB, free: 10.86 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.6226/2.991, allocations: 123.3 MB / 474.8 MB, free: 72.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.451e-05/2.991, allocations: 9.156 kB / 474.8 MB, free: 72.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/2.993, allocations: 378.2 kB / 475.1 MB, free: 72.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/3.004, allocations: 2.235 MB / 477.4 MB, free: 70.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.289e-05/3.004, allocations: 22.66 kB / 477.4 MB, free: 70.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002538/3.004, allocations: 28.16 kB / 477.4 MB, free: 70.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002105/3.006, allocations: 0.6638 MB / 478.1 MB, free: 70.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002175/3.008, allocations: 0.6904 MB / 478.8 MB, free: 70.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/3.008, allocations: 1 kB / 478.8 MB, free: 70.23 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/3.008, allocations: 9.781 kB / 478.8 MB, free: 70.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/3.009, allocations: 19.58 kB / 478.8 MB, free: 70.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/3.019, allocations: 2.834 MB / 481.6 MB, free: 67.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/3.02, allocations: 362.9 kB / 482 MB, free: 67.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/3.021, allocations: 0.5516 MB / 482.6 MB, free: 66.47 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06255/3.083, allocations: 35.93 MB / 0.5063 GB, free: 25.45 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001061/3.085, allocations: 289.5 kB / 0.5066 GB, free: 25.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 8.997e-06/3.085, allocations: 0 / 0.5066 GB, free: 25.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.004388/3.089, allocations: 0.8649 MB / 0.5075 GB, free: 24.28 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001529/3.089, allocations: 273 kB / 0.5077 GB, free: 23.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006203/3.096, allocations: 2.104 MB / 0.5098 GB, free: 21.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002136/3.096, allocations: 33.7 kB / 0.5098 GB, free: 21.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006464/3.096, allocations: 0.6057 MB / 0.5104 GB, free: 21.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/3.097, allocations: 157.8 kB / 0.5105 GB, free: 21.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/3.097, allocations: 4 kB / 0.5105 GB, free: 21.02 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.226e-05/3.097, allocations: 341.9 kB / 0.5109 GB, free: 20.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/3.097, allocations: 170 kB / 0.511 GB, free: 20.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/3.098, allocations: 0.5669 MB / 0.5116 GB, free: 19.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007248/3.099, allocations: 264.1 kB / 0.5118 GB, free: 19.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/3.099, allocations: 4 kB / 0.5118 GB, free: 19.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003104/3.102, allocations: 1.081 MB / 0.5129 GB, free: 18.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/3.102, allocations: 7.938 kB / 0.5129 GB, free: 18.4 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/3.102, allocations: 79.98 kB / 0.513 GB, free: 18.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008959/3.103, allocations: 284.6 kB / 0.5133 GB, free: 18.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/3.104, allocations: 183.7 kB / 0.5134 GB, free: 17.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/3.106, allocations: 0.9346 MB / 0.5143 GB, free: 16.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002551/3.109, allocations: 111.2 kB / 0.5144 GB, free: 16.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/3.109, allocations: 64 kB / 0.5145 GB, free: 16.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 {2 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002633/3.109, allocations: 148.6 kB / 0.5146 GB, free: 16.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006508/3.11, allocations: 371.5 kB / 0.515 GB, free: 16.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007901/3.118, allocations: 1.45 MB / 0.5164 GB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/3.118, allocations: 8 kB / 0.5164 GB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/3.118, allocations: 0 / 0.5164 GB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/3.118, allocations: 3.984 kB / 0.5164 GB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006572/3.124, allocations: 2.002 MB / 0.5184 GB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001584/3.125, allocations: 71.89 kB / 0.5185 GB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006806/3.125, allocations: 80.02 kB / 0.5185 GB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000755/3.126, allocations: 264.6 kB / 0.5188 GB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/3.126, allocations: 31.98 kB / 0.5188 GB, free: 12.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/3.128, allocations: 0.9115 MB / 0.5197 GB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/3.128, allocations: 11.84 kB / 0.5197 GB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002859/3.131, allocations: 1.117 MB / 0.5208 GB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002945/3.134, allocations: 1.566 MB / 0.5223 GB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/3.135, allocations: 480.5 kB / 0.5228 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/3.137, allocations: 4 kB / 0.5228 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/3.139, allocations: 51.95 kB / 0.5228 GB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/3.139, allocations: 59.84 kB / 0.5229 GB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/3.139, allocations: 39.98 kB / 0.5229 GB, free: 7.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004273/3.143, allocations: 1.559 MB / 0.5245 GB, free: 6.246 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004059/3.147, allocations: 0.6087 MB / 0.5251 GB, free: 5.641 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {2 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.002066/3.15, allocations: 0.9499 MB / 0.526 GB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002126/3.152, allocations: 0.6972 MB / 0.5267 GB, free: 4.047 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/3.152, allocations: 0 / 0.5267 GB, free: 4.047 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/3.153, allocations: 416.1 kB / 0.5271 GB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003494/3.157, allocations: 443.5 kB / 0.5275 GB, free: 3.176 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01305/3.17, allocations: 2.761 MB / 0.5302 GB, free: 348 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1562/3.326, allocations: 1.82 MB / 0.532 GB, free: 105.3 MB / 346.7 MB Notification: Performance of SimCode: time 3.356e-06/3.326, allocations: 2.125 kB / 0.532 GB, free: 105.3 MB / 346.7 MB