Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_Logical",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.243/2.243, allocations: 235.1 MB / 242 MB, free: 9.738 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1691/2.413, allocations: 57.19 MB / 299.2 MB, free: 440 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/2.706, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1938/2.899, allocations: 84.12 MB / 438.2 MB, free: 9.152 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/2.9, allocations: 63.97 kB / 438.3 MB, free: 9.09 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.0405/2.94, allocations: 6.419 MB / 444.7 MB, free: 2.582 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/2.94, allocations: 8 kB / 444.7 MB, free: 2.574 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/2.94, allocations: 47.44 kB / 444.7 MB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/2.941, allocations: 211.6 kB / 444.9 MB, free: 2.277 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.644e-05/2.941, allocations: 12 kB / 444.9 MB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/2.941, allocations: 28 kB / 445 MB, free: 2.238 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008947/2.942, allocations: 233.5 kB / 445.2 MB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009978/2.943, allocations: 325.3 kB / 445.5 MB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/2.943, allocations: 4 kB / 445.5 MB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.437e-05/2.943, allocations: 0 / 445.5 MB, free: 1.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/2.943, allocations: 11.98 kB / 445.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003243/2.946, allocations: 0.8933 MB / 446.4 MB, free: 0.7344 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007814/2.947, allocations: 279.2 kB / 446.7 MB, free: 460 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004153/2.947, allocations: 145.3 kB / 446.8 MB, free: 312 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/2.948, allocations: 4.328 kB / 446.8 MB, free: 308 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.164/3.112, allocations: 289.1 kB / 447.1 MB, free: 130.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 8.897e-06/3.112, allocations: 0 / 447.1 MB, free: 130.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001818/3.113, allocations: 314.5 kB / 447.4 MB, free: 130.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/3.114, allocations: 199.4 kB / 447.6 MB, free: 130.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003951/3.114, allocations: 197.8 kB / 447.8 MB, free: 130 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/3.114, allocations: 36.33 kB / 447.9 MB, free: 130 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/3.114, allocations: 150.2 kB / 448 MB, free: 129.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002107/3.115, allocations: 104.3 kB / 448.1 MB, free: 129.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/3.115, allocations: 0 / 448.1 MB, free: 129.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/3.115, allocations: 342.6 kB / 448.4 MB, free: 129.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005225/3.115, allocations: 128 kB / 448.6 MB, free: 129.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000616/3.116, allocations: 171.9 kB / 448.7 MB, free: 129.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006526/3.117, allocations: 106.8 kB / 448.8 MB, free: 129.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/3.117, allocations: 0 / 448.8 MB, free: 129.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002068/3.119, allocations: 406.5 kB / 449.2 MB, free: 129.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/3.119, allocations: 3.75 kB / 449.2 MB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/3.119, allocations: 0 / 449.2 MB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/3.119, allocations: 34.36 kB / 449.3 MB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/3.12, allocations: 41.59 kB / 449.3 MB, free: 129.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001286/3.121, allocations: 1.334 MB / 450.6 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007403/3.122, allocations: 78.16 kB / 450.7 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/3.122, allocations: 16.12 kB / 450.7 MB, free: 128.2 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.0002587/3.122, allocations: 203.1 kB / 450.9 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.01e-05/3.122, allocations: 32.56 kB / 451 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/3.122, allocations: 36.14 kB / 451 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/3.122, allocations: 5.969 kB / 451 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/3.122, allocations: 3.75 kB / 451 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/3.122, allocations: 0 / 451 MB, free: 128 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/3.124, allocations: 0.7351 MB / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/3.124, allocations: 0 / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/3.124, allocations: 40.31 kB / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-06/3.124, allocations: 0 / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.373e-05/3.124, allocations: 17.41 kB / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/3.124, allocations: 0 / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/3.124, allocations: 0 / 451.8 MB, free: 127.7 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008539/3.125, allocations: 441.4 kB / 452.2 MB, free: 127.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009808/3.126, allocations: 0.803 MB / 453 MB, free: 127 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.355e-05/3.126, allocations: 103.1 kB / 453.1 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/3.126, allocations: 13.17 kB / 453.2 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007879/3.127, allocations: 77.66 kB / 453.2 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002459/3.127, allocations: 63.56 kB / 453.3 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-05/3.128, allocations: 24.28 kB / 453.3 MB, free: 126.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001598/3.128, allocations: 139 kB / 453.5 MB, free: 126.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001646/3.129, allocations: 106.2 kB / 453.6 MB, free: 126.8 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.0004388/3.13, allocations: 160.9 kB / 453.7 MB, free: 126.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00128/3.131, allocations: 0.5509 MB / 454.3 MB, free: 126.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/3.131, allocations: 0 / 454.3 MB, free: 126.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005683/3.132, allocations: 278.5 kB / 454.5 MB, free: 126.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/3.132, allocations: 13.88 kB / 454.5 MB, free: 126.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/3.134, allocations: 458.8 kB / 455 MB, free: 126.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004908/3.134, allocations: 0.8387 MB / 455.8 MB, free: 125.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/3.134, allocations: 0 / 455.8 MB, free: 125.6 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat