Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGSRH",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.646/1.646, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2232/1.869, allocations: 46.82 MB / 249.4 MB, free: 5.355 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/1.967, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2813/2.248, allocations: 77.29 MB / 371.2 MB, free: 7.176 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/2.248, allocations: 67.2 kB / 371.3 MB, free: 7.172 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.09308/2.341, allocations: 31.35 MB / 402.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/2.341, allocations: 9.062 kB / 402.6 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003188/2.342, allocations: 132.7 kB / 402.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/2.343, allocations: 0.5159 MB / 403.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.522e-05/2.343, allocations: 24.8 kB / 403.3 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/2.343, allocations: 26.84 kB / 403.3 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/2.344, allocations: 469.1 kB / 403.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/2.346, allocations: 0.6012 MB / 404.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/2.346, allocations: 3.984 kB / 404.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/2.346, allocations: 13.58 kB / 404.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/2.346, allocations: 2.469 kB / 404.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/2.349, allocations: 1.164 MB / 405.6 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/2.351, allocations: 0.6888 MB / 406.2 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/2.352, allocations: 0.6702 MB / 406.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/2.352, allocations: 5.031 kB / 406.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/2.354, allocations: 0.7142 MB / 407.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.387e-06/2.354, allocations: 0 / 407.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002404/2.356, allocations: 0.9505 MB / 408.6 MB, free: 10.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002964/2.356, allocations: 330.5 kB / 408.9 MB, free: 10.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003847/2.36, allocations: 1.575 MB / 410.5 MB, free: 8.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001296/2.36, allocations: 41.58 kB / 410.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/2.36, allocations: 163.4 kB / 410.7 MB, free: 8.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/2.361, allocations: 77.48 kB / 410.8 MB, free: 8.496 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.831e-05/2.361, allocations: 8 kB / 410.8 MB, free: 8.488 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002468/2.361, allocations: 380.1 kB / 411.1 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/2.362, allocations: 456.6 kB / 411.6 MB, free: 7.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/2.363, allocations: 452.1 kB / 412 MB, free: 7.516 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006598/2.364, allocations: 299.5 kB / 412.3 MB, free: 7.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/2.364, allocations: 3.938 kB / 412.3 MB, free: 7.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002219/2.366, allocations: 0.9081 MB / 413.2 MB, free: 6.605 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/2.366, allocations: 8 kB / 413.2 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/2.366, allocations: 0 / 413.2 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/2.366, allocations: 4 kB / 413.2 MB, free: 6.594 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.126e-05/2.366, allocations: 7.625 kB / 413.3 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/2.366, allocations: 3.938 kB / 413.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008336/2.367, allocations: 35.88 kB / 413.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/2.367, allocations: 127.7 kB / 413.4 MB, free: 6.43 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.0006503/2.368, allocations: 455.5 kB / 413.9 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002914/2.368, allocations: 134.4 kB / 414 MB, free: 5.828 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000976/2.369, allocations: 252.7 kB / 414.2 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/2.369, allocations: 4 kB / 414.2 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/2.369, allocations: 0 / 414.2 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/2.369, allocations: 0 / 414.2 MB, free: 5.598 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/2.374, allocations: 1.875 MB / 416.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/2.374, allocations: 0 / 416.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.446e-05/2.374, allocations: 7.984 kB / 416.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/2.374, allocations: 0 / 416.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/2.374, allocations: 38.61 kB / 416.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/2.374, allocations: 0 / 416.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/2.374, allocations: 0 / 416.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002672/2.377, allocations: 1.142 MB / 417.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002802/2.38, allocations: 1.524 MB / 418.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002216/2.382, allocations: 0.6902 MB / 419.5 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003602/2.382, allocations: 59.97 kB / 419.6 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/2.383, allocations: 35.97 kB / 419.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/2.384, allocations: 394.7 kB / 420 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/2.384, allocations: 135.9 kB / 420.1 MB, free: 64 kB / 314.7 MB Notification: Performance of sort global known variables: time 0.003291/2.388, allocations: 1.287 MB / 421.4 MB, free: 14.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001961/2.39, allocations: 132 kB / 421.5 MB, free: 14.64 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,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.0004131/2.39, allocations: 185.7 kB / 421.7 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002968/2.393, allocations: 1.431 MB / 423.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/2.393, allocations: 4 kB / 423.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/2.395, allocations: 1.22 MB / 424.4 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/2.398, allocations: 291.7 kB / 424.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007062/2.405, allocations: 2.523 MB / 427.2 MB, free: 8.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001821/2.407, allocations: 1.239 MB / 428.4 MB, free: 7.598 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/2.407, allocations: 4 kB / 428.4 MB, free: 7.594 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat