Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.834/1.834, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.74e-05/3.754e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1227, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.5282, allocations: 78.01 MB / 378 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.5285, allocations: 70.86 kB / 378 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09068/0.6191, allocations: 30.73 MB / 408.8 MB, free: 6.824 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.6192, allocations: 3.984 kB / 408.8 MB, free: 6.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.657e-05/0.6192, allocations: 23.5 kB / 408.8 MB, free: 6.812 MB / 314.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.001425/0.6207, allocations: 1.32 MB / 410.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.6207, allocations: 7.688 kB / 410.1 MB, free: 5.723 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001177/0.6209, allocations: 61.45 kB / 410.2 MB, free: 5.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.6211, allocations: 132.8 kB / 410.3 MB, free: 5.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008733/0.622, allocations: 0.5114 MB / 410.8 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.923e-05/0.622, allocations: 19.53 kB / 410.8 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.6221, allocations: 31.16 kB / 410.9 MB, free: 5.258 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.6234, allocations: 0.6154 MB / 411.5 MB, free: 5.102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.6234, allocations: 3.984 kB / 411.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-05/0.6235, allocations: 23.23 kB / 411.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.6235, allocations: 3.875 kB / 411.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009067/0.6245, allocations: 469.9 kB / 412 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002261/0.6267, allocations: 1.162 MB / 413.1 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.6278, allocations: 0.6966 MB / 413.8 MB, free: 4.344 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.6288, allocations: 0.6861 MB / 414.5 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.418e-06/0.6289, allocations: 0 / 414.5 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.6301, allocations: 0.7381 MB / 415.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.454e-06/0.6301, allocations: 0 / 415.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002543/0.6326, allocations: 1.413 MB / 416.7 MB, free: 3.453 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.6328, allocations: 335.9 kB / 417 MB, free: 3.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003074/0.6359, allocations: 1.613 MB / 418.6 MB, free: 2.477 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.636, allocations: 45.34 kB / 418.7 MB, free: 2.441 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.6363, allocations: 251.9 kB / 418.9 MB, free: 2.281 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.6364, allocations: 79.98 kB / 419 MB, free: 2.234 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.755e-05/0.6365, allocations: 19.44 kB / 419 MB, free: 2.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.434e-05/0.6366, allocations: 322.5 kB / 419.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000865/0.6375, allocations: 451.5 kB / 419.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008421/0.6383, allocations: 452.8 kB / 420.2 MB, free: 1.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007502/0.6391, allocations: 0.5951 MB / 420.8 MB, free: 1.469 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.6391, allocations: 3.938 kB / 420.8 MB, free: 1.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002278/0.6414, allocations: 1.296 MB / 422.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002091/0.6416, allocations: 293.3 kB / 422.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.6416, allocations: 0 / 422.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/0.6417, allocations: 4 kB / 422.4 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.08e-05/0.6417, allocations: 3.984 kB / 422.4 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.6417, allocations: 3.938 kB / 422.4 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.6424, allocations: 50.27 kB / 422.4 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.6426, allocations: 123.7 kB / 422.6 MB, free: 0.7227 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.0004465/0.643, allocations: 464.4 kB / 423 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001906/0.6432, allocations: 136.2 kB / 423.2 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006384/0.6439, allocations: 253.8 kB / 423.4 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.6439, allocations: 0 / 423.4 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6439, allocations: 0 / 423.4 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.6439, allocations: 0 / 423.4 MB, free: 116 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/0.6481, allocations: 2.406 MB / 425.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.6482, allocations: 0 / 425.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.483e-05/0.6482, allocations: 3.75 kB / 425.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.6482, allocations: 0 / 425.8 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001029/0.6483, allocations: 43.25 kB / 425.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.6484, allocations: 0 / 425.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.6484, allocations: 3.953 kB / 425.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.6513, allocations: 1.633 MB / 427.5 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/0.6529, allocations: 0.6741 MB / 428.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.6532, allocations: 62.73 kB / 428.2 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006186/0.6539, allocations: 41.81 kB / 428.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008964/0.6548, allocations: 382.3 kB / 428.6 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.655, allocations: 131.7 kB / 428.8 MB, free: 13.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003614/0.6586, allocations: 1.336 MB / 430.1 MB, free: 13.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6586, allocations: 0 / 430.1 MB, free: 13.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001091/0.6597, allocations: 145.6 kB / 430.2 MB, free: 13.4 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.004802/0.6646, allocations: 2.269 MB / 432.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00451/0.6691, allocations: 1.919 MB / 434.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6691, allocations: 0 / 434.4 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003035/0.6722, allocations: 1.435 MB / 435.9 MB, free: 9.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002633/0.6748, allocations: 312.1 kB / 436.2 MB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01017/0.685, allocations: 2.848 MB / 439 MB, free: 7.105 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002351/0.6874, allocations: 1.219 MB / 440.2 MB, free: 5.855 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.6878, allocations: 139.4 kB / 440.4 MB, free: 5.719 MB / 330.7 MB Notification: Performance of SimCode: time 1.293e-06/0.6878, allocations: 0 / 440.4 MB, free: 5.719 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.788/3.476, allocations: 13.78 MB / 454.2 MB, free: 7.754 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat