Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.856/1.856, allocations: 194.9 MB / 208 MB, free: 3.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.923e-05/2.933e-05, allocations: 4 kB / 255.5 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09133, allocations: 44.51 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4367/0.528, allocations: 78.12 MB / 378.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5284, allocations: 65.94 kB / 378.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09163/0.62, allocations: 31.2 MB / 409.3 MB, free: 6.363 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.6201, allocations: 0 / 409.3 MB, free: 6.363 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.691e-05/0.6201, allocations: 19.5 kB / 409.4 MB, free: 6.359 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001544/0.6217, allocations: 1.301 MB / 410.7 MB, free: 5.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.6217, allocations: 11.59 kB / 410.7 MB, free: 5.281 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/0.6219, allocations: 60.73 kB / 410.7 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.6221, allocations: 127.7 kB / 410.9 MB, free: 5.176 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009855/0.6231, allocations: 0.5186 MB / 411.4 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.6232, allocations: 21.75 kB / 411.4 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.6233, allocations: 26.62 kB / 411.4 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.6246, allocations: 0.6173 MB / 412 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.6246, allocations: 0 / 412 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.26e-05/0.6247, allocations: 11.16 kB / 412.1 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.6247, allocations: 3.875 kB / 412.1 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009035/0.6257, allocations: 465.1 kB / 412.5 MB, free: 4.598 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.6279, allocations: 1.093 MB / 413.6 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.6291, allocations: 0.6944 MB / 414.3 MB, free: 3.914 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00102/0.6301, allocations: 0.6777 MB / 415 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.6301, allocations: 0 / 415 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.6314, allocations: 0.7527 MB / 415.7 MB, free: 3.527 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.056e-06/0.6314, allocations: 0 / 415.7 MB, free: 3.527 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002636/0.634, allocations: 1.418 MB / 417.1 MB, free: 3.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/0.6342, allocations: 328.9 kB / 417.5 MB, free: 2.691 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003252/0.6375, allocations: 1.606 MB / 419.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002261/0.6378, allocations: 43.23 kB / 419.1 MB, free: 2.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002873/0.6381, allocations: 232.1 kB / 419.3 MB, free: 1.898 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000165/0.6382, allocations: 84.5 kB / 419.4 MB, free: 1.852 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.6383, allocations: 11.44 kB / 419.4 MB, free: 1.852 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.6385, allocations: 388.2 kB / 419.8 MB, free: 1.508 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009016/0.6394, allocations: 450.2 kB / 420.3 MB, free: 1.445 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00085/0.6403, allocations: 449.7 kB / 420.7 MB, free: 1.395 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007779/0.641, allocations: 0.586 MB / 421.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.6411, allocations: 0 / 421.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002472/0.6435, allocations: 1.344 MB / 422.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.6438, allocations: 288.7 kB / 422.9 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.6438, allocations: 0 / 422.9 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.6439, allocations: 7.938 kB / 422.9 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.098e-05/0.6439, allocations: 7.812 kB / 422.9 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.6439, allocations: 0 / 422.9 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006619/0.6446, allocations: 46.89 kB / 423 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.6448, allocations: 159.6 kB / 423.1 MB, free: 296 kB / 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.00053/0.6454, allocations: 466.8 kB / 423.6 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002327/0.6456, allocations: 139.4 kB / 423.7 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007765/0.6464, allocations: 249.7 kB / 424 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.6464, allocations: 3.953 kB / 424 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.6465, allocations: 0 / 424 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.6465, allocations: 3.984 kB / 424 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004409/0.6509, allocations: 2.397 MB / 426.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.651, allocations: 0 / 426.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.353e-05/0.651, allocations: 3.219 kB / 426.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.651, allocations: 0 / 426.4 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.6511, allocations: 41.97 kB / 426.4 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.6512, allocations: 0 / 426.4 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6512, allocations: 0 / 426.4 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/0.6542, allocations: 1.623 MB / 428 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/0.656, allocations: 0.6733 MB / 428.7 MB, free: 13.63 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002764/0.6563, allocations: 60.69 kB / 428.8 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.657, allocations: 50 kB / 428.8 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008242/0.6578, allocations: 346.8 kB / 429.2 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002193/0.6581, allocations: 165.3 kB / 429.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003085/0.6612, allocations: 1.315 MB / 430.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6612, allocations: 0 / 430.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008358/0.662, allocations: 148.4 kB / 430.8 MB, free: 12.99 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.003653/0.6657, allocations: 2.274 MB / 433 MB, free: 11.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003033/0.6688, allocations: 1.903 MB / 435 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/0.6688, allocations: 0 / 435 MB, free: 10.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.6709, allocations: 1.391 MB / 436.3 MB, free: 9.492 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.673, allocations: 308.8 kB / 436.6 MB, free: 9.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007248/0.6803, allocations: 2.704 MB / 439.3 MB, free: 6.441 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001506/0.6818, allocations: 1.228 MB / 440.6 MB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005321/0.6824, allocations: 186.9 kB / 440.8 MB, free: 5.008 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.6827, allocations: 151.4 kB / 440.9 MB, free: 4.859 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6827, allocations: 4 kB / 440.9 MB, free: 4.855 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0727/0.7554, allocations: 22.04 MB / 463 MB, free: 14.46 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003194/0.7558, allocations: 152.7 kB / 463.1 MB, free: 14.23 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.804/3.56, allocations: 4 kB / 463.1 MB, free: 14.23 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat