Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.149e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2752, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1308/0.406, allocations: 72.85 MB / 336.7 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.4064, allocations: 63.97 kB / 336.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1078/0.5142, allocations: 31.83 MB / 368.6 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5143, allocations: 0 / 368.6 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.618e-05/0.5144, allocations: 16 kB / 368.6 MB, free: 0.9766 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.215/0.7293, allocations: 1.278 MB / 369.9 MB, free: 87.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.364e-05/0.7294, allocations: 9.25 kB / 369.9 MB, free: 87.46 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002912/0.7297, allocations: 59.81 kB / 369.9 MB, free: 87.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003269/0.7301, allocations: 127.4 kB / 370.1 MB, free: 87.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.7313, allocations: 0.5081 MB / 370.6 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.185e-05/0.7314, allocations: 22.84 kB / 370.6 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.7315, allocations: 32.91 kB / 370.6 MB, free: 87.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.7333, allocations: 0.6164 MB / 371.2 MB, free: 87.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.7333, allocations: 0 / 371.2 MB, free: 87.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.7335, allocations: 15.69 kB / 371.2 MB, free: 87.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.7335, allocations: 2.656 kB / 371.2 MB, free: 87.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.7345, allocations: 453.8 kB / 371.7 MB, free: 87.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.7367, allocations: 1.047 MB / 372.7 MB, free: 86.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.7378, allocations: 0.6853 MB / 373.4 MB, free: 86.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.7389, allocations: 0.6691 MB / 374.1 MB, free: 86.67 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.082e-05/0.7389, allocations: 3.938 kB / 374.1 MB, free: 86.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.7402, allocations: 0.7491 MB / 374.8 MB, free: 86.49 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.086e-06/0.7402, allocations: 0 / 374.8 MB, free: 86.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002685/0.7429, allocations: 1.394 MB / 376.2 MB, free: 86.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001762/0.7431, allocations: 329.7 kB / 376.6 MB, free: 85.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002702/0.7458, allocations: 1.444 MB / 378 MB, free: 85.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.746, allocations: 46.89 kB / 378.1 MB, free: 85.49 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.7462, allocations: 239.3 kB / 378.3 MB, free: 85.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/0.7464, allocations: 82.73 kB / 378.4 MB, free: 85.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.239e-05/0.7465, allocations: 14.56 kB / 378.4 MB, free: 85.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.074e-05/0.7466, allocations: 327.3 kB / 378.7 MB, free: 84.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008903/0.7475, allocations: 440.9 kB / 379.1 MB, free: 84.96 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009022/0.7484, allocations: 446 kB / 379.6 MB, free: 84.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007825/0.7492, allocations: 0.5784 MB / 380.1 MB, free: 84.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.7492, allocations: 0 / 380.1 MB, free: 84.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00238/0.7516, allocations: 1.297 MB / 381.4 MB, free: 83.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002202/0.7518, allocations: 286.3 kB / 381.7 MB, free: 83.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.7518, allocations: 0 / 381.7 MB, free: 83.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.7519, allocations: 0 / 381.7 MB, free: 83.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.964e-05/0.7519, allocations: 7.281 kB / 381.7 MB, free: 83.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.7519, allocations: 3.438 kB / 381.7 MB, free: 83.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006861/0.7526, allocations: 52.73 kB / 381.8 MB, free: 83.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/0.7529, allocations: 154 kB / 381.9 MB, free: 83.57 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.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.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.0004773/0.7534, allocations: 462.9 kB / 382.4 MB, free: 83.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.7536, allocations: 133 kB / 382.5 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000526/0.7541, allocations: 201.5 kB / 382.7 MB, free: 83.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.7541, allocations: 0 / 382.7 MB, free: 83.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.7542, allocations: 5.031 kB / 382.7 MB, free: 83.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.7542, allocations: 0 / 382.7 MB, free: 83.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003861/0.758, allocations: 2.313 MB / 385 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.7581, allocations: 0 / 385 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.7581, allocations: 1.281 kB / 385 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.7581, allocations: 0 / 385 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.7583, allocations: 45.69 kB / 385.1 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.7583, allocations: 0 / 385.1 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7583, allocations: 3.688 kB / 385.1 MB, free: 81.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.7611, allocations: 1.598 MB / 386.7 MB, free: 80.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/0.7627, allocations: 0.6638 MB / 387.3 MB, free: 80.18 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002877/0.763, allocations: 68.5 kB / 387.4 MB, free: 80.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006033/0.7636, allocations: 34.8 kB / 387.4 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008149/0.7644, allocations: 359.6 kB / 387.8 MB, free: 79.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002191/0.7646, allocations: 157.4 kB / 387.9 MB, free: 79.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002272/0.7669, allocations: 1.197 MB / 389.1 MB, free: 78.63 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.767, allocations: 7.406 kB / 389.2 MB, free: 78.63 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008446/0.7678, allocations: 151.2 kB / 389.3 MB, free: 78.49 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,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.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.003252/0.7711, allocations: 2.244 MB / 391.5 MB, free: 76.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.7737, allocations: 1.901 MB / 393.4 MB, free: 74.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.7738, allocations: 0 / 393.4 MB, free: 74.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.7754, allocations: 1.385 MB / 394.8 MB, free: 73.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.7773, allocations: 305.7 kB / 395.1 MB, free: 72.85 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005692/0.783, allocations: 2.613 MB / 397.7 MB, free: 70.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/0.7842, allocations: 1.169 MB / 398.9 MB, free: 69.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002894/0.7845, allocations: 149.2 kB / 399.1 MB, free: 69.29 MB / 314.7 MB Notification: Performance of SimCode: time 1.453e-06/0.7845, allocations: 0 / 399.1 MB, free: 69.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.813/3.598, allocations: 13.72 MB / 412.8 MB, free: 56.6 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat