Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.397e-05/3.402e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2525, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.3766, allocations: 72.55 MB / 336.4 MB, free: 1.113 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.3769, allocations: 71.95 kB / 336.4 MB, free: 1.043 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09677/0.4737, allocations: 27.84 MB / 364.3 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.4737, allocations: 0 / 364.3 MB, free: 5.199 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.746e-05/0.4737, allocations: 12 kB / 364.3 MB, free: 5.188 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001371/0.4751, allocations: 1.015 MB / 365.3 MB, free: 4.082 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.4752, allocations: 8.031 kB / 365.3 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001674/0.4754, allocations: 58.53 kB / 365.4 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002143/0.4756, allocations: 91.06 kB / 365.5 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008749/0.4765, allocations: 423.5 kB / 365.9 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/0.4766, allocations: 27.98 kB / 365.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.4767, allocations: 27.98 kB / 365.9 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.4779, allocations: 0.4983 MB / 366.4 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.478, allocations: 3.938 kB / 366.4 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-05/0.4781, allocations: 12 kB / 366.5 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4781, allocations: 0 / 366.5 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008522/0.4789, allocations: 356 kB / 366.8 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.481, allocations: 0.8522 MB / 367.7 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.4821, allocations: 0.4945 MB / 368.2 MB, free: 1.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009647/0.483, allocations: 492.7 kB / 368.6 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.655e-05/0.4831, allocations: 3.938 kB / 368.6 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2098/0.6929, allocations: 0.6486 MB / 369.3 MB, free: 89.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.529e-06/0.6929, allocations: 0 / 369.3 MB, free: 89.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003142/0.6961, allocations: 1.155 MB / 370.4 MB, free: 88.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001803/0.6963, allocations: 278.6 kB / 370.7 MB, free: 88.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.6985, allocations: 1.017 MB / 371.7 MB, free: 88.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.6987, allocations: 44.56 kB / 371.8 MB, free: 88.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.6988, allocations: 193.7 kB / 372 MB, free: 88.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.6989, allocations: 89 kB / 372 MB, free: 88.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.898e-05/0.699, allocations: 6.656 kB / 372.1 MB, free: 88.08 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.912e-05/0.6991, allocations: 333.2 kB / 372.4 MB, free: 87.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007051/0.6998, allocations: 338.7 kB / 372.7 MB, free: 87.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006677/0.7005, allocations: 347.7 kB / 373.1 MB, free: 87.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006391/0.7012, allocations: 492.5 kB / 373.5 MB, free: 87.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.7012, allocations: 3.094 kB / 373.5 MB, free: 87.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001979/0.7032, allocations: 1.088 MB / 374.6 MB, free: 87.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001833/0.7034, allocations: 242.1 kB / 374.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.7034, allocations: 0 / 374.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.7034, allocations: 3.938 kB / 374.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.707e-05/0.7035, allocations: 3.844 kB / 374.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.7035, allocations: 0 / 374.9 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/0.7041, allocations: 45.69 kB / 374.9 MB, free: 87.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002064/0.7043, allocations: 146.3 kB / 375.1 MB, free: 87.05 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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,$PRE.dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.0004163/0.7047, allocations: 411 kB / 375.5 MB, free: 86.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.7049, allocations: 90.95 kB / 375.5 MB, free: 86.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004118/0.7053, allocations: 147.5 kB / 375.7 MB, free: 86.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.7053, allocations: 0 / 375.7 MB, free: 86.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.7054, allocations: 0.875 kB / 375.7 MB, free: 86.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.7054, allocations: 3.953 kB / 375.7 MB, free: 86.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003215/0.7086, allocations: 1.943 MB / 377.6 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7086, allocations: 0 / 377.6 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.183e-05/0.7087, allocations: 7.219 kB / 377.6 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.7087, allocations: 0 / 377.6 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.785e-05/0.7088, allocations: 37.64 kB / 377.7 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.7088, allocations: 3.469 kB / 377.7 MB, free: 86.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.7088, allocations: 5.172 kB / 377.7 MB, free: 86.01 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.7111, allocations: 1.359 MB / 379 MB, free: 85.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001254/0.7124, allocations: 0.5581 MB / 379.6 MB, free: 85.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.7127, allocations: 62.53 kB / 379.7 MB, free: 85.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.7132, allocations: 36.84 kB / 379.7 MB, free: 85.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005735/0.7138, allocations: 239.7 kB / 379.9 MB, free: 85.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002117/0.714, allocations: 163.4 kB / 380.1 MB, free: 85.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001621/0.7157, allocations: 0.8482 MB / 380.9 MB, free: 85.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7157, allocations: 2.562 kB / 380.9 MB, free: 85.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006598/0.7164, allocations: 119.7 kB / 381.1 MB, free: 85.01 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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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.002766/0.7191, allocations: 1.992 MB / 383.1 MB, free: 83.81 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.7212, allocations: 1.49 MB / 384.5 MB, free: 82.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.7213, allocations: 0 / 384.5 MB, free: 82.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001243/0.7225, allocations: 1.111 MB / 385.7 MB, free: 82.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.7244, allocations: 284.3 kB / 385.9 MB, free: 81.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004129/0.7285, allocations: 1.94 MB / 387.9 MB, free: 80.1 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00078/0.7293, allocations: 1.034 MB / 388.9 MB, free: 79.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.7295, allocations: 74.94 kB / 389 MB, free: 79.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.422e-06/0.7295, allocations: 0 / 389 MB, free: 79.07 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.58/3.31, allocations: 9.411 MB / 398.4 MB, free: 71.5 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat