Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREGL",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.622/1.622, allocations: 194.9 MB / 202.6 MB, free: 6.91 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2383/1.861, allocations: 46.82 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08786/1.949, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2693/2.218, allocations: 77.18 MB / 371.1 MB, free: 7.191 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/2.218, allocations: 68.48 kB / 371.2 MB, free: 7.191 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.1171/2.335, allocations: 37.84 MB / 409 MB, free: 10.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/2.335, allocations: 8 kB / 409 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/2.336, allocations: 94.95 kB / 409.1 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009149/2.337, allocations: 428.4 kB / 409.5 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.224e-05/2.337, allocations: 19.94 kB / 409.5 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/2.337, allocations: 19.94 kB / 409.6 MB, free: 9.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008924/2.338, allocations: 365.3 kB / 409.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/2.339, allocations: 0.4941 MB / 410.4 MB, free: 9.152 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/2.339, allocations: 0 / 410.4 MB, free: 9.152 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.712e-05/2.339, allocations: 15.23 kB / 410.4 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/2.339, allocations: 7.984 kB / 410.4 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/2.341, allocations: 0.8343 MB / 411.3 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009664/2.342, allocations: 0.5063 MB / 411.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009421/2.343, allocations: 495.5 kB / 412.3 MB, free: 7.824 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/2.343, allocations: 0 / 412.3 MB, free: 7.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/2.344, allocations: 0.6123 MB / 412.9 MB, free: 7.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.264e-06/2.344, allocations: 4 kB / 412.9 MB, free: 7.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001882/2.346, allocations: 0.7773 MB / 413.6 MB, free: 6.676 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002184/2.346, allocations: 285 kB / 413.9 MB, free: 6.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/2.349, allocations: 0.9982 MB / 414.9 MB, free: 5.535 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/2.349, allocations: 41.38 kB / 415 MB, free: 5.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.268e-05/2.349, allocations: 115 kB / 415.1 MB, free: 5.383 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/2.349, allocations: 71.42 kB / 415.1 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.582e-05/2.349, allocations: 9.438 kB / 415.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/2.349, allocations: 360 kB / 415.5 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008695/2.35, allocations: 343.9 kB / 415.8 MB, free: 4.742 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008799/2.351, allocations: 347.1 kB / 416.2 MB, free: 4.488 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/2.352, allocations: 249.5 kB / 416.4 MB, free: 4.246 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/2.352, allocations: 0 / 416.4 MB, free: 4.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001777/2.354, allocations: 0.7392 MB / 417.2 MB, free: 3.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/2.354, allocations: 4 kB / 417.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/2.354, allocations: 4 kB / 417.2 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/2.354, allocations: 0 / 417.2 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.549e-05/2.354, allocations: 0 / 417.2 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/2.354, allocations: 11.94 kB / 417.2 MB, free: 3.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/2.354, allocations: 27.89 kB / 417.2 MB, free: 3.453 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002676/2.355, allocations: 152.1 kB / 417.4 MB, free: 3.305 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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.000553/2.355, allocations: 413.4 kB / 417.8 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/2.355, allocations: 90.97 kB / 417.9 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004908/2.356, allocations: 147.7 kB / 418 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/2.356, allocations: 4 kB / 418 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/2.356, allocations: 0 / 418 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/2.356, allocations: 3.984 kB / 418 MB, free: 2.609 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/2.359, allocations: 1.481 MB / 419.5 MB, free: 1.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/2.359, allocations: 3.984 kB / 419.5 MB, free: 1.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.703e-05/2.359, allocations: 8 kB / 419.5 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/2.359, allocations: 0 / 419.5 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/2.359, allocations: 35.98 kB / 419.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/2.359, allocations: 0 / 419.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/2.359, allocations: 0 / 419.5 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002039/2.361, allocations: 0.9393 MB / 420.5 MB, free: 84 kB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002189/2.363, allocations: 1.319 MB / 421.8 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/2.365, allocations: 0.5814 MB / 422.4 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003261/2.365, allocations: 63.95 kB / 422.4 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005822/2.366, allocations: 23.98 kB / 422.5 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006897/2.367, allocations: 243.3 kB / 422.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002917/2.367, allocations: 159.9 kB / 422.9 MB, free: 13.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.001832/2.369, allocations: 0.8421 MB / 423.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001574/2.37, allocations: 104 kB / 423.8 MB, free: 12.72 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.0003623/2.371, allocations: 184.4 kB / 424 MB, free: 12.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002191/2.373, allocations: 1.097 MB / 425.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/2.373, allocations: 0 / 425.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/2.375, allocations: 0.9293 MB / 426 MB, free: 10.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002126/2.377, allocations: 274.1 kB / 426.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/2.381, allocations: 1.725 MB / 428 MB, free: 8.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/2.382, allocations: 1.061 MB / 429.1 MB, free: 7.312 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/2.382, allocations: 0 / 429.1 MB, free: 7.312 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat