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.655/1.655, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.147e-05/4.151e-05, allocations: 4 kB / 225.1 MB, free: 2.258 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2507, allocations: 38.77 MB / 263.9 MB, free: 9.805 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.3777, allocations: 72.56 MB / 336.4 MB, free: 1.141 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.3781, allocations: 67.97 kB / 336.5 MB, free: 1.074 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09727/0.4754, allocations: 27.85 MB / 364.3 MB, free: 5.227 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4754, allocations: 0 / 364.3 MB, free: 5.227 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.316e-05/0.4755, allocations: 8 kB / 364.3 MB, free: 5.219 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.001443/0.4769, allocations: 1.019 MB / 365.3 MB, free: 4.109 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.477, allocations: 8.031 kB / 365.4 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.4772, allocations: 58.55 kB / 365.4 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.4774, allocations: 83.06 kB / 365.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008899/0.4783, allocations: 435.4 kB / 365.9 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.732e-05/0.4784, allocations: 24 kB / 365.9 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.4785, allocations: 24 kB / 366 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/0.4797, allocations: 0.4905 MB / 366.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4798, allocations: 4 kB / 366.5 MB, free: 2.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-05/0.4799, allocations: 12 kB / 366.5 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.4799, allocations: 0 / 366.5 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008868/0.4808, allocations: 360 kB / 366.8 MB, free: 2.574 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.4828, allocations: 0.8444 MB / 367.7 MB, free: 1.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.4839, allocations: 0.4984 MB / 368.2 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009711/0.4849, allocations: 496.7 kB / 368.7 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.4849, allocations: 7.938 kB / 368.7 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2135/0.6984, allocations: 0.646 MB / 369.3 MB, free: 89.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 5.34e-06/0.6985, allocations: 0 / 369.3 MB, free: 89.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003224/0.7017, allocations: 1.155 MB / 370.5 MB, free: 88.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001853/0.7019, allocations: 276.5 kB / 370.7 MB, free: 88.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/0.7042, allocations: 1.023 MB / 371.8 MB, free: 88.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000187/0.7044, allocations: 43.34 kB / 371.8 MB, free: 88.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.7046, allocations: 148.5 kB / 371.9 MB, free: 88.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.7048, allocations: 76.88 kB / 372 MB, free: 88.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.261e-05/0.7048, allocations: 11.19 kB / 372 MB, free: 88.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/0.7049, allocations: 347.5 kB / 372.4 MB, free: 87.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006976/0.7057, allocations: 346.1 kB / 372.7 MB, free: 87.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006605/0.7063, allocations: 343.2 kB / 373 MB, free: 87.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006472/0.707, allocations: 485.1 kB / 373.5 MB, free: 87.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.707, allocations: 5.172 kB / 373.5 MB, free: 87.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002063/0.7091, allocations: 1.104 MB / 374.6 MB, free: 87.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001904/0.7093, allocations: 243.2 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.7093, allocations: 0 / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.7094, allocations: 3.156 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.786e-05/0.7094, allocations: 6.969 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.7094, allocations: 3.594 kB / 374.9 MB, free: 87.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005638/0.71, allocations: 42.88 kB / 374.9 MB, free: 87.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002096/0.7102, allocations: 147.3 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.0004365/0.7107, allocations: 412.3 kB / 375.5 MB, free: 86.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.7109, allocations: 92.73 kB / 375.6 MB, free: 86.74 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.7113, allocations: 144.2 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-06/0.7113, allocations: 3.656 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.7114, allocations: 0 / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.7114, allocations: 3.953 kB / 375.7 MB, free: 86.67 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003421/0.7148, allocations: 1.939 MB / 377.6 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.83e-06/0.7149, allocations: 0 / 377.6 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-05/0.7149, allocations: 3.281 kB / 377.6 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.7149, allocations: 2.781 kB / 377.6 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.715, allocations: 39.64 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.715, allocations: 3.938 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.7151, allocations: 3.953 kB / 377.7 MB, free: 86.07 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002503/0.7176, allocations: 1.355 MB / 379 MB, free: 85.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.7189, allocations: 0.5582 MB / 379.6 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002463/0.7192, allocations: 67.94 kB / 379.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005546/0.7197, allocations: 36.44 kB / 379.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005917/0.7203, allocations: 240.3 kB / 379.9 MB, free: 85.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/0.7206, allocations: 159.8 kB / 380.1 MB, free: 85.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00168/0.7223, allocations: 0.8524 MB / 381 MB, free: 85.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.7223, allocations: 0 / 381 MB, free: 85.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007565/0.7231, allocations: 121.4 kB / 381.1 MB, free: 85.1 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.002891/0.726, allocations: 1.985 MB / 383.1 MB, free: 83.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.7282, allocations: 1.499 MB / 384.6 MB, free: 82.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7282, allocations: 0 / 384.6 MB, free: 82.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.7295, allocations: 1.106 MB / 385.7 MB, free: 82.13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.7313, allocations: 288.4 kB / 385.9 MB, free: 81.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.7355, allocations: 1.859 MB / 387.8 MB, free: 80.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008403/0.7364, allocations: 1.035 MB / 388.8 MB, free: 79.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.7366, allocations: 36.56 kB / 388.9 MB, free: 79.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.7368, allocations: 82.7 kB / 389 MB, free: 79.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.173e-06/0.7368, allocations: 2.656 kB / 389 MB, free: 79.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04256/0.7793, allocations: 16.39 MB / 405.3 MB, free: 64.62 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.7796, allocations: 145 kB / 405.5 MB, free: 64.4 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.797/3.577, allocations: 4.062 kB / 405.5 MB, free: 64.39 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