Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.091/2.091, allocations: 225.8 MB / 239.3 MB, free: 1.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.004e-05/3.021e-05, allocations: 4 kB / 292.8 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50.41 MB / 343.2 MB, free: 8.984 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4918/0.6028, allocations: 83 MB / 426.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.6031, allocations: 63.19 kB / 426.2 MB, free: 8.371 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09112/0.6942, allocations: 28.26 MB / 454.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6943, allocations: 3.938 kB / 454.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.852e-05/0.6943, allocations: 12 kB / 454.5 MB, free: 13.52 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.001925/0.6963, allocations: 1.012 MB / 455.5 MB, free: 12.47 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/0.6963, allocations: 12.03 kB / 455.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002519/0.6966, allocations: 59.98 kB / 455.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.6969, allocations: 90.95 kB / 455.7 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.698, allocations: 425.3 kB / 456.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.648e-05/0.6981, allocations: 18.56 kB / 456.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.6983, allocations: 31.39 kB / 456.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.6996, allocations: 0.4986 MB / 456.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.6997, allocations: 0 / 456.6 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.995e-05/0.6998, allocations: 18.86 kB / 456.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.6998, allocations: 4 kB / 456.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009045/0.7007, allocations: 351.3 kB / 457 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.7031, allocations: 0.8656 MB / 457.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.7044, allocations: 0.5006 MB / 458.4 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.7055, allocations: 0.4892 MB / 458.8 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.7055, allocations: 0 / 458.8 MB, free: 9.879 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001426/0.707, allocations: 0.643 MB / 459.5 MB, free: 9.312 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 7.153e-06/0.707, allocations: 0 / 459.5 MB, free: 9.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002857/0.7099, allocations: 1.185 MB / 460.7 MB, free: 8.305 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002848/0.7102, allocations: 284.6 kB / 461 MB, free: 7.984 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/0.7131, allocations: 1.027 MB / 462 MB, free: 7.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/0.7134, allocations: 40.14 kB / 462 MB, free: 7.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.7136, allocations: 145.5 kB / 462.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.7138, allocations: 78.7 kB / 462.2 MB, free: 6.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.928e-05/0.7139, allocations: 15.3 kB / 462.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.7141, allocations: 338.8 kB / 462.6 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008754/0.715, allocations: 363.3 kB / 462.9 MB, free: 6.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008176/0.7159, allocations: 347.4 kB / 463.3 MB, free: 6.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008643/0.7167, allocations: 0.4895 MB / 463.8 MB, free: 5.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.7168, allocations: 0 / 463.8 MB, free: 5.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002534/0.7193, allocations: 1.119 MB / 464.9 MB, free: 4.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002712/0.7196, allocations: 245.2 kB / 465.1 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.7197, allocations: 0 / 465.1 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.7197, allocations: 0 / 465.1 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.078e-05/0.7197, allocations: 4 kB / 465.1 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.7198, allocations: 3.938 kB / 465.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.7204, allocations: 47.5 kB / 465.2 MB, free: 4.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002821/0.7207, allocations: 155.3 kB / 465.3 MB, free: 4.266 MB / 346.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.0005823/0.7213, allocations: 402.2 kB / 465.7 MB, free: 3.848 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.7215, allocations: 94.91 kB / 465.8 MB, free: 3.758 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005131/0.7221, allocations: 155.2 kB / 466 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.7221, allocations: 0 / 466 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.7221, allocations: 8 kB / 466 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.7221, allocations: 7.922 kB / 466 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004098/0.7262, allocations: 1.946 MB / 467.9 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.7263, allocations: 0 / 467.9 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.808e-05/0.7263, allocations: 4 kB / 467.9 MB, free: 1.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.7264, allocations: 7.891 kB / 467.9 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.7265, allocations: 35.8 kB / 468 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.7265, allocations: 7.984 kB / 468 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.7265, allocations: 0 / 468 MB, free: 1.918 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.7294, allocations: 1.371 MB / 469.4 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001482/0.7309, allocations: 0.5549 MB / 469.9 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002663/0.7312, allocations: 70.97 kB / 470 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005565/0.7318, allocations: 31.97 kB / 470 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006405/0.7324, allocations: 244.6 kB / 470.2 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002942/0.7328, allocations: 151.7 kB / 470.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002021/0.7348, allocations: 0.857 MB / 471.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.7348, allocations: 0 / 471.3 MB, free: 15.24 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008557/0.7357, allocations: 127.4 kB / 471.4 MB, free: 15.12 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.003714/0.7394, allocations: 2.004 MB / 473.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.7422, allocations: 1.504 MB / 474.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.7423, allocations: 0 / 474.9 MB, free: 11.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.7441, allocations: 1.113 MB / 476 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.7461, allocations: 286.8 kB / 476.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005254/0.7513, allocations: 1.899 MB / 478.2 MB, free: 8.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.7526, allocations: 1.031 MB / 479.2 MB, free: 7.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.7528, allocations: 37.5 kB / 479.2 MB, free: 7.223 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.753, allocations: 79.41 kB / 479.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.753, allocations: 0 / 479.3 MB, free: 7.145 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05583/0.8088, allocations: 16.45 MB / 495.8 MB, free: 6.598 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003401/0.8093, allocations: 155.4 kB / 495.9 MB, free: 6.367 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.576, allocations: 3.938 kB / 495.9 MB, free: 6.363 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat