Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREG",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.729/1.729, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2409/1.97, allocations: 46.82 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09064/2.06, allocations: 44.51 MB / 293.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2948/2.355, allocations: 77.14 MB / 371.1 MB, free: 7.086 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/2.355, allocations: 70.69 kB / 371.1 MB, free: 7.086 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.08995/2.445, allocations: 28.23 MB / 399.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/2.445, allocations: 9.094 kB / 399.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004523/2.446, allocations: 96.52 kB / 399.4 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/2.447, allocations: 429.7 kB / 399.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.675e-05/2.447, allocations: 16.16 kB / 399.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/2.447, allocations: 22.97 kB / 399.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009827/2.448, allocations: 353.6 kB / 400.3 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/2.45, allocations: 0.4974 MB / 400.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/2.45, allocations: 0 / 400.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/2.45, allocations: 15.8 kB / 400.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/2.45, allocations: 3.25 kB / 400.8 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002539/2.452, allocations: 0.8419 MB / 401.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/2.454, allocations: 0.5009 MB / 402.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001108/2.455, allocations: 496.6 kB / 402.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/2.455, allocations: 1.562 kB / 402.6 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00141/2.456, allocations: 0.6154 MB / 403.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.568e-06/2.456, allocations: 1.156 kB / 403.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002182/2.459, allocations: 0.7776 MB / 404 MB, free: 12.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002573/2.459, allocations: 288.2 kB / 404.3 MB, free: 12.56 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/2.462, allocations: 0.9936 MB / 405.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002713/2.462, allocations: 48.84 kB / 405.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/2.462, allocations: 110.5 kB / 405.4 MB, free: 12.02 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/2.463, allocations: 84.05 kB / 405.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.825e-05/2.463, allocations: 10 kB / 405.5 MB, free: 11.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/2.463, allocations: 345.3 kB / 405.9 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008862/2.464, allocations: 346.2 kB / 406.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00089/2.465, allocations: 347.5 kB / 406.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006834/2.465, allocations: 246.8 kB / 406.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/2.465, allocations: 0 / 406.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002003/2.468, allocations: 0.7463 MB / 407.5 MB, free: 11.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/2.468, allocations: 11.92 kB / 407.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/2.468, allocations: 0 / 407.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/2.468, allocations: 0 / 407.5 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.586e-05/2.468, allocations: 7.188 kB / 407.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/2.468, allocations: 0 / 407.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007524/2.468, allocations: 31.83 kB / 407.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003037/2.469, allocations: 155.2 kB / 407.7 MB, free: 11.01 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0006717/2.469, allocations: 406.8 kB / 408.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/2.47, allocations: 89.75 kB / 408.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006202/2.47, allocations: 150.9 kB / 408.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/2.47, allocations: 3.906 kB / 408.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/2.47, allocations: 0 / 408.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/2.471, allocations: 0 / 408.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/2.474, allocations: 1.489 MB / 409.8 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/2.474, allocations: 7.984 kB / 409.9 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.406e-05/2.475, allocations: 0 / 409.9 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.425e-06/2.475, allocations: 0 / 409.9 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/2.475, allocations: 38.73 kB / 409.9 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/2.475, allocations: 3.984 kB / 409.9 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/2.475, allocations: 0 / 409.9 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002295/2.477, allocations: 0.9412 MB / 410.8 MB, free: 8.359 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002574/2.48, allocations: 1.317 MB / 412.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001973/2.482, allocations: 0.5759 MB / 412.7 MB, free: 6.789 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004135/2.482, allocations: 64.66 kB / 412.8 MB, free: 6.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006848/2.483, allocations: 39.88 kB / 412.8 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007333/2.484, allocations: 239.8 kB / 413.1 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003152/2.484, allocations: 158.2 kB / 413.2 MB, free: 6.379 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.002289/2.486, allocations: 0.83 MB / 414 MB, free: 5.707 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001869/2.488, allocations: 104 kB / 414.1 MB, free: 5.605 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.000551/2.489, allocations: 189.9 kB / 414.3 MB, free: 5.422 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002591/2.491, allocations: 1.091 MB / 415.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/2.491, allocations: 0 / 415.4 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/2.493, allocations: 0.9314 MB / 416.4 MB, free: 3.691 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/2.496, allocations: 270.1 kB / 416.6 MB, free: 3.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005323/2.501, allocations: 1.729 MB / 418.4 MB, free: 1.676 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001336/2.503, allocations: 1.061 MB / 419.4 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of SimCode: time 3.507e-06/2.503, allocations: 0 / 419.4 MB, free: 0.5859 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat