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.715/1.715, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.157e-05/3.155e-05, allocations: 7.438 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2528, allocations: 38.77 MB / 263.9 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.3793, allocations: 72.81 MB / 336.7 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.3796, allocations: 63.97 kB / 336.7 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1057/0.4853, allocations: 30.56 MB / 367.3 MB, free: 2.336 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4854, allocations: 4 kB / 367.3 MB, free: 2.332 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.031e-05/0.4854, allocations: 12 kB / 367.3 MB, free: 2.32 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.001829/0.4872, allocations: 1.28 MB / 368.6 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.4873, allocations: 15.97 kB / 368.6 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001616/0.4875, allocations: 58.55 kB / 368.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002652/0.4878, allocations: 126.5 kB / 368.8 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.4889, allocations: 0.5129 MB / 369.3 MB, free: 176 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.622e-05/0.489, allocations: 31.89 kB / 369.3 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.4891, allocations: 28 kB / 369.3 MB, free: 116 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2116/0.7007, allocations: 0.6078 MB / 370 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.7008, allocations: 0.5938 kB / 370 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.7009, allocations: 16.5 kB / 370 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.7009, allocations: 2.594 kB / 370 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.7022, allocations: 450 kB / 370.4 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.7046, allocations: 1.051 MB / 371.5 MB, free: 87.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.7057, allocations: 0.6757 MB / 372.1 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001042/0.7068, allocations: 0.6689 MB / 372.8 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.184e-05/0.7068, allocations: 3.844 kB / 372.8 MB, free: 87.45 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.708, allocations: 0.7526 MB / 373.6 MB, free: 87.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.965e-06/0.708, allocations: 3.156 kB / 373.6 MB, free: 87.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002645/0.7107, allocations: 1.394 MB / 375 MB, free: 86.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/0.7109, allocations: 322.4 kB / 375.3 MB, free: 86.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002601/0.7135, allocations: 1.441 MB / 376.7 MB, free: 86.31 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.7137, allocations: 50.56 kB / 376.8 MB, free: 86.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.7139, allocations: 244.1 kB / 377 MB, free: 86.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.714, allocations: 83.75 kB / 377.1 MB, free: 86.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.478e-05/0.7141, allocations: 11.28 kB / 377.1 MB, free: 86.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.794e-05/0.7142, allocations: 330.5 kB / 377.4 MB, free: 85.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008714/0.7151, allocations: 437.3 kB / 377.8 MB, free: 85.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008478/0.7159, allocations: 444.9 kB / 378.3 MB, free: 85.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007777/0.7167, allocations: 0.5779 MB / 378.9 MB, free: 85.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.7168, allocations: 0 / 378.9 MB, free: 85.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002381/0.7192, allocations: 1.295 MB / 380.2 MB, free: 84.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000209/0.7194, allocations: 293.1 kB / 380.4 MB, free: 84.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.7194, allocations: 3.188 kB / 380.4 MB, free: 84.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.7194, allocations: 0 / 380.4 MB, free: 84.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.894e-05/0.7195, allocations: 7.656 kB / 380.5 MB, free: 84.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.7195, allocations: 0 / 380.5 MB, free: 84.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006603/0.7202, allocations: 50.38 kB / 380.5 MB, free: 84.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/0.7204, allocations: 147.6 kB / 380.6 MB, free: 84.52 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.0004668/0.7209, allocations: 464.1 kB / 381.1 MB, free: 84.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.7211, allocations: 130.9 kB / 381.2 MB, free: 84.06 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005239/0.7216, allocations: 209.2 kB / 381.4 MB, free: 83.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.7217, allocations: 3.875 kB / 381.4 MB, free: 83.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.7217, allocations: 0 / 381.4 MB, free: 83.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.7217, allocations: 0 / 381.4 MB, free: 83.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003731/0.7254, allocations: 2.31 MB / 383.7 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.7255, allocations: 3.438 kB / 383.7 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-05/0.7255, allocations: 8.719 kB / 383.8 MB, free: 82.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.7255, allocations: 3.953 kB / 383.8 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.7256, allocations: 42.33 kB / 383.8 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.7256, allocations: 0 / 383.8 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7257, allocations: 0 / 383.8 MB, free: 82.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.7284, allocations: 1.598 MB / 385.4 MB, free: 82.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.7299, allocations: 0.6582 MB / 386.1 MB, free: 81.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.7302, allocations: 68.64 kB / 386.1 MB, free: 81.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.7308, allocations: 37.47 kB / 386.2 MB, free: 81.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007857/0.7316, allocations: 365 kB / 386.5 MB, free: 81.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/0.7319, allocations: 154.2 kB / 386.7 MB, free: 81.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002216/0.7341, allocations: 1.195 MB / 387.9 MB, free: 80.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.7341, allocations: 0 / 387.9 MB, free: 80.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008191/0.735, allocations: 148 kB / 388 MB, free: 80 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.003154/0.7381, allocations: 2.245 MB / 390.3 MB, free: 77.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.7407, allocations: 1.903 MB / 392.2 MB, free: 75.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7407, allocations: 0 / 392.2 MB, free: 75.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.7423, allocations: 1.387 MB / 393.5 MB, free: 74.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.7441, allocations: 298.6 kB / 393.8 MB, free: 74.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005469/0.7496, allocations: 2.617 MB / 396.5 MB, free: 71.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.7506, allocations: 1.172 MB / 397.6 MB, free: 70.94 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.7509, allocations: 148.5 kB / 397.8 MB, free: 70.8 MB / 314.7 MB Notification: Performance of SimCode: time 1.103e-06/0.7509, allocations: 0 / 397.8 MB, free: 70.8 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.792/3.543, allocations: 13.67 MB / 411.4 MB, free: 58.23 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