Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGL",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.66/1.66, allocations: 194.9 MB / 202.6 MB, free: 13.47 MB / 174.1 MB Notification: Performance of FrontEnd - loaded program: time 0.2074/1.867, allocations: 46.81 MB / 249.4 MB, free: 6.273 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08855/1.956, allocations: 44.49 MB / 293.9 MB, free: 16 kB / 238.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1678/2.124, allocations: 77.01 MB / 370.9 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/2.124, allocations: 67.97 kB / 371 MB, free: 2.82 MB / 318.1 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.233/2.357, allocations: 33.59 MB / 404.6 MB, free: 55.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/2.357, allocations: 12 kB / 404.6 MB, free: 55.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/2.358, allocations: 86.97 kB / 404.7 MB, free: 54.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007443/2.358, allocations: 431.5 kB / 405.1 MB, free: 54.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.953e-05/2.358, allocations: 16 kB / 405.1 MB, free: 54.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/2.358, allocations: 20 kB / 405.1 MB, free: 54.49 MB / 318.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007721/2.359, allocations: 356.1 kB / 405.5 MB, free: 54.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009752/2.36, allocations: 492.7 kB / 405.9 MB, free: 53.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/2.36, allocations: 0 / 405.9 MB, free: 53.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-05/2.36, allocations: 11.98 kB / 406 MB, free: 53.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/2.36, allocations: 4 kB / 406 MB, free: 53.64 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/2.362, allocations: 0.9107 MB / 406.9 MB, free: 52.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008194/2.363, allocations: 0.5025 MB / 407.4 MB, free: 52.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007826/2.364, allocations: 480.9 kB / 407.8 MB, free: 51.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.24e-05/2.364, allocations: 7.938 kB / 407.8 MB, free: 51.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008699/2.365, allocations: 0.5876 MB / 408.4 MB, free: 51.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 3.547e-06/2.365, allocations: 112 / 408.4 MB, free: 51.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001502/2.366, allocations: 0.7503 MB / 409.2 MB, free: 50.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/2.367, allocations: 283.3 kB / 409.5 MB, free: 49.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001778/2.368, allocations: 0.9956 MB / 410.5 MB, free: 48.97 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.525e-05/2.368, allocations: 37.7 kB / 410.5 MB, free: 48.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/2.369, allocations: 121.9 kB / 410.6 MB, free: 48.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/2.369, allocations: 67.17 kB / 410.7 MB, free: 48.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/2.369, allocations: 12 kB / 410.7 MB, free: 48.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/2.369, allocations: 342.8 kB / 411 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006664/2.37, allocations: 335.8 kB / 411.4 MB, free: 48.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000664/2.37, allocations: 343.8 kB / 411.7 MB, free: 47.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004668/2.371, allocations: 247.8 kB / 411.9 MB, free: 47.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/2.371, allocations: 4 kB / 411.9 MB, free: 47.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001405/2.372, allocations: 0.7155 MB / 412.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/2.372, allocations: 4 kB / 412.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/2.372, allocations: 0 / 412.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/2.372, allocations: 8 kB / 412.7 MB, free: 46.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.775e-05/2.372, allocations: 3.938 kB / 412.7 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/2.372, allocations: 0 / 412.7 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004969/2.373, allocations: 39.81 kB / 412.7 MB, free: 46.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/2.373, allocations: 124 kB / 412.8 MB, free: 46.57 MB / 318.1 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.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.0003947/2.373, allocations: 405.8 kB / 413.2 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/2.373, allocations: 86.97 kB / 413.3 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003637/2.374, allocations: 151.5 kB / 413.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/2.374, allocations: 0 / 413.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/2.374, allocations: 0 / 413.5 MB, free: 45.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/2.374, allocations: 4 kB / 413.5 MB, free: 45.88 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/2.376, allocations: 1.459 MB / 414.9 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/2.376, allocations: 0 / 414.9 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-05/2.376, allocations: 0 / 414.9 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/2.376, allocations: 0 / 414.9 MB, free: 44.38 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.465e-05/2.377, allocations: 35.97 kB / 415 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/2.377, allocations: 3.938 kB / 415 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/2.377, allocations: 0 / 415 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00164/2.378, allocations: 0.9355 MB / 415.9 MB, free: 43.39 MB / 318.1 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001704/2.38, allocations: 1.299 MB / 417.2 MB, free: 42.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/2.381, allocations: 0.5776 MB / 417.8 MB, free: 41.47 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/2.382, allocations: 59.88 kB / 417.8 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000555/2.382, allocations: 43.84 kB / 417.9 MB, free: 41.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000578/2.383, allocations: 243.7 kB / 418.1 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/2.383, allocations: 124 kB / 418.2 MB, free: 41.01 MB / 318.1 MB Notification: Performance of sort global known variables: time 0.001475/2.384, allocations: 0.8187 MB / 419.1 MB, free: 40.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001443/2.386, allocations: 108 kB / 419.2 MB, free: 40.09 MB / 318.1 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,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.0002988/2.386, allocations: 188.5 kB / 419.3 MB, free: 39.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001745/2.388, allocations: 1.074 MB / 420.4 MB, free: 38.78 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/2.388, allocations: 0 / 420.4 MB, free: 38.78 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/2.389, allocations: 0.945 MB / 421.4 MB, free: 37.79 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/2.391, allocations: 258.2 kB / 421.6 MB, free: 37.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/2.394, allocations: 1.719 MB / 423.3 MB, free: 35.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009083/2.395, allocations: 1.041 MB / 424.4 MB, free: 34.73 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/2.395, allocations: 3.938 kB / 424.4 MB, free: 34.72 MB / 318.1 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat