Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Logical",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.054/2.054, allocations: 209.3 MB / 216.2 MB, free: 0.668 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1612/2.215, allocations: 51.03 MB / 267.3 MB, free: 13.56 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/2.474, allocations: 48.69 MB / 316 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1642/2.638, allocations: 77.73 MB / 393.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/2.638, allocations: 67.91 kB / 393.8 MB, free: 0.5156 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0314/2.67, allocations: 6.395 MB / 400.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/2.67, allocations: 12 kB / 400.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/2.67, allocations: 47.52 kB / 400.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/2.67, allocations: 202.6 kB / 400.4 MB, free: 9.738 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/2.67, allocations: 19.98 kB / 400.4 MB, free: 9.719 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-05/2.67, allocations: 24 kB / 400.5 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008358/2.671, allocations: 233.5 kB / 400.7 MB, free: 9.469 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/2.672, allocations: 282.1 kB / 401 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/2.672, allocations: 0 / 401 MB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.423e-05/2.672, allocations: 7.906 kB / 401 MB, free: 9.176 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/2.672, allocations: 8 kB / 401 MB, free: 9.168 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004252/2.676, allocations: 0.8855 MB / 401.9 MB, free: 8.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/2.678, allocations: 290.3 kB / 402.2 MB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007914/2.679, allocations: 137.2 kB / 402.3 MB, free: 7.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.287e-05/2.679, allocations: 4.328 kB / 402.3 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/2.68, allocations: 277.5 kB / 402.6 MB, free: 7.516 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 5.881e-06/2.68, allocations: 3.938 kB / 402.6 MB, free: 7.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.00168/2.681, allocations: 324.8 kB / 402.9 MB, free: 7.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/2.682, allocations: 178.5 kB / 403.1 MB, free: 6.973 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004658/2.682, allocations: 190 kB / 403.2 MB, free: 6.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/2.682, allocations: 33.7 kB / 403.3 MB, free: 6.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/2.683, allocations: 152.8 kB / 403.4 MB, free: 6.586 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/2.683, allocations: 102.7 kB / 403.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/2.683, allocations: 0 / 403.5 MB, free: 6.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/2.683, allocations: 342.8 kB / 403.9 MB, free: 6.141 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005434/2.684, allocations: 133.1 kB / 404 MB, free: 6.008 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/2.684, allocations: 132.3 kB / 404.1 MB, free: 5.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000715/2.685, allocations: 99.02 kB / 404.2 MB, free: 5.781 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/2.685, allocations: 0 / 404.2 MB, free: 5.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002053/2.687, allocations: 407.7 kB / 404.6 MB, free: 5.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/2.687, allocations: 11.98 kB / 404.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/2.687, allocations: 0 / 404.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002423/2.688, allocations: 36.84 kB / 404.7 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004301/2.688, allocations: 39.86 kB / 404.7 MB, free: 5.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/2.69, allocations: 1.337 MB / 406 MB, free: 3.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008539/2.691, allocations: 72.08 kB / 406.1 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.075e-05/2.691, allocations: 23.89 kB / 406.1 MB, free: 3.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 4 * 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 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000383/2.691, allocations: 198.1 kB / 406.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/2.692, allocations: 31.62 kB / 406.4 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/2.692, allocations: 35.08 kB / 406.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/2.692, allocations: 4 kB / 406.4 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/2.692, allocations: 0 / 406.4 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/2.692, allocations: 0 / 406.4 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/2.694, allocations: 0.7488 MB / 407.1 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/2.694, allocations: 0 / 407.1 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/2.694, allocations: 39.91 kB / 407.2 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/2.694, allocations: 4 kB / 407.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.33e-05/2.694, allocations: 11.98 kB / 407.2 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.644e-06/2.694, allocations: 4 kB / 407.2 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/2.694, allocations: 0 / 407.2 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001273/2.696, allocations: 439.6 kB / 407.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001434/2.697, allocations: 0.8087 MB / 408.4 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/2.697, allocations: 136.7 kB / 408.6 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/2.698, allocations: 11.98 kB / 408.6 MB, free: 1.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009469/2.699, allocations: 75.94 kB / 408.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/2.699, allocations: 63.67 kB / 408.7 MB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.614e-05/2.699, allocations: 16 kB / 408.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002298/2.699, allocations: 132.1 kB / 408.9 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002404/2.702, allocations: 103.8 kB / 409 MB, free: 0.793 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.0005497/2.702, allocations: 165.7 kB / 409.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001737/2.704, allocations: 0.5407 MB / 409.7 MB, free: 44 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/2.704, allocations: 0 / 409.7 MB, free: 44 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009142/2.705, allocations: 279.7 kB / 409.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/2.705, allocations: 11.91 kB / 410 MB, free: 15.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/2.708, allocations: 465.9 kB / 410.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009424/2.709, allocations: 0.8265 MB / 411.2 MB, free: 14.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/2.709, allocations: 4 kB / 411.2 MB, free: 14.4 MB / 362.7 MB