Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.588/1.588, allocations: 171.3 MB / 178.4 MB, free: 156 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.638e-05, allocations: 8 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2453, allocations: 38.77 MB / 258.3 MB, free: 12.27 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.3672, allocations: 71.94 MB / 330.3 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.3674, allocations: 63.97 kB / 330.3 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1219/0.4893, allocations: 37.24 MB / 367.6 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4894, allocations: 0 / 367.6 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.4894, allocations: 8 kB / 367.6 MB, free: 0.5859 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.2027/0.6921, allocations: 1.013 MB / 368.6 MB, free: 91.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.6922, allocations: 9.734 kB / 368.6 MB, free: 91.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003204/0.6925, allocations: 87.62 kB / 368.7 MB, free: 91.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009347/0.6935, allocations: 411.9 kB / 369.1 MB, free: 91.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.008e-05/0.6935, allocations: 20.69 kB / 369.1 MB, free: 91.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.6937, allocations: 20.66 kB / 369.1 MB, free: 91.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009697/0.6947, allocations: 342.5 kB / 369.5 MB, free: 91.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.6958, allocations: 489.1 kB / 370 MB, free: 91.31 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.6958, allocations: 0.5938 kB / 370 MB, free: 91.31 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.56e-05/0.6959, allocations: 8 kB / 370 MB, free: 91.31 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.617e-06/0.696, allocations: 2.469 kB / 370 MB, free: 91.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.6977, allocations: 0.8225 MB / 370.8 MB, free: 91.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000826/0.6986, allocations: 495.5 kB / 371.3 MB, free: 91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007854/0.6994, allocations: 478.3 kB / 371.7 MB, free: 91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.6994, allocations: 3.328 kB / 371.7 MB, free: 91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.7005, allocations: 0.6448 MB / 372.4 MB, free: 90.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.386e-06/0.7005, allocations: 0 / 372.4 MB, free: 90.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.00215/0.7026, allocations: 0.89 MB / 373.3 MB, free: 90.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.7028, allocations: 279.8 kB / 373.6 MB, free: 90.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.7047, allocations: 0.9868 MB / 374.5 MB, free: 90.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.7048, allocations: 43.09 kB / 374.6 MB, free: 90.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.705, allocations: 137.5 kB / 374.7 MB, free: 90.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.7051, allocations: 79.59 kB / 374.8 MB, free: 90.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.997e-05/0.7052, allocations: 9.375 kB / 374.8 MB, free: 90.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.353e-05/0.7053, allocations: 349.7 kB / 375.1 MB, free: 89.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006063/0.7059, allocations: 332.9 kB / 375.5 MB, free: 89.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.7065, allocations: 336.3 kB / 375.8 MB, free: 89.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004245/0.7069, allocations: 240.7 kB / 376 MB, free: 89.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.7069, allocations: 0 / 376 MB, free: 89.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001689/0.7086, allocations: 0.839 MB / 376.9 MB, free: 89.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.7088, allocations: 240 kB / 377.1 MB, free: 89.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.7089, allocations: 0 / 377.1 MB, free: 89.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.677e-05/0.7089, allocations: 3.797 kB / 377.1 MB, free: 89.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.418e-05/0.7089, allocations: 7.797 kB / 377.1 MB, free: 89.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.709, allocations: 7.531 kB / 377.1 MB, free: 89.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005416/0.7095, allocations: 40.58 kB / 377.2 MB, free: 89.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.7097, allocations: 144.6 kB / 377.3 MB, free: 89.43 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.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.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.0003987/0.7101, allocations: 401.1 kB / 377.7 MB, free: 89.1 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001902/0.712, allocations: 0.9645 MB / 378.7 MB, free: 88.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/0.7122, allocations: 88.72 kB / 378.7 MB, free: 88.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003949/0.7126, allocations: 156.3 kB / 378.9 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.7126, allocations: 6.469 kB / 378.9 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.7127, allocations: 0 / 378.9 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.7127, allocations: 0 / 378.9 MB, free: 88.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002785/0.7155, allocations: 1.599 MB / 380.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.7155, allocations: 0 / 380.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.706e-05/0.7155, allocations: 0 / 380.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.7155, allocations: 3.953 kB / 380.5 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.18e-05/0.7156, allocations: 45.5 kB / 380.6 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.7156, allocations: 0 / 380.6 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.7157, allocations: 3.594 kB / 380.6 MB, free: 88.04 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.7176, allocations: 1.055 MB / 381.6 MB, free: 87.62 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.7188, allocations: 0.5668 MB / 382.2 MB, free: 87.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002763/0.7191, allocations: 66.95 kB / 382.2 MB, free: 87.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.7196, allocations: 26.72 kB / 382.3 MB, free: 87.25 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005606/0.7202, allocations: 239.4 kB / 382.5 MB, free: 87.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/0.7204, allocations: 161.9 kB / 382.7 MB, free: 87.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001446/0.7219, allocations: 0.8121 MB / 383.5 MB, free: 86.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7219, allocations: 0 / 383.5 MB, free: 86.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006602/0.7226, allocations: 118.6 kB / 383.6 MB, free: 86.82 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,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.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.002362/0.725, allocations: 1.702 MB / 385.3 MB, free: 85.85 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.7269, allocations: 1.461 MB / 386.8 MB, free: 84.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.7269, allocations: 3.531 kB / 386.8 MB, free: 84.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.728, allocations: 1.081 MB / 387.8 MB, free: 83.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.7299, allocations: 295 kB / 388.1 MB, free: 83.72 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003814/0.7337, allocations: 1.851 MB / 390 MB, free: 82.04 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007748/0.7345, allocations: 1.036 MB / 391 MB, free: 81.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.7347, allocations: 40.02 kB / 391.1 MB, free: 81.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.7348, allocations: 74.47 kB / 391.1 MB, free: 80.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7349, allocations: 2.25 kB / 391.1 MB, free: 80.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0665/0.8014, allocations: 15.65 MB / 406.8 MB, free: 66.53 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/0.8016, allocations: 130.2 kB / 406.9 MB, free: 66.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.629/3.43, allocations: 4 kB / 406.9 MB, free: 66.33 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat