Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_MUX2x1",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.685/1.685, allocations: 194.9 MB / 202.6 MB, free: 13.86 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1373/1.822, allocations: 46.81 MB / 249.4 MB, free: 14.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/2.038, allocations: 44.49 MB / 293.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/2.17, allocations: 76.83 MB / 370.7 MB, free: 5.148 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/2.171, allocations: 75.95 kB / 370.8 MB, free: 5.074 MB / 314.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.0985/2.269, allocations: 27.71 MB / 398.5 MB, free: 9.371 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/2.269, allocations: 8 kB / 398.5 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/2.269, allocations: 43.53 kB / 398.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004719/2.27, allocations: 273.3 kB / 398.8 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/2.27, allocations: 4 kB / 398.8 MB, free: 9.012 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.331e-05/2.27, allocations: 16 kB / 398.8 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002718/2.27, allocations: 75.97 kB / 398.9 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/2.271, allocations: 157.5 kB / 399.1 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/2.271, allocations: 0 / 399.1 MB, free: 8.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/2.271, allocations: 11.94 kB / 399.1 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/2.271, allocations: 4 kB / 399.1 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/2.272, allocations: 489 kB / 399.6 MB, free: 8.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/2.272, allocations: 114.5 kB / 399.7 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002431/2.272, allocations: 100.9 kB / 399.8 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/2.272, allocations: 0 / 399.8 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/2.273, allocations: 226.5 kB / 400 MB, free: 7.762 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.934e-06/2.273, allocations: 0 / 400 MB, free: 7.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006899/2.274, allocations: 253.2 kB / 400.2 MB, free: 7.508 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/2.274, allocations: 199.8 kB / 400.4 MB, free: 7.27 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009647/2.275, allocations: 488.7 kB / 400.9 MB, free: 6.781 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.87e-05/2.275, allocations: 29.7 kB / 400.9 MB, free: 6.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/2.275, allocations: 93.12 kB / 401 MB, free: 6.652 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.551e-05/2.275, allocations: 27.66 kB / 401.1 MB, free: 6.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.748e-05/2.275, allocations: 8 kB / 401.1 MB, free: 6.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/2.275, allocations: 330.7 kB / 401.4 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/2.275, allocations: 80.12 kB / 401.5 MB, free: 6.207 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/2.276, allocations: 80.47 kB / 401.5 MB, free: 6.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/2.276, allocations: 60.05 kB / 401.6 MB, free: 6.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/2.276, allocations: 0 / 401.6 MB, free: 6.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005938/2.276, allocations: 229.4 kB / 401.8 MB, free: 5.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/2.276, allocations: 4 kB / 401.8 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/2.276, allocations: 7.984 kB / 401.8 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/2.276, allocations: 3.938 kB / 401.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.879e-05/2.277, allocations: 0 / 401.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/2.277, allocations: 0 / 401.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002591/2.277, allocations: 19.91 kB / 401.9 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/2.277, allocations: 97.28 kB / 402 MB, free: 5.707 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: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0002717/2.277, allocations: 275 kB / 402.2 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.09e-05/2.277, allocations: 43.59 kB / 402.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/2.278, allocations: 79.47 kB / 402.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/2.278, allocations: 0 / 402.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.278, allocations: 0 / 402.3 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/2.278, allocations: 11.97 kB / 402.4 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00118/2.279, allocations: 0.6392 MB / 403 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/2.279, allocations: 0 / 403 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-06/2.279, allocations: 4 kB / 403 MB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/2.279, allocations: 3.906 kB / 403 MB, free: 4.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.023e-05/2.279, allocations: 23.98 kB / 403 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/2.279, allocations: 0 / 403 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/2.279, allocations: 0 / 403 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000729/2.28, allocations: 374.9 kB / 403.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008601/2.281, allocations: 0.7415 MB / 404.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006105/2.281, allocations: 268.3 kB / 404.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/2.281, allocations: 12 kB / 404.4 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/2.282, allocations: 23.98 kB / 404.4 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002033/2.282, allocations: 43.95 kB / 404.5 MB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/2.282, allocations: 101.3 kB / 404.6 MB, free: 2.949 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0007793/2.283, allocations: 394.9 kB / 405 MB, free: 2.562 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001294/2.284, allocations: 44 kB / 405 MB, free: 2.52 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.0002162/2.284, allocations: 123.1 kB / 405.1 MB, free: 2.391 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006476/2.285, allocations: 336.3 kB / 405.5 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/2.285, allocations: 4 kB / 405.5 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004955/2.286, allocations: 332.4 kB / 405.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/2.287, allocations: 155.2 kB / 405.9 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/2.288, allocations: 0.5955 MB / 406.5 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007343/2.289, allocations: 0.843 MB / 407.4 MB, free: 28 kB / 346.7 MB Notification: Performance of SimCode: time 8.52e-07/2.289, allocations: 0 / 407.4 MB, free: 28 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat