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.668/1.668, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.133e-05/4.135e-05, allocations: 4 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2692, allocations: 38.77 MB / 263.9 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.3971, allocations: 72.57 MB / 336.4 MB, free: 1.184 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.3974, allocations: 67.97 kB / 336.5 MB, free: 1.117 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1033/0.5007, allocations: 27.84 MB / 364.3 MB, free: 5.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5007, allocations: 0 / 364.3 MB, free: 5.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.114e-05/0.5008, allocations: 12 kB / 364.3 MB, free: 5.258 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.001382/0.5021, allocations: 1.015 MB / 365.4 MB, free: 4.152 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.498e-05/0.5022, allocations: 12.03 kB / 365.4 MB, free: 4.141 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.5023, allocations: 58.55 kB / 365.4 MB, free: 4.074 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.5026, allocations: 83.06 kB / 365.5 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.5034, allocations: 423.5 kB / 365.9 MB, free: 3.539 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.425e-05/0.5035, allocations: 23.98 kB / 365.9 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.5036, allocations: 24 kB / 366 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.5049, allocations: 0.5022 MB / 366.5 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.5049, allocations: 0 / 366.5 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.523e-05/0.505, allocations: 12 kB / 366.5 MB, free: 2.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.505, allocations: 4 kB / 366.5 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008588/0.5059, allocations: 348.2 kB / 366.8 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.5078, allocations: 0.852 MB / 367.7 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.5088, allocations: 0.4945 MB / 368.2 MB, free: 1.219 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.5098, allocations: 496.7 kB / 368.7 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.218e-06/0.5098, allocations: 0 / 368.7 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.5111, allocations: 0.6547 MB / 369.3 MB, free: 36 kB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.635e-06/0.5111, allocations: 0 / 369.3 MB, free: 36 kB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.2359/0.747, allocations: 1.152 MB / 370.5 MB, free: 89.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.7473, allocations: 274.5 kB / 370.7 MB, free: 88.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00215/0.7494, allocations: 1.021 MB / 371.8 MB, free: 88.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.7496, allocations: 44.05 kB / 371.8 MB, free: 88.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.7497, allocations: 199.8 kB / 372 MB, free: 88.44 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.7498, allocations: 74.94 kB / 372.1 MB, free: 88.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.131e-05/0.7499, allocations: 13.89 kB / 372.1 MB, free: 88.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.75, allocations: 329.5 kB / 372.4 MB, free: 88.1 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006791/0.7507, allocations: 341.3 kB / 372.7 MB, free: 88.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006655/0.7513, allocations: 344 kB / 373.1 MB, free: 88.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006264/0.752, allocations: 0.4925 MB / 373.6 MB, free: 87.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.752, allocations: 0 / 373.6 MB, free: 87.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001958/0.754, allocations: 1.084 MB / 374.6 MB, free: 87.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.7542, allocations: 240.9 kB / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.7542, allocations: 6.984 kB / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.626e-05/0.7542, allocations: 0 / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.231e-05/0.7543, allocations: 3.625 kB / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.7543, allocations: 0 / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.7548, allocations: 44 kB / 374.9 MB, free: 87.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002067/0.7551, allocations: 149 kB / 375.1 MB, free: 87.39 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.0004228/0.7555, allocations: 402.1 kB / 375.5 MB, free: 87.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.7557, allocations: 88.53 kB / 375.6 MB, free: 87.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000358/0.756, allocations: 144.9 kB / 375.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.756, allocations: 3.625 kB / 375.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.7561, allocations: 6.297 kB / 375.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.7561, allocations: 3.469 kB / 375.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.7591, allocations: 1.938 MB / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7592, allocations: 0 / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.667e-05/0.7592, allocations: 7.672 kB / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.7592, allocations: 0 / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.231e-05/0.7593, allocations: 36.89 kB / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.7593, allocations: 5.422 kB / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.7593, allocations: 3.938 kB / 377.7 MB, free: 86.35 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.7616, allocations: 1.361 MB / 379.1 MB, free: 85.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00113/0.7628, allocations: 0.5608 MB / 379.6 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002349/0.763, allocations: 58.67 kB / 379.7 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005209/0.7636, allocations: 36.41 kB / 379.7 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000556/0.7641, allocations: 239 kB / 380 MB, free: 85.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/0.7643, allocations: 157.3 kB / 380.1 MB, free: 85.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001487/0.7658, allocations: 0.8489 MB / 381 MB, free: 85.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7659, allocations: 0 / 381 MB, free: 85.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006264/0.7665, allocations: 121.5 kB / 381.1 MB, free: 85.36 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.002666/0.7692, allocations: 2.003 MB / 383.1 MB, free: 84.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.7712, allocations: 1.497 MB / 384.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.7713, allocations: 0 / 384.6 MB, free: 83.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.7725, allocations: 1.103 MB / 385.7 MB, free: 82.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.7743, allocations: 282.5 kB / 386 MB, free: 82.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.7782, allocations: 1.931 MB / 387.9 MB, free: 80.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007809/0.779, allocations: 1.038 MB / 388.9 MB, free: 79.44 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.7791, allocations: 82.59 kB / 389 MB, free: 79.37 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7792, allocations: 0 / 389 MB, free: 79.37 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.771/3.55, allocations: 9.381 MB / 398.4 MB, free: 71.83 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