Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_LogicalNetwork1",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(Modelica): time 1.686/1.686, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2256/1.912, allocations: 46.82 MB / 249.4 MB, free: 5.293 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08865/2, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2723/2.273, allocations: 70.8 MB / 364.7 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/2.273, allocations: 60.45 kB / 364.8 MB, free: 7.094 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.01004/2.283, allocations: 2.296 MB / 367.1 MB, free: 6.527 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/2.283, allocations: 7.875 kB / 367.1 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/2.283, allocations: 15.56 kB / 367.1 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/2.283, allocations: 179.9 kB / 367.3 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/2.283, allocations: 3.875 kB / 367.3 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/2.283, allocations: 11.66 kB / 367.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001791/2.284, allocations: 44.19 kB / 367.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/2.284, allocations: 78.69 kB / 367.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/2.284, allocations: 0 / 367.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/2.284, allocations: 5.141 kB / 367.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/2.284, allocations: 0 / 367.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000533/2.284, allocations: 326.6 kB / 367.7 MB, free: 6.031 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001526/2.285, allocations: 65.28 kB / 367.8 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/2.285, allocations: 43.3 kB / 367.8 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.375e-05/2.285, allocations: 3.906 kB / 367.8 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/2.285, allocations: 151.5 kB / 368 MB, free: 5.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.904e-06/2.285, allocations: 0 / 368 MB, free: 5.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.000317/2.285, allocations: 116.2 kB / 368.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/2.285, allocations: 167.1 kB / 368.3 MB, free: 5.652 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/2.285, allocations: 122.3 kB / 368.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/2.286, allocations: 33.02 kB / 368.4 MB, free: 5.52 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.528e-05/2.286, allocations: 90.48 kB / 368.5 MB, free: 5.438 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.274e-05/2.286, allocations: 22.73 kB / 368.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/2.286, allocations: 0 / 368.5 MB, free: 5.426 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/2.286, allocations: 325 kB / 368.8 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/2.286, allocations: 36.8 kB / 368.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/2.286, allocations: 34.92 kB / 368.9 MB, free: 21.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/2.286, allocations: 39.42 kB / 368.9 MB, free: 21.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/2.286, allocations: 0 / 368.9 MB, free: 21.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003341/2.287, allocations: 126.1 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/2.287, allocations: 11.5 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/2.287, allocations: 0 / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/2.287, allocations: 0.875 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.326e-05/2.287, allocations: 5.266 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/2.287, allocations: 3.875 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.916e-05/2.287, allocations: 8.984 kB / 369.1 MB, free: 21.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.954e-05/2.287, allocations: 3.969 kB / 369.1 MB, free: 21.05 MB / 314.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: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001665/2.287, allocations: 186.9 kB / 369.3 MB, free: 20.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.207e-05/2.287, allocations: 13.06 kB / 369.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.003e-05/2.287, allocations: 8.375 kB / 369.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/2.287, allocations: 1.453 kB / 369.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/2.287, allocations: 1.562 kB / 369.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/2.287, allocations: 3.906 kB / 369.3 MB, free: 20.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/2.287, allocations: 181.5 kB / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/2.287, allocations: 3.984 kB / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.636e-06/2.287, allocations: 0 / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/2.287, allocations: 3.75 kB / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/2.287, allocations: 5.594 kB / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/2.287, allocations: 0 / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/2.287, allocations: 0 / 369.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003236/2.288, allocations: 162.4 kB / 369.7 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004411/2.288, allocations: 0.5285 MB / 370.2 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/2.288, allocations: 88.97 kB / 370.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/2.288, allocations: 8.922 kB / 370.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/2.288, allocations: 13.44 kB / 370.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/2.289, allocations: 12.17 kB / 370.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/2.289, allocations: 3.875 kB / 370.3 MB, free: 20.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.464e-05/2.289, allocations: 96.42 kB / 370.4 MB, free: 20 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00137/2.29, allocations: 56.11 kB / 370.5 MB, free: 19.98 MB / 314.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: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0003155/2.29, allocations: 146 kB / 370.6 MB, free: 19.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003487/2.291, allocations: 201.7 kB / 370.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/2.291, allocations: 0 / 370.8 MB, free: 19.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/2.291, allocations: 134.2 kB / 370.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/2.291, allocations: 7.688 kB / 370.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005139/2.292, allocations: 160.5 kB / 371.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003505/2.292, allocations: 0.7146 MB / 371.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/2.292, allocations: 4 kB / 371.8 MB, free: 18.9 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat