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.627/1.627, allocations: 171.3 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.08e-05/2.104e-05, allocations: 4 kB / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2568, allocations: 38.78 MB / 258.3 MB, free: 12.27 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.3806, allocations: 71.89 MB / 330.2 MB, free: 5.953 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/0.3809, allocations: 75.95 kB / 330.3 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09383/0.4748, allocations: 27.65 MB / 358 MB, free: 10.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4748, allocations: 0 / 358 MB, free: 10.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.4749, allocations: 8 kB / 358 MB, free: 10.24 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.4762, allocations: 1.031 MB / 359 MB, free: 9.117 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.4763, allocations: 8.031 kB / 359 MB, free: 9.109 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.4765, allocations: 87 kB / 359.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008198/0.4773, allocations: 415.6 kB / 359.5 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.836e-05/0.4774, allocations: 23.89 kB / 359.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.4775, allocations: 20 kB / 359.5 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007845/0.4783, allocations: 340.2 kB / 359.9 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.4794, allocations: 486.3 kB / 360.3 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.4794, allocations: 0 / 360.3 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.414e-05/0.4795, allocations: 15.98 kB / 360.4 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4795, allocations: 0 / 360.4 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.4813, allocations: 0.8171 MB / 361.2 MB, free: 6.844 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009149/0.4822, allocations: 494.4 kB / 361.7 MB, free: 6.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008738/0.4831, allocations: 480.6 kB / 362.1 MB, free: 5.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.4831, allocations: 3.984 kB / 362.1 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00112/0.4843, allocations: 0.6469 MB / 362.8 MB, free: 5.188 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.625e-06/0.4843, allocations: 0 / 362.8 MB, free: 5.188 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002177/0.4865, allocations: 0.8939 MB / 363.7 MB, free: 4.289 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002039/0.4867, allocations: 283.2 kB / 364 MB, free: 3.957 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/0.4887, allocations: 0.9762 MB / 364.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.4888, allocations: 45.69 kB / 365 MB, free: 2.922 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.4889, allocations: 149.9 kB / 365.1 MB, free: 2.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00015/0.4891, allocations: 75.11 kB / 365.2 MB, free: 2.695 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.338e-05/0.4892, allocations: 11.94 kB / 365.2 MB, free: 2.684 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4893, allocations: 342.8 kB / 365.5 MB, free: 2.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007263/0.4901, allocations: 336.1 kB / 365.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007067/0.4908, allocations: 328.5 kB / 366.2 MB, free: 1.691 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005064/0.4913, allocations: 241.4 kB / 366.4 MB, free: 1.457 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4913, allocations: 0 / 366.4 MB, free: 1.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001971/0.4933, allocations: 0.837 MB / 367.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000228/0.4936, allocations: 243.8 kB / 367.5 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.4936, allocations: 3.984 kB / 367.5 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.4936, allocations: 0 / 367.5 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.4e-05/0.4937, allocations: 4 kB / 367.5 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.4937, allocations: 0 / 367.5 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.4942, allocations: 43.81 kB / 367.6 MB, free: 288 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/0.4945, allocations: 152.2 kB / 367.7 MB, free: 136 kB / 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.2075/0.702, allocations: 398 kB / 368.1 MB, free: 91.2 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002681/0.7047, allocations: 0.9572 MB / 369 MB, free: 91.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002145/0.7049, allocations: 92.55 kB / 369.1 MB, free: 91.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004773/0.7054, allocations: 146.1 kB / 369.3 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.7054, allocations: 5.406 kB / 369.3 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.7055, allocations: 0 / 369.3 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.7055, allocations: 1.031 kB / 369.3 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003022/0.7085, allocations: 1.607 MB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.7085, allocations: 0 / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.7086, allocations: 5.938 kB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.7086, allocations: 5.812 kB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.7087, allocations: 42.61 kB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.7087, allocations: 1.406 kB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.7087, allocations: 1.906 kB / 370.9 MB, free: 90.75 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.711, allocations: 1.047 MB / 372 MB, free: 90.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.7123, allocations: 0.558 MB / 372.6 MB, free: 90.4 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002818/0.7126, allocations: 63.11 kB / 372.6 MB, free: 90.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005346/0.7131, allocations: 32.66 kB / 372.6 MB, free: 90.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005945/0.7137, allocations: 244.3 kB / 372.9 MB, free: 90.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/0.714, allocations: 157.2 kB / 373 MB, free: 90.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001477/0.7155, allocations: 0.8243 MB / 373.9 MB, free: 90.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7155, allocations: 0 / 373.9 MB, free: 90.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007309/0.7163, allocations: 116.2 kB / 374 MB, free: 90.18 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.002373/0.7187, allocations: 1.689 MB / 375.7 MB, free: 89.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.7206, allocations: 1.467 MB / 377.1 MB, free: 89.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.7206, allocations: 0 / 377.1 MB, free: 89.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.7218, allocations: 1.092 MB / 378.2 MB, free: 88.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001779/0.7236, allocations: 295.6 kB / 378.5 MB, free: 88.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003979/0.7276, allocations: 1.835 MB / 380.3 MB, free: 87.43 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008176/0.7284, allocations: 1.038 MB / 381.4 MB, free: 86.64 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002094/0.7286, allocations: 46.8 kB / 381.4 MB, free: 86.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.7288, allocations: 72.84 kB / 381.5 MB, free: 86.57 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7288, allocations: 6.359 kB / 381.5 MB, free: 86.57 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05952/0.7883, allocations: 15.64 MB / 397.1 MB, free: 75.58 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001862/0.7886, allocations: 129.1 kB / 397.3 MB, free: 75.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.594/3.382, allocations: 0 / 397.3 MB, free: 75.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