Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_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.383/2.383, allocations: 234.9 MB / 241.9 MB, free: 9.785 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1723/2.556, allocations: 57.2 MB / 299.1 MB, free: 476 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/2.857, allocations: 54.84 MB / 354 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.154/3.011, allocations: 84.12 MB / 438.1 MB, free: 9.207 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/3.011, allocations: 71.89 kB / 438.2 MB, free: 9.137 MB / 378.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.03086/3.042, allocations: 6.411 MB / 444.6 MB, free: 2.637 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/3.042, allocations: 8 kB / 444.6 MB, free: 2.629 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/3.042, allocations: 51.38 kB / 444.6 MB, free: 2.578 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/3.042, allocations: 211.5 kB / 444.8 MB, free: 2.328 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/3.042, allocations: 12 kB / 444.8 MB, free: 2.316 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.585e-05/3.042, allocations: 32 kB / 444.9 MB, free: 2.285 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008/3.043, allocations: 229.5 kB / 445.1 MB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008949/3.044, allocations: 329.4 kB / 445.4 MB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/3.044, allocations: 0 / 445.4 MB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.862e-05/3.044, allocations: 0 / 445.4 MB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/3.044, allocations: 11.98 kB / 445.4 MB, free: 1.715 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003049/3.047, allocations: 0.8972 MB / 446.3 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007408/3.048, allocations: 275.9 kB / 446.6 MB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/3.049, allocations: 145.3 kB / 446.7 MB, free: 364 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/3.049, allocations: 8.328 kB / 446.7 MB, free: 356 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007122/3.049, allocations: 281.4 kB / 447 MB, free: 48 kB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 3.326e-06/3.049, allocations: 0 / 447 MB, free: 48 kB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.1682/3.218, allocations: 311.8 kB / 447.3 MB, free: 130.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/3.218, allocations: 202.8 kB / 447.5 MB, free: 130.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002313/3.218, allocations: 189.1 kB / 447.7 MB, free: 130.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.858e-05/3.218, allocations: 40.48 kB / 447.7 MB, free: 130.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/3.218, allocations: 151.7 kB / 447.9 MB, free: 130.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/3.218, allocations: 108.6 kB / 448 MB, free: 130.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.267e-05/3.218, allocations: 0 / 448 MB, free: 130.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.365e-05/3.218, allocations: 344.5 kB / 448.3 MB, free: 129.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/3.219, allocations: 128.2 kB / 448.5 MB, free: 129.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/3.219, allocations: 167.3 kB / 448.6 MB, free: 129.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003924/3.22, allocations: 106 kB / 448.7 MB, free: 129.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/3.22, allocations: 0 / 448.7 MB, free: 129.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001309/3.221, allocations: 408.1 kB / 449.1 MB, free: 129.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/3.221, allocations: 3.375 kB / 449.1 MB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/3.221, allocations: 0 / 449.1 MB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002176/3.221, allocations: 34.84 kB / 449.2 MB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/3.222, allocations: 44.89 kB / 449.2 MB, free: 129.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/3.223, allocations: 1.335 MB / 450.5 MB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006704/3.224, allocations: 74.3 kB / 450.6 MB, free: 128.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.505e-05/3.224, allocations: 16.66 kB / 450.6 MB, free: 128.6 MB / 378.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.0002323/3.224, allocations: 200.4 kB / 450.8 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.126e-05/3.224, allocations: 31.5 kB / 450.9 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/3.224, allocations: 35.19 kB / 450.9 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/3.224, allocations: 6.953 kB / 450.9 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/3.224, allocations: 1.5 kB / 450.9 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/3.224, allocations: 3.797 kB / 450.9 MB, free: 128.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/3.225, allocations: 0.7389 MB / 451.6 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/3.225, allocations: 3.469 kB / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003041/3.226, allocations: 36.83 kB / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.946e-06/3.226, allocations: 0 / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/3.226, allocations: 16.84 kB / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/3.226, allocations: 3.781 kB / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/3.226, allocations: 0 / 451.7 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000841/3.227, allocations: 442 kB / 452.1 MB, free: 127.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008866/3.228, allocations: 0.8056 MB / 452.9 MB, free: 127.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/3.228, allocations: 107.5 kB / 453 MB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/3.228, allocations: 9.25 kB / 453.1 MB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007338/3.229, allocations: 71.67 kB / 453.1 MB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/3.229, allocations: 68.61 kB / 453.2 MB, free: 127.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.863e-05/3.229, allocations: 17.28 kB / 453.2 MB, free: 127.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001421/3.229, allocations: 134.3 kB / 453.3 MB, free: 127.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001512/3.231, allocations: 99.61 kB / 453.4 MB, free: 127.2 MB / 378.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.0003853/3.231, allocations: 168.2 kB / 453.6 MB, free: 127.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/3.232, allocations: 0.5465 MB / 454.2 MB, free: 126.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/3.232, allocations: 0 / 454.2 MB, free: 126.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005117/3.233, allocations: 282.6 kB / 454.4 MB, free: 126.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/3.233, allocations: 18.67 kB / 454.4 MB, free: 126.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/3.234, allocations: 459.5 kB / 454.9 MB, free: 126.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/3.235, allocations: 0.834 MB / 455.7 MB, free: 126 MB / 378.7 MB Notification: Performance of SimCode: time 1.042e-06/3.235, allocations: 0 / 455.7 MB, free: 126 MB / 378.7 MB