Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREG",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.627/1.627, allocations: 194.9 MB / 202.6 MB, free: 6.902 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2292/1.857, allocations: 46.82 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/1.944, allocations: 44.51 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.276/2.22, allocations: 76.96 MB / 370.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/2.221, allocations: 64.8 kB / 370.9 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.08234/2.303, allocations: 27.09 MB / 398 MB, free: 14.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/2.303, allocations: 8.656 kB / 398 MB, free: 14.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002398/2.303, allocations: 88.25 kB / 398.1 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009463/2.304, allocations: 428 kB / 398.5 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/2.304, allocations: 16 kB / 398.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/2.304, allocations: 23.19 kB / 398.6 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008885/2.305, allocations: 355.4 kB / 398.9 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/2.306, allocations: 488.1 kB / 399.4 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/2.306, allocations: 1.281 kB / 399.4 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.893e-05/2.307, allocations: 10.88 kB / 399.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/2.307, allocations: 7.281 kB / 399.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/2.309, allocations: 0.908 MB / 400.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009684/2.31, allocations: 0.4914 MB / 400.8 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009308/2.311, allocations: 488.6 kB / 401.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.918e-06/2.311, allocations: 2.281 kB / 401.3 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/2.312, allocations: 0.5922 MB / 401.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.126e-06/2.312, allocations: 1.156 kB / 401.9 MB, free: 13.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001914/2.314, allocations: 0.7465 MB / 402.6 MB, free: 13.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002923/2.314, allocations: 279.9 kB / 402.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/2.317, allocations: 0.9935 MB / 403.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001812/2.318, allocations: 38.58 kB / 403.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/2.318, allocations: 118.4 kB / 404.1 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/2.318, allocations: 76.23 kB / 404.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.512e-05/2.318, allocations: 7.562 kB / 404.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/2.318, allocations: 349.6 kB / 404.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/2.319, allocations: 339 kB / 404.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008697/2.32, allocations: 341.7 kB / 405.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006439/2.32, allocations: 245 kB / 405.4 MB, free: 12.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/2.32, allocations: 0 / 405.4 MB, free: 12.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001816/2.322, allocations: 0.722 MB / 406.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/2.322, allocations: 5.531 kB / 406.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.505e-06/2.322, allocations: 0 / 406.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/2.322, allocations: 1.062 kB / 406.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.419e-05/2.322, allocations: 1.094 kB / 406.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/2.322, allocations: 4.984 kB / 406.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006689/2.323, allocations: 41.12 kB / 406.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002396/2.323, allocations: 124.1 kB / 406.3 MB, free: 11.86 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * 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.0005551/2.324, allocations: 407.7 kB / 406.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/2.324, allocations: 90.06 kB / 406.8 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005653/2.325, allocations: 145.1 kB / 406.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/2.325, allocations: 5.875 kB / 406.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/2.325, allocations: 0 / 406.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/2.325, allocations: 0.5312 kB / 406.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/2.328, allocations: 1.459 MB / 408.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/2.328, allocations: 0 / 408.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.443e-05/2.328, allocations: 11.94 kB / 408.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/2.328, allocations: 0 / 408.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/2.328, allocations: 35.47 kB / 408.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/2.328, allocations: 0 / 408.4 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/2.328, allocations: 7.906 kB / 408.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002022/2.33, allocations: 0.919 MB / 409.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002181/2.333, allocations: 1.304 MB / 410.7 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/2.334, allocations: 0.5721 MB / 411.2 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003038/2.334, allocations: 61.22 kB / 411.3 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006395/2.335, allocations: 39.22 kB / 411.3 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006903/2.336, allocations: 234.4 kB / 411.5 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002491/2.336, allocations: 131 kB / 411.7 MB, free: 7.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001891/2.338, allocations: 0.8236 MB / 412.5 MB, free: 7.156 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001688/2.34, allocations: 119.6 kB / 412.6 MB, free: 7.043 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * 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.0003773/2.34, allocations: 180.2 kB / 412.8 MB, free: 6.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002229/2.342, allocations: 1.078 MB / 413.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/2.342, allocations: 0 / 413.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001716/2.344, allocations: 0.9501 MB / 414.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/2.346, allocations: 254.8 kB / 415.1 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/2.351, allocations: 1.712 MB / 416.8 MB, free: 3.242 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/2.352, allocations: 1.053 MB / 417.8 MB, free: 2.16 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/2.352, allocations: 0 / 417.8 MB, free: 2.16 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat