Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.425e-05/2.421e-05, allocations: 4 kB / 249.7 MB, free: 14.82 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.2919, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.4269, allocations: 77.21 MB / 371.4 MB, free: 4.613 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.4272, allocations: 63.97 kB / 371.5 MB, free: 4.551 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09397/0.5212, allocations: 27.74 MB / 399.2 MB, free: 8.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5212, allocations: 0 / 399.2 MB, free: 8.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.633e-05/0.5213, allocations: 12 kB / 399.2 MB, free: 8.828 MB / 346.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.001369/0.5227, allocations: 1.012 MB / 400.3 MB, free: 7.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.5227, allocations: 16.03 kB / 400.3 MB, free: 7.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.523, allocations: 90.92 kB / 400.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008923/0.5239, allocations: 415.7 kB / 400.8 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.714e-05/0.5239, allocations: 19.98 kB / 400.8 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.5241, allocations: 20 kB / 400.8 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000858/0.5249, allocations: 340.1 kB / 401.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.526, allocations: 0.4943 MB / 401.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.5261, allocations: 0 / 401.6 MB, free: 6.297 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.397e-05/0.5262, allocations: 8 kB / 401.6 MB, free: 6.289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.5262, allocations: 7.953 kB / 401.7 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001971/0.5282, allocations: 0.8248 MB / 402.5 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009597/0.5292, allocations: 0.4906 MB / 403 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00091/0.5301, allocations: 488.7 kB / 403.4 MB, free: 4.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.5301, allocations: 7.938 kB / 403.5 MB, free: 4.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001208/0.5313, allocations: 0.6431 MB / 404.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.885e-06/0.5314, allocations: 0 / 404.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002302/0.5337, allocations: 0.9133 MB / 405 MB, free: 2.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002096/0.5339, allocations: 279.3 kB / 405.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.5361, allocations: 0.9918 MB / 406.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.5362, allocations: 33.7 kB / 406.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.5364, allocations: 150 kB / 406.5 MB, free: 1.309 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.5365, allocations: 75.11 kB / 406.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/0.5366, allocations: 12 kB / 406.5 MB, free: 1.223 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.5368, allocations: 346.8 kB / 406.9 MB, free: 0.875 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007473/0.5376, allocations: 336.2 kB / 407.2 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007308/0.5383, allocations: 340.5 kB / 407.5 MB, free: 220 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005407/0.5389, allocations: 245.1 kB / 407.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5389, allocations: 0 / 407.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002068/0.541, allocations: 0.8566 MB / 408.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002427/0.5412, allocations: 247.8 kB / 408.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.5413, allocations: 0 / 408.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.5413, allocations: 3.938 kB / 408.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.671e-05/0.5413, allocations: 4 kB / 408.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.5413, allocations: 0 / 408.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005359/0.5419, allocations: 39.88 kB / 408.9 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.5422, allocations: 152.2 kB / 409.1 MB, free: 14.63 MB / 362.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.0005303/0.5427, allocations: 409.7 kB / 409.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002321/0.545, allocations: 0.9806 MB / 410.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.5452, allocations: 87.06 kB / 410.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004845/0.5457, allocations: 152.1 kB / 410.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.5458, allocations: 4 kB / 410.7 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.5458, allocations: 3.938 kB / 410.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5458, allocations: 4 kB / 410.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003423/0.5492, allocations: 1.619 MB / 412.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.5493, allocations: 0 / 412.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.926e-05/0.5493, allocations: 4 kB / 412.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.5493, allocations: 0 / 412.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5494, allocations: 35.98 kB / 412.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.5494, allocations: 0 / 412.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.5495, allocations: 4 kB / 412.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/0.5518, allocations: 1.08 MB / 413.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001422/0.5533, allocations: 0.5659 MB / 414 MB, free: 9.559 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.5536, allocations: 55.97 kB / 414.1 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005352/0.5541, allocations: 31.97 kB / 414.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006521/0.5548, allocations: 243.7 kB / 414.3 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002585/0.5551, allocations: 163.9 kB / 414.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001728/0.5568, allocations: 0.8149 MB / 415.3 MB, free: 8.262 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5568, allocations: 0 / 415.3 MB, free: 8.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007297/0.5576, allocations: 120 kB / 415.4 MB, free: 8.145 MB / 362.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.002913/0.5605, allocations: 1.717 MB / 417.1 MB, free: 6.398 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.5629, allocations: 1.48 MB / 418.6 MB, free: 4.832 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.563, allocations: 4 kB / 418.6 MB, free: 4.828 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.5645, allocations: 1.089 MB / 419.7 MB, free: 3.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.5664, allocations: 274.9 kB / 420 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.5713, allocations: 1.863 MB / 421.8 MB, free: 1.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.5724, allocations: 1.035 MB / 422.9 MB, free: 428 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002227/0.5727, allocations: 45.73 kB / 422.9 MB, free: 384 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.5728, allocations: 83.41 kB / 423 MB, free: 300 kB / 362.7 MB Notification: Performance of SimCode: time 2.946e-06/0.5728, allocations: 0 / 423 MB, free: 300 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3013/0.8742, allocations: 15.69 MB / 438.7 MB, free: 102.9 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/0.8745, allocations: 140.6 kB / 438.8 MB, free: 102.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.551, allocations: 4 kB / 438.8 MB, free: 102.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat