Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.29/2.29, allocations: 195 MB / 202.9 MB, free: 6.723 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.218e-05/2.23e-05, allocations: 4.125 kB / 249.8 MB, free: 5.23 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4839/0.594, allocations: 77.2 MB / 371.5 MB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.5943, allocations: 68.64 kB / 371.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09222/0.6865, allocations: 27.77 MB / 399.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6866, allocations: 0 / 399.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.6867, allocations: 11.75 kB / 399.3 MB, free: 14.84 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.001586/0.6883, allocations: 1.017 MB / 400.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.6883, allocations: 11.38 kB / 400.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.6886, allocations: 92.42 kB / 400.5 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009512/0.6896, allocations: 420.5 kB / 400.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.867e-05/0.6897, allocations: 15.28 kB / 400.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.6898, allocations: 19.22 kB / 400.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008375/0.6906, allocations: 344.2 kB / 401.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/0.6918, allocations: 0.4975 MB / 401.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.6918, allocations: 0 / 401.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.966e-05/0.6919, allocations: 11.55 kB / 401.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.692, allocations: 7.828 kB / 401.8 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.6941, allocations: 0.8167 MB / 402.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/0.6951, allocations: 0.4906 MB / 403.1 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008645/0.696, allocations: 488.3 kB / 403.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.696, allocations: 0 / 403.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.6972, allocations: 0.6533 MB / 404.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 6.252e-06/0.6972, allocations: 0 / 404.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002324/0.6996, allocations: 0.9113 MB / 405.1 MB, free: 12.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002401/0.6998, allocations: 284.2 kB / 405.4 MB, free: 12.03 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/0.7021, allocations: 0.979 MB / 406.4 MB, free: 11.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001538/0.7022, allocations: 47.19 kB / 406.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.7024, allocations: 149.4 kB / 406.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.7026, allocations: 84.3 kB / 406.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.321e-05/0.7027, allocations: 15.72 kB / 406.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.7029, allocations: 344.8 kB / 407 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007219/0.7037, allocations: 333.3 kB / 407.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/0.7044, allocations: 336.5 kB / 407.6 MB, free: 11.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005245/0.7049, allocations: 242.7 kB / 407.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.705, allocations: 0 / 407.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002317/0.7073, allocations: 0.8546 MB / 408.7 MB, free: 10.34 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.7076, allocations: 241.4 kB / 409 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.7076, allocations: 0 / 409 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.7076, allocations: 4 kB / 409 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.742e-05/0.7077, allocations: 4 kB / 409 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.7077, allocations: 7.922 kB / 409 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006272/0.7084, allocations: 35.88 kB / 409 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003025/0.7087, allocations: 152.1 kB / 409.2 MB, free: 9.879 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.0006162/0.7093, allocations: 414.2 kB / 409.6 MB, free: 9.449 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002669/0.712, allocations: 0.9778 MB / 410.5 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002451/0.7123, allocations: 87.06 kB / 410.6 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005599/0.7129, allocations: 151 kB / 410.8 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.7129, allocations: 4 kB / 410.8 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7129, allocations: 4 kB / 410.8 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.7129, allocations: 3.984 kB / 410.8 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/0.717, allocations: 1.625 MB / 412.4 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/0.7171, allocations: 0 / 412.4 MB, free: 7.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.402e-05/0.7171, allocations: 4 kB / 412.4 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.7171, allocations: 0 / 412.4 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.7173, allocations: 38.91 kB / 412.5 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.7173, allocations: 0 / 412.5 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.7173, allocations: 0 / 412.5 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.7201, allocations: 1.069 MB / 413.5 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001779/0.7219, allocations: 0.5652 MB / 414.1 MB, free: 5.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003664/0.7223, allocations: 55.16 kB / 414.1 MB, free: 5.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.723, allocations: 41.34 kB / 414.2 MB, free: 5.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007563/0.7238, allocations: 236.9 kB / 414.4 MB, free: 5.605 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003182/0.7241, allocations: 161 kB / 414.6 MB, free: 5.453 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002099/0.7262, allocations: 0.8171 MB / 415.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7262, allocations: 0 / 415.4 MB, free: 4.793 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009132/0.7272, allocations: 116 kB / 415.5 MB, free: 4.68 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.003528/0.7307, allocations: 1.72 MB / 417.2 MB, free: 3.105 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00298/0.7337, allocations: 1.48 MB / 418.7 MB, free: 1.539 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.7338, allocations: 3.938 kB / 418.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.7358, allocations: 1.105 MB / 419.8 MB, free: 356 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/0.7382, allocations: 277.8 kB / 420.1 MB, free: 84 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/0.744, allocations: 1.857 MB / 421.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001309/0.7454, allocations: 1.039 MB / 423 MB, free: 13.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002641/0.7457, allocations: 45.69 kB / 423 MB, free: 13.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.7459, allocations: 75.41 kB / 423.1 MB, free: 13 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7459, allocations: 0 / 423.1 MB, free: 13 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07782/0.8237, allocations: 15.72 MB / 438.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003467/0.8241, allocations: 141.8 kB / 439 MB, free: 12.87 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.46/4.284, allocations: 0 / 439 MB, free: 12.87 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat