Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.98e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09168, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4144/0.5061, allocations: 77.91 MB / 377.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.5065, allocations: 69.53 kB / 377.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1213/0.6278, allocations: 37.63 MB / 415.6 MB, free: 4.477 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6278, allocations: 4 kB / 415.6 MB, free: 4.473 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.438e-05/0.6279, allocations: 11.62 kB / 415.6 MB, free: 4.473 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.001519/0.6294, allocations: 1.011 MB / 416.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.6295, allocations: 7.75 kB / 416.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001903/0.6297, allocations: 60.8 kB / 416.7 MB, free: 3.551 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002629/0.63, allocations: 89.7 kB / 416.8 MB, free: 3.504 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009887/0.631, allocations: 417 kB / 417.2 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.918e-05/0.6311, allocations: 19.38 kB / 417.2 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.6312, allocations: 23.44 kB / 417.2 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001494/0.6327, allocations: 0.504 MB / 417.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.6328, allocations: 0 / 417.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.6329, allocations: 19.36 kB / 417.7 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.6329, allocations: 7.812 kB / 417.7 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.634, allocations: 361.6 kB / 418.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002373/0.6364, allocations: 0.859 MB / 418.9 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.6377, allocations: 0.5018 MB / 419.4 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.6389, allocations: 0.4969 MB / 419.9 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.6389, allocations: 3.875 kB / 419.9 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001457/0.6404, allocations: 0.6442 MB / 420.6 MB, free: 2.078 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.128e-06/0.6404, allocations: 0 / 420.6 MB, free: 2.078 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.003265/0.6437, allocations: 1.186 MB / 421.8 MB, free: 1.645 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001855/0.6439, allocations: 275.2 kB / 422 MB, free: 1.355 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.6468, allocations: 1.028 MB / 423.1 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001703/0.647, allocations: 41.11 kB / 423.1 MB, free: 0.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.6471, allocations: 198.1 kB / 423.3 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001951/0.6474, allocations: 72.3 kB / 423.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.6475, allocations: 15.5 kB / 423.4 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.6476, allocations: 322.1 kB / 423.7 MB, free: 408 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.6486, allocations: 353.4 kB / 424.1 MB, free: 360 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.6496, allocations: 352.1 kB / 424.4 MB, free: 312 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009368/0.6506, allocations: 0.4895 MB / 424.9 MB, free: 24 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.6506, allocations: 3.953 kB / 424.9 MB, free: 20 kB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003214/0.6539, allocations: 1.109 MB / 426 MB, free: 15.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003196/0.6542, allocations: 250.4 kB / 426.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.6542, allocations: 0 / 426.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.6543, allocations: 4 kB / 426.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.532e-05/0.6543, allocations: 3.75 kB / 426.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.6544, allocations: 0 / 426.3 MB, free: 15.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007955/0.6552, allocations: 37.34 kB / 426.3 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003157/0.6555, allocations: 158 kB / 426.4 MB, free: 15.37 MB / 330.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.0007002/0.6562, allocations: 409.3 kB / 426.8 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002726/0.6565, allocations: 92.34 kB / 426.9 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006483/0.6572, allocations: 151.5 kB / 427.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.6572, allocations: 3.875 kB / 427.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6572, allocations: 0 / 427.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.6572, allocations: 3.984 kB / 427.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005154/0.6624, allocations: 1.954 MB / 429 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.6625, allocations: 0 / 429 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.55e-05/0.6625, allocations: 7.969 kB / 429 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.6625, allocations: 0 / 429 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.6627, allocations: 38.38 kB / 429.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.185e-06/0.6627, allocations: 3.984 kB / 429.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/0.6627, allocations: 3.984 kB / 429.1 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003636/0.6664, allocations: 1.365 MB / 430.5 MB, free: 13.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001979/0.6684, allocations: 0.5704 MB / 431 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003691/0.6688, allocations: 63.36 kB / 431.1 MB, free: 13.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008044/0.6696, allocations: 40.84 kB / 431.1 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008486/0.6705, allocations: 239.7 kB / 431.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000302/0.6708, allocations: 151.6 kB / 431.5 MB, free: 13.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002519/0.6733, allocations: 0.8558 MB / 432.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.22e-07/0.6733, allocations: 0 / 432.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001081/0.6744, allocations: 127.5 kB / 432.5 MB, free: 12.71 MB / 330.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.004334/0.6788, allocations: 2.006 MB / 434.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.6813, allocations: 1.51 MB / 436 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6813, allocations: 0 / 436 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.683, allocations: 1.115 MB / 437.1 MB, free: 9.551 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.6851, allocations: 271.6 kB / 437.4 MB, free: 9.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005588/0.6907, allocations: 1.96 MB / 439.3 MB, free: 7.281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.6919, allocations: 1.039 MB / 440.4 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.6921, allocations: 75.42 kB / 440.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6921, allocations: 0 / 440.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.622/3.314, allocations: 9.45 MB / 449.9 MB, free: 12.55 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGL_res.mat does not exist to compare? outputFormat=mat