Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGSRL",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.67/1.67, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2808/1.951, allocations: 46.81 MB / 249.4 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0892/2.041, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2808/2.321, allocations: 77.33 MB / 371.2 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/2.322, allocations: 68.77 kB / 371.3 MB, free: 7.141 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.1236/2.445, allocations: 39.24 MB / 410.5 MB, free: 8.535 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/2.445, allocations: 8 kB / 410.5 MB, free: 8.527 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005109/2.446, allocations: 134.4 kB / 410.7 MB, free: 8.395 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00149/2.447, allocations: 0.5237 MB / 411.2 MB, free: 7.891 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.088e-05/2.448, allocations: 22.83 kB / 411.2 MB, free: 7.871 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/2.448, allocations: 24 kB / 411.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001282/2.449, allocations: 466 kB / 411.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/2.451, allocations: 0.6024 MB / 412.3 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/2.451, allocations: 0 / 412.3 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/2.451, allocations: 23.61 kB / 412.3 MB, free: 7.047 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/2.451, allocations: 4 kB / 412.3 MB, free: 7.043 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003602/2.455, allocations: 1.157 MB / 413.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/2.456, allocations: 0.6853 MB / 414.2 MB, free: 5.703 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001384/2.458, allocations: 0.6802 MB / 414.9 MB, free: 5.324 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/2.458, allocations: 4 kB / 414.9 MB, free: 5.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001534/2.459, allocations: 0.7128 MB / 415.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.668e-06/2.459, allocations: 0 / 415.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.00261/2.462, allocations: 0.9461 MB / 416.5 MB, free: 3.977 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003517/2.462, allocations: 334.6 kB / 416.8 MB, free: 3.609 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004844/2.467, allocations: 1.57 MB / 418.4 MB, free: 2.195 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002808/2.468, allocations: 41.7 kB / 418.5 MB, free: 2.148 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002881/2.468, allocations: 162.4 kB / 418.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/2.468, allocations: 74.77 kB / 418.7 MB, free: 1.914 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/2.468, allocations: 8 kB / 418.7 MB, free: 1.906 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003516/2.469, allocations: 390.6 kB / 419.1 MB, free: 1.516 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/2.47, allocations: 447.8 kB / 419.5 MB, free: 1.078 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/2.471, allocations: 455.8 kB / 420 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007962/2.472, allocations: 307.4 kB / 420.3 MB, free: 340 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/2.472, allocations: 0 / 420.3 MB, free: 340 kB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002545/2.475, allocations: 0.8987 MB / 421.2 MB, free: 15.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/2.475, allocations: 7.938 kB / 421.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/2.475, allocations: 0 / 421.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/2.475, allocations: 0 / 421.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.738e-05/2.475, allocations: 7.938 kB / 421.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/2.475, allocations: 0 / 421.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008287/2.476, allocations: 47.75 kB / 421.2 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/2.476, allocations: 128.2 kB / 421.3 MB, free: 15.24 MB / 330.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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.000749/2.477, allocations: 451.5 kB / 421.8 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/2.477, allocations: 134.4 kB / 421.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/2.478, allocations: 247.9 kB / 422.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.505e-06/2.478, allocations: 0 / 422.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/2.478, allocations: 7.938 kB / 422.2 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/2.478, allocations: 8 kB / 422.2 MB, free: 14.35 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005214/2.483, allocations: 1.864 MB / 424 MB, free: 12.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/2.483, allocations: 4 kB / 424 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.187e-05/2.484, allocations: 0 / 424 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.19e-05/2.484, allocations: 3.984 kB / 424 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001773/2.484, allocations: 35.27 kB / 424.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/2.484, allocations: 0 / 424.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/2.484, allocations: 15.84 kB / 424.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002907/2.487, allocations: 1.133 MB / 425.2 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003087/2.49, allocations: 1.523 MB / 426.7 MB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/2.492, allocations: 0.6902 MB / 427.4 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004769/2.493, allocations: 59.97 kB / 427.5 MB, free: 8.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008334/2.494, allocations: 43.81 kB / 427.5 MB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001222/2.495, allocations: 387.6 kB / 427.9 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003899/2.495, allocations: 131.9 kB / 428 MB, free: 8.363 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.003954/2.499, allocations: 1.287 MB / 429.3 MB, free: 7.074 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002026/2.501, allocations: 132 kB / 429.5 MB, free: 6.945 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.0006006/2.502, allocations: 189.7 kB / 429.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003465/2.506, allocations: 1.438 MB / 431.1 MB, free: 5.266 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/2.506, allocations: 0 / 431.1 MB, free: 5.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/2.508, allocations: 1.216 MB / 432.3 MB, free: 4 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/2.511, allocations: 296.7 kB / 432.6 MB, free: 3.711 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008867/2.52, allocations: 2.519 MB / 435.1 MB, free: 1.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/2.522, allocations: 1.234 MB / 436.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.733e-06/2.522, allocations: 4 kB / 436.3 MB, free: 15.89 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat