Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.637/1.637, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.808e-05/2.819e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2529, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.3775, allocations: 72.69 MB / 336.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.3778, allocations: 63.97 kB / 336.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09854/0.4763, allocations: 30.1 MB / 366.7 MB, free: 2.895 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4764, allocations: 0 / 366.7 MB, free: 2.895 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.4764, allocations: 16 kB / 366.7 MB, free: 2.879 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.001699/0.4781, allocations: 1.299 MB / 368 MB, free: 1.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4782, allocations: 8.031 kB / 368 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.4783, allocations: 58.55 kB / 368.1 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002617/0.4786, allocations: 130.4 kB / 368.2 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.4797, allocations: 0.5132 MB / 368.7 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-05/0.4797, allocations: 27.92 kB / 368.7 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.4799, allocations: 28 kB / 368.8 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001433/0.4813, allocations: 0.6066 MB / 369.4 MB, free: 48 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.4814, allocations: 4 kB / 369.4 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.557e-05/0.4815, allocations: 23.94 kB / 369.4 MB, free: 20 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.4815, allocations: 4 kB / 369.4 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2145/0.696, allocations: 457.3 kB / 369.8 MB, free: 88.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.699, allocations: 1.126 MB / 371 MB, free: 88.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.7003, allocations: 0.6914 MB / 371.7 MB, free: 88.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.7013, allocations: 0.6702 MB / 372.3 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.7014, allocations: 0 / 372.3 MB, free: 88.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001164/0.7025, allocations: 0.735 MB / 373.1 MB, free: 87.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.116e-06/0.7026, allocations: 0 / 373.1 MB, free: 87.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002589/0.7052, allocations: 1.403 MB / 374.5 MB, free: 87.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001866/0.7054, allocations: 328.4 kB / 374.8 MB, free: 87.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/0.708, allocations: 1.463 MB / 376.3 MB, free: 86.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.7082, allocations: 43.89 kB / 376.3 MB, free: 86.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.7084, allocations: 248.3 kB / 376.5 MB, free: 86.72 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.7086, allocations: 80.78 kB / 376.6 MB, free: 86.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.7087, allocations: 9.031 kB / 376.6 MB, free: 86.69 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/0.7088, allocations: 329.8 kB / 376.9 MB, free: 86.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008706/0.7096, allocations: 446.2 kB / 377.4 MB, free: 86.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000842/0.7105, allocations: 444.1 kB / 377.8 MB, free: 86.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007772/0.7113, allocations: 0.5737 MB / 378.4 MB, free: 86.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7113, allocations: 3.656 kB / 378.4 MB, free: 86.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002317/0.7136, allocations: 1.295 MB / 379.7 MB, free: 85.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002164/0.7139, allocations: 288.9 kB / 380 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.7139, allocations: 0.9375 kB / 380 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.356e-05/0.7139, allocations: 5.953 kB / 380 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.194e-05/0.714, allocations: 5.953 kB / 380 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.714, allocations: 0 / 380 MB, free: 85.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006769/0.7147, allocations: 50.64 kB / 380 MB, free: 85.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/0.7149, allocations: 125.8 kB / 380.2 MB, free: 85.19 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.0004596/0.7154, allocations: 459.2 kB / 380.6 MB, free: 84.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.7156, allocations: 134.9 kB / 380.7 MB, free: 84.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005154/0.7161, allocations: 204.4 kB / 380.9 MB, free: 84.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.7161, allocations: 0 / 380.9 MB, free: 84.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.7161, allocations: 11.36 kB / 380.9 MB, free: 84.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.7161, allocations: 0 / 380.9 MB, free: 84.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003836/0.72, allocations: 2.31 MB / 383.3 MB, free: 83.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.72, allocations: 3.469 kB / 383.3 MB, free: 83.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.727e-05/0.7201, allocations: 0 / 383.3 MB, free: 83.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.7201, allocations: 2.078 kB / 383.3 MB, free: 83.48 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.7202, allocations: 44.92 kB / 383.3 MB, free: 83.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.7202, allocations: 0 / 383.3 MB, free: 83.47 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.7202, allocations: 0 / 383.3 MB, free: 83.47 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002716/0.7229, allocations: 1.624 MB / 384.9 MB, free: 82.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.7245, allocations: 0.6509 MB / 385.6 MB, free: 82.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.7248, allocations: 62.59 kB / 385.6 MB, free: 82.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006003/0.7254, allocations: 50.03 kB / 385.7 MB, free: 82.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008394/0.7262, allocations: 371.1 kB / 386.1 MB, free: 81.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/0.7264, allocations: 137.5 kB / 386.2 MB, free: 81.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002249/0.7287, allocations: 1.209 MB / 387.4 MB, free: 80.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7287, allocations: 3.938 kB / 387.4 MB, free: 80.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007563/0.7295, allocations: 148 kB / 387.5 MB, free: 80.59 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: 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.003104/0.7326, allocations: 2.241 MB / 389.8 MB, free: 78.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.7351, allocations: 1.912 MB / 391.7 MB, free: 76.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.7352, allocations: 0 / 391.7 MB, free: 76.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.7367, allocations: 1.425 MB / 393.1 MB, free: 75.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/0.7386, allocations: 301.4 kB / 393.4 MB, free: 74.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005384/0.744, allocations: 2.662 MB / 396.1 MB, free: 72.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.7451, allocations: 1.17 MB / 397.2 MB, free: 71.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.7453, allocations: 143.7 kB / 397.4 MB, free: 71.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7453, allocations: 0 / 397.4 MB, free: 71.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.772/3.517, allocations: 12.78 MB / 410.2 MB, free: 59.58 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat