Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREGSRH",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.592/1.592, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2153/1.807, allocations: 46.83 MB / 249.4 MB, free: 5.324 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08857/1.896, allocations: 44.5 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/2.173, allocations: 77.39 MB / 371.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/2.174, allocations: 66.66 kB / 371.4 MB, free: 7.082 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.09592/2.27, allocations: 31.79 MB / 403.1 MB, free: 12.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/2.27, allocations: 13.02 kB / 403.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004378/2.27, allocations: 136 kB / 403.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/2.272, allocations: 0.5184 MB / 403.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.005e-05/2.272, allocations: 13.88 kB / 403.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/2.272, allocations: 27.28 kB / 403.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001185/2.273, allocations: 455.5 kB / 404.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/2.275, allocations: 0.6096 MB / 404.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/2.275, allocations: 0.625 kB / 404.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001168/2.275, allocations: 14.02 kB / 404.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/2.275, allocations: 6.719 kB / 404.9 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/2.278, allocations: 1.072 MB / 406 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/2.279, allocations: 0.6901 MB / 406.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/2.281, allocations: 0.6732 MB / 407.4 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.187e-05/2.281, allocations: 4 kB / 407.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/2.282, allocations: 0.7166 MB / 408.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.407e-06/2.282, allocations: 0 / 408.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002565/2.285, allocations: 0.9631 MB / 409 MB, free: 9.824 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002955/2.285, allocations: 331.8 kB / 409.4 MB, free: 9.457 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0042/2.289, allocations: 1.555 MB / 410.9 MB, free: 8.168 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003184/2.29, allocations: 41.45 kB / 411 MB, free: 8.125 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/2.29, allocations: 159.4 kB / 411.1 MB, free: 7.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/2.29, allocations: 74.36 kB / 411.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/2.29, allocations: 11.75 kB / 411.2 MB, free: 7.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002468/2.291, allocations: 376.9 kB / 411.6 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/2.292, allocations: 453.2 kB / 412 MB, free: 7.246 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/2.293, allocations: 455.6 kB / 412.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007029/2.294, allocations: 302.9 kB / 412.8 MB, free: 6.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/2.294, allocations: 0 / 412.8 MB, free: 6.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00228/2.296, allocations: 0.9162 MB / 413.7 MB, free: 6.031 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/2.296, allocations: 7.906 kB / 413.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/2.296, allocations: 0 / 413.7 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/2.296, allocations: 4 kB / 413.7 MB, free: 6.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.132e-05/2.296, allocations: 0 / 413.7 MB, free: 6.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/2.296, allocations: 7.938 kB / 413.7 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007734/2.297, allocations: 47.25 kB / 413.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002906/2.297, allocations: 147.3 kB / 413.9 MB, free: 5.828 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.0006941/2.298, allocations: 455.7 kB / 414.3 MB, free: 5.352 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002956/2.298, allocations: 130.5 kB / 414.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/2.299, allocations: 250.2 kB / 414.7 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/2.299, allocations: 0 / 414.7 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/2.299, allocations: 0 / 414.7 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/2.299, allocations: 8 kB / 414.7 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004316/2.304, allocations: 1.882 MB / 416.6 MB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/2.304, allocations: 0 / 416.6 MB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.312e-05/2.304, allocations: 3.938 kB / 416.6 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/2.304, allocations: 4 kB / 416.6 MB, free: 3.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/2.304, allocations: 40.91 kB / 416.6 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/2.304, allocations: 3.984 kB / 416.6 MB, free: 3.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/2.304, allocations: 4 kB / 416.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00276/2.307, allocations: 1.126 MB / 417.8 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002847/2.31, allocations: 1.523 MB / 419.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00224/2.312, allocations: 0.6981 MB / 420 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003662/2.312, allocations: 67.91 kB / 420.1 MB, free: 124 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007015/2.313, allocations: 35.88 kB / 420.1 MB, free: 88 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00107/2.314, allocations: 367.2 kB / 420.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003006/2.314, allocations: 159.9 kB / 420.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.003309/2.318, allocations: 1.262 MB / 421.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001861/2.319, allocations: 136 kB / 422 MB, free: 14.18 MB / 330.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.0004294/2.32, allocations: 189.7 kB / 422.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00305/2.323, allocations: 1.454 MB / 423.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/2.323, allocations: 0 / 423.6 MB, free: 12.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002221/2.325, allocations: 1.181 MB / 424.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/2.328, allocations: 296.6 kB / 425.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007058/2.335, allocations: 2.48 MB / 427.6 MB, free: 8.441 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001874/2.337, allocations: 1.243 MB / 428.8 MB, free: 7.168 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/2.337, allocations: 0 / 428.8 MB, free: 7.168 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat