Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Spice3_Examples_Nor",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.809/1.809, allocations: 171.2 MB / 178.1 MB, free: 8.305 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1968/2.006, allocations: 41.11 MB / 219.3 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09693/2.103, allocations: 38.76 MB / 258 MB, free: 4.387 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3598/2.463, allocations: 93.62 MB / 351.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003767/2.463, allocations: 71.75 kB / 351.7 MB, free: 10.59 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.7385/3.202, allocations: 124.2 MB / 475.9 MB, free: 72.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/3.202, allocations: 9.906 kB / 475.9 MB, free: 72.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/3.203, allocations: 380.4 kB / 476.3 MB, free: 72.14 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008732/3.212, allocations: 2.263 MB / 478.6 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/3.212, allocations: 16 kB / 478.6 MB, free: 70.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003338/3.213, allocations: 35.91 kB / 478.6 MB, free: 70.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001995/3.215, allocations: 0.6779 MB / 479.3 MB, free: 69.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/3.217, allocations: 0.7344 MB / 480 MB, free: 69.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/3.217, allocations: 0 / 480 MB, free: 69.05 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/3.217, allocations: 0 / 480 MB, free: 69.05 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.178e-05/3.217, allocations: 23.97 kB / 480.1 MB, free: 69.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01574/3.233, allocations: 2.963 MB / 483 MB, free: 66.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/3.234, allocations: 435.3 kB / 483.5 MB, free: 65.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/3.236, allocations: 0.8281 MB / 484.3 MB, free: 64.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05716/3.294, allocations: 35.85 MB / 0.5079 GB, free: 23.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001376/3.295, allocations: 479.7 kB / 0.5084 GB, free: 23.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 6.863e-06/3.295, allocations: 0 / 0.5084 GB, free: 23.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01392/3.309, allocations: 3.366 MB / 0.5117 GB, free: 19.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/3.309, allocations: 281.6 kB / 0.512 GB, free: 19.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/3.314, allocations: 2.034 MB / 0.5139 GB, free: 17.49 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/3.315, allocations: 29.7 kB / 0.514 GB, free: 17.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005968/3.315, allocations: 0.5025 MB / 0.5145 GB, free: 16.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007223/3.316, allocations: 327.2 kB / 0.5148 GB, free: 16.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001992/3.316, allocations: 0 / 0.5148 GB, free: 16.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/3.316, allocations: 345.9 kB / 0.5151 GB, free: 16.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001403/3.318, allocations: 318.3 kB / 0.5154 GB, free: 15.97 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/3.319, allocations: 0.5191 MB / 0.5159 GB, free: 15.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/3.321, allocations: 370.5 kB / 0.5163 GB, free: 15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/3.321, allocations: 4 kB / 0.5163 GB, free: 15 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.005089/3.326, allocations: 1.618 MB / 0.5178 GB, free: 13.31 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/3.326, allocations: 4 kB / 0.5179 GB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004253/3.326, allocations: 120 kB / 0.518 GB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/3.328, allocations: 248.6 kB / 0.5182 GB, free: 12.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/3.33, allocations: 251.7 kB / 0.5184 GB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1604/3.49, allocations: 12.69 MB / 0.5308 GB, free: 103.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005028/3.495, allocations: 123.8 kB / 0.531 GB, free: 103.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004848/3.496, allocations: 56.78 kB / 0.531 GB, free: 103.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.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 (97): * Single equations (assignments): 83 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005546/3.497, allocations: 139.7 kB / 0.5311 GB, free: 103.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/3.498, allocations: 373.1 kB / 0.5315 GB, free: 103.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/3.512, allocations: 2.153 MB / 0.5336 GB, free: 103.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.03e-05/3.512, allocations: 11.22 kB / 0.5336 GB, free: 103.2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/3.512, allocations: 1.594 kB / 0.5336 GB, free: 103.2 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-05/3.512, allocations: 9.422 kB / 0.5336 GB, free: 103.2 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005323/3.517, allocations: 1.442 MB / 0.535 GB, free: 103 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0004469/3.518, allocations: 118.2 kB / 0.5351 GB, free: 103 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/3.52, allocations: 186.8 kB / 0.5353 GB, free: 103 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/3.522, allocations: 242 kB / 0.5355 GB, free: 102.9 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004478/3.523, allocations: 39.86 kB / 0.5356 GB, free: 102.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/3.539, allocations: 12.69 MB / 0.548 GB, free: 91.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/3.539, allocations: 3.188 kB / 0.548 GB, free: 91.11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009419/3.549, allocations: 2.038 MB / 0.55 GB, free: 90.54 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01163/3.56, allocations: 2.941 MB / 0.5528 GB, free: 89.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002788/3.563, allocations: 0.4962 MB / 0.5533 GB, free: 89.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/3.565, allocations: 12.91 kB / 0.5533 GB, free: 89.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005243/3.57, allocations: 118.1 kB / 0.5535 GB, free: 89.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007009/3.571, allocations: 117.2 kB / 0.5536 GB, free: 89.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002261/3.571, allocations: 49.95 kB / 0.5536 GB, free: 89.3 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004226/3.576, allocations: 1.534 MB / 0.5551 GB, free: 89.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004539/3.58, allocations: 0.6887 MB / 0.5558 GB, free: 89.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00238/3.583, allocations: 0.9855 MB / 0.5567 GB, free: 89.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00491/3.588, allocations: 2.051 MB / 0.5588 GB, free: 87.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.168e-05/3.588, allocations: 2.75 kB / 0.5588 GB, free: 87.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005173/3.593, allocations: 1.655 MB / 0.5604 GB, free: 86.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005147/3.598, allocations: 462.5 kB / 0.5608 GB, free: 86.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01355/3.612, allocations: 3.502 MB / 0.5642 GB, free: 85.78 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00226/3.614, allocations: 1.879 MB / 0.5661 GB, free: 85.05 MB / 346.7 MB Notification: Performance of SimCode: time 2.094e-06/3.614, allocations: 0 / 0.5661 GB, free: 85.05 MB / 346.7 MB