Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.754e-05/3.771e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2576, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.3881, allocations: 72.8 MB / 336.6 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002828/0.3885, allocations: 71.95 kB / 336.7 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.106/0.4945, allocations: 30.56 MB / 367.3 MB, free: 2.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4946, allocations: 0 / 367.3 MB, free: 2.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.4946, allocations: 16 kB / 367.3 MB, free: 2.203 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.001911/0.4966, allocations: 1.272 MB / 368.5 MB, free: 0.832 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.714e-05/0.4966, allocations: 12.03 kB / 368.6 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.4968, allocations: 54.55 kB / 368.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002872/0.4971, allocations: 134.5 kB / 368.7 MB, free: 0.625 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.4983, allocations: 0.5129 MB / 369.3 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.618e-05/0.4984, allocations: 31.88 kB / 369.3 MB, free: 32 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.4986, allocations: 28 kB / 369.3 MB, free: 4 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2351/0.7337, allocations: 0.6075 MB / 369.9 MB, free: 87.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.7338, allocations: 0.5 kB / 369.9 MB, free: 87.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.7339, allocations: 17.3 kB / 369.9 MB, free: 87.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.7339, allocations: 2.938 kB / 369.9 MB, free: 87.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.7352, allocations: 450.2 kB / 370.4 MB, free: 87.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002673/0.738, allocations: 1.049 MB / 371.4 MB, free: 87.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.7392, allocations: 0.6825 MB / 372.1 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.7403, allocations: 0.6692 MB / 372.8 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.7404, allocations: 0 / 372.8 MB, free: 87.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001287/0.7417, allocations: 0.7498 MB / 373.5 MB, free: 87.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.076e-06/0.7417, allocations: 3.781 kB / 373.5 MB, free: 87.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002703/0.7444, allocations: 1.397 MB / 374.9 MB, free: 86.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001951/0.7447, allocations: 327.4 kB / 375.3 MB, free: 86.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002906/0.7476, allocations: 1.445 MB / 376.7 MB, free: 86.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002435/0.7479, allocations: 47.73 kB / 376.7 MB, free: 86.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.7481, allocations: 243.9 kB / 377 MB, free: 86.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.7483, allocations: 76.19 kB / 377.1 MB, free: 86.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.582e-05/0.7484, allocations: 13.62 kB / 377.1 MB, free: 86.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.309e-05/0.7484, allocations: 330.8 kB / 377.4 MB, free: 85.71 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009206/0.7494, allocations: 443 kB / 377.8 MB, free: 85.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008678/0.7503, allocations: 440.1 kB / 378.3 MB, free: 85.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008166/0.7511, allocations: 0.5776 MB / 378.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7511, allocations: 0 / 378.8 MB, free: 85.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002512/0.7536, allocations: 1.298 MB / 380.1 MB, free: 84.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002219/0.7539, allocations: 290.3 kB / 380.4 MB, free: 84.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.7539, allocations: 0 / 380.4 MB, free: 84.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.754, allocations: 3.438 kB / 380.4 MB, free: 84.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.096e-05/0.754, allocations: 7.25 kB / 380.4 MB, free: 84.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.754, allocations: 2.25 kB / 380.4 MB, free: 84.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006598/0.7547, allocations: 46.62 kB / 380.5 MB, free: 84.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/0.7549, allocations: 155.3 kB / 380.6 MB, free: 84.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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * 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.0005072/0.7555, allocations: 469.7 kB / 381.1 MB, free: 84.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.7557, allocations: 129.8 kB / 381.2 MB, free: 83.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005695/0.7563, allocations: 204 kB / 381.4 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.7563, allocations: 3.969 kB / 381.4 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.7563, allocations: 0 / 381.4 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.7563, allocations: 3.75 kB / 381.4 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00404/0.7604, allocations: 2.31 MB / 383.7 MB, free: 82.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.7604, allocations: 0 / 383.7 MB, free: 82.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.575e-05/0.7605, allocations: 7.562 kB / 383.7 MB, free: 82.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.7605, allocations: 7.547 kB / 383.7 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.7606, allocations: 38.81 kB / 383.8 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.7606, allocations: 0 / 383.8 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.7606, allocations: 7.031 kB / 383.8 MB, free: 82.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/0.7635, allocations: 1.597 MB / 385.4 MB, free: 81.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001717/0.7653, allocations: 0.6489 MB / 386 MB, free: 81.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.7656, allocations: 65.66 kB / 386.1 MB, free: 81.44 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006127/0.7663, allocations: 43.67 kB / 386.1 MB, free: 81.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008073/0.7671, allocations: 355.6 kB / 386.5 MB, free: 81.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002173/0.7673, allocations: 161.8 kB / 386.6 MB, free: 81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00241/0.7697, allocations: 1.191 MB / 387.8 MB, free: 79.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.112e-06/0.7698, allocations: 3.844 kB / 387.8 MB, free: 79.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008953/0.7707, allocations: 152 kB / 388 MB, free: 79.8 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * 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.003311/0.774, allocations: 2.254 MB / 390.2 MB, free: 77.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002586/0.7767, allocations: 1.893 MB / 392.1 MB, free: 75.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.7767, allocations: 2.719 kB / 392.1 MB, free: 75.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.7783, allocations: 1.388 MB / 393.5 MB, free: 74.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.7802, allocations: 291.6 kB / 393.8 MB, free: 74.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005609/0.7858, allocations: 2.627 MB / 396.4 MB, free: 71.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.7869, allocations: 1.162 MB / 397.6 MB, free: 70.74 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002277/0.7872, allocations: 150.3 kB / 397.7 MB, free: 70.61 MB / 314.7 MB Notification: Performance of SimCode: time 1.633e-06/0.7872, allocations: 3.656 kB / 397.8 MB, free: 70.61 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.674/3.462, allocations: 13.72 MB / 411.5 MB, free: 57.96 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat