Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.607/1.607, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.399e-05, allocations: 4 kB / 225.1 MB, free: 2.246 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2651, allocations: 38.77 MB / 263.9 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.391, allocations: 72.56 MB / 336.4 MB, free: 1.137 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3913, allocations: 67.97 kB / 336.5 MB, free: 1.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09397/0.4853, allocations: 27.85 MB / 364.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4853, allocations: 0 / 364.4 MB, free: 5.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.4854, allocations: 8 kB / 364.4 MB, free: 5.211 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.001335/0.4867, allocations: 1.019 MB / 365.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.4868, allocations: 8.031 kB / 365.4 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001239/0.4869, allocations: 54.55 kB / 365.4 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001915/0.4871, allocations: 87.06 kB / 365.5 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008168/0.4879, allocations: 431.4 kB / 365.9 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-05/0.488, allocations: 24 kB / 366 MB, free: 3.461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.4882, allocations: 20 kB / 366 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.4894, allocations: 0.4905 MB / 366.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.4894, allocations: 4 kB / 366.5 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.986e-05/0.4895, allocations: 19.94 kB / 366.5 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.4895, allocations: 0 / 366.5 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008478/0.4904, allocations: 356.2 kB / 366.9 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.4922, allocations: 0.8481 MB / 367.7 MB, free: 1.672 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.4932, allocations: 0.4945 MB / 368.2 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009609/0.4942, allocations: 492.6 kB / 368.7 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.4943, allocations: 8 kB / 368.7 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2061/0.7004, allocations: 0.6441 MB / 369.3 MB, free: 89.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.469e-06/0.7004, allocations: 1 kB / 369.3 MB, free: 89.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003116/0.7035, allocations: 1.154 MB / 370.5 MB, free: 88.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.7037, allocations: 278 kB / 370.8 MB, free: 88.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.7058, allocations: 1.022 MB / 371.8 MB, free: 88.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-05/0.7059, allocations: 45.58 kB / 371.8 MB, free: 88.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.706, allocations: 148.6 kB / 372 MB, free: 88.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.7062, allocations: 80.53 kB / 372 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.115e-05/0.7063, allocations: 15.08 kB / 372.1 MB, free: 88.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.7064, allocations: 339.3 kB / 372.4 MB, free: 87.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006654/0.707, allocations: 345.3 kB / 372.7 MB, free: 87.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006548/0.7077, allocations: 339 kB / 373.1 MB, free: 87.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006232/0.7083, allocations: 494.3 kB / 373.5 MB, free: 87.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.7084, allocations: 3.406 kB / 373.5 MB, free: 87.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001948/0.7103, allocations: 1.098 MB / 374.6 MB, free: 87.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001645/0.7105, allocations: 240.3 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.7105, allocations: 3.531 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/0.7106, allocations: 10.59 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.386e-05/0.7106, allocations: 3.844 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.7106, allocations: 0 / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.7111, allocations: 46.25 kB / 374.9 MB, free: 87.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002018/0.7114, allocations: 149.4 kB / 375.1 MB, free: 87.11 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.0003859/0.7118, allocations: 405.3 kB / 375.5 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.7119, allocations: 89.72 kB / 375.6 MB, free: 86.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003476/0.7123, allocations: 150.3 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.7123, allocations: 3.406 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.7123, allocations: 0 / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.7123, allocations: 5.875 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003081/0.7154, allocations: 1.933 MB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.7154, allocations: 2.5 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.55e-05/0.7155, allocations: 4.375 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.952e-06/0.7155, allocations: 6.875 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-05/0.7156, allocations: 39.75 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.7156, allocations: 3.656 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.7156, allocations: 3.953 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.7179, allocations: 1.355 MB / 379.1 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.719, allocations: 0.5628 MB / 379.6 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.7192, allocations: 65.36 kB / 379.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005154/0.7198, allocations: 33.84 kB / 379.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005493/0.7203, allocations: 242.3 kB / 380 MB, free: 85.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/0.7206, allocations: 163.5 kB / 380.1 MB, free: 85.43 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001445/0.722, allocations: 0.8479 MB / 381 MB, free: 85.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.722, allocations: 0 / 381 MB, free: 85.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006109/0.7226, allocations: 124.5 kB / 381.1 MB, free: 85.05 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.002652/0.7253, allocations: 1.981 MB / 383.1 MB, free: 83.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.7273, allocations: 1.498 MB / 384.6 MB, free: 82.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7274, allocations: 0 / 384.6 MB, free: 82.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.7286, allocations: 1.103 MB / 385.7 MB, free: 82.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001724/0.7303, allocations: 278.3 kB / 386 MB, free: 81.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.7341, allocations: 1.87 MB / 387.8 MB, free: 80.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007821/0.7349, allocations: 1.034 MB / 388.9 MB, free: 79.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001657/0.7351, allocations: 44.2 kB / 388.9 MB, free: 79.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.7352, allocations: 77.14 kB / 389 MB, free: 79.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.7352, allocations: 0 / 389 MB, free: 79.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.776, allocations: 16.38 MB / 405.4 MB, free: 64.66 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000122/0.7762, allocations: 151.4 kB / 405.5 MB, free: 64.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.253, allocations: 0 / 405.5 MB, free: 64.43 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat