Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.792/1.792, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.159e-05/2.17e-05, allocations: 4 kB / 219.6 MB, free: 6.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2876, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.416, allocations: 72.15 MB / 330.5 MB, free: 5.637 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.4163, allocations: 67.95 kB / 330.6 MB, free: 5.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1022/0.5185, allocations: 30.36 MB / 360.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5186, allocations: 0 / 360.9 MB, free: 7.211 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.236e-05/0.5186, allocations: 16 kB / 360.9 MB, free: 7.195 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.00184/0.5205, allocations: 1.276 MB / 362.2 MB, free: 5.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.5206, allocations: 8.031 kB / 362.2 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.5209, allocations: 126.5 kB / 362.3 MB, free: 5.688 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.522, allocations: 0.509 MB / 362.8 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.436e-05/0.5221, allocations: 24 kB / 362.9 MB, free: 5.105 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001315/0.5222, allocations: 27.94 kB / 362.9 MB, free: 5.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001042/0.5233, allocations: 443.8 kB / 363.3 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.5246, allocations: 0.5797 MB / 363.9 MB, free: 4.059 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.5247, allocations: 3.938 kB / 363.9 MB, free: 4.055 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.931e-05/0.5248, allocations: 11.98 kB / 363.9 MB, free: 4.043 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.5248, allocations: 4 kB / 363.9 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.5272, allocations: 0.9966 MB / 364.9 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.5286, allocations: 0.6625 MB / 365.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.5298, allocations: 0.6568 MB / 366.2 MB, free: 1.668 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.5299, allocations: 4 kB / 366.2 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001452/0.5313, allocations: 0.7592 MB / 367 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.977e-06/0.5314, allocations: 0 / 367 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.2149/0.7463, allocations: 1.073 MB / 368.1 MB, free: 90.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003229/0.7467, allocations: 325.2 kB / 368.4 MB, free: 89.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.7502, allocations: 1.388 MB / 369.8 MB, free: 89.45 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002509/0.7505, allocations: 41.77 kB / 369.8 MB, free: 89.42 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.7508, allocations: 215.3 kB / 370 MB, free: 89.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.751, allocations: 85.97 kB / 370.1 MB, free: 89.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.662e-05/0.7511, allocations: 11.56 kB / 370.1 MB, free: 89.32 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.7512, allocations: 368.9 kB / 370.5 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008943/0.7521, allocations: 430.4 kB / 370.9 MB, free: 89 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008886/0.753, allocations: 423.3 kB / 371.3 MB, free: 89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005833/0.7536, allocations: 289.5 kB / 371.6 MB, free: 89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.7536, allocations: 0 / 371.6 MB, free: 89 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002324/0.756, allocations: 1.012 MB / 372.6 MB, free: 88.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002348/0.7562, allocations: 290.1 kB / 372.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.7563, allocations: 1.062 kB / 372.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.7563, allocations: 4.438 kB / 372.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.008e-05/0.7563, allocations: 5.781 kB / 372.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.7564, allocations: 4.625 kB / 372.9 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006239/0.757, allocations: 46.94 kB / 373 MB, free: 88.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002674/0.7573, allocations: 149.6 kB / 373.1 MB, free: 88.68 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: 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.0005145/0.7578, allocations: 467.5 kB / 373.6 MB, free: 88.32 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002403/0.7602, allocations: 1.146 MB / 374.7 MB, free: 88.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.7605, allocations: 137.8 kB / 374.8 MB, free: 88.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005672/0.761, allocations: 200.3 kB / 375 MB, free: 88.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.7611, allocations: 0 / 375 MB, free: 88.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.7611, allocations: 2.188 kB / 375 MB, free: 88.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.7611, allocations: 0 / 375 MB, free: 88.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003454/0.7646, allocations: 1.926 MB / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.7646, allocations: 7.641 kB / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.175e-05/0.7646, allocations: 0 / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.7647, allocations: 0 / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001035/0.7648, allocations: 40.23 kB / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.7648, allocations: 0 / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.7648, allocations: 0 / 377 MB, free: 87.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.7672, allocations: 1.253 MB / 378.3 MB, free: 87.52 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.7688, allocations: 0.6611 MB / 378.9 MB, free: 87.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.7691, allocations: 63.66 kB / 379 MB, free: 87.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.7697, allocations: 35.92 kB / 379 MB, free: 87.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008235/0.7705, allocations: 358.7 kB / 379.4 MB, free: 87.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/0.7708, allocations: 170 kB / 379.5 MB, free: 87.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002115/0.7729, allocations: 1.13 MB / 380.7 MB, free: 86.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.773, allocations: 0 / 380.7 MB, free: 86.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009174/0.7739, allocations: 144 kB / 380.8 MB, free: 86.7 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: 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.002875/0.7768, allocations: 1.9 MB / 382.7 MB, free: 85.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00253/0.7794, allocations: 1.857 MB / 384.6 MB, free: 84.5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.7794, allocations: 0 / 384.6 MB, free: 84.5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.781, allocations: 1.362 MB / 385.9 MB, free: 83.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/0.7829, allocations: 309.7 kB / 386.2 MB, free: 83.45 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.7885, allocations: 2.494 MB / 388.7 MB, free: 81.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.7896, allocations: 1.164 MB / 389.9 MB, free: 80.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002899/0.7899, allocations: 75.12 kB / 390 MB, free: 80.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/0.7901, allocations: 148.8 kB / 390.1 MB, free: 80.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7901, allocations: 0 / 390.1 MB, free: 80.72 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06685/0.857, allocations: 19.2 MB / 409.3 MB, free: 63.15 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.8572, allocations: 132.6 kB / 409.4 MB, free: 62.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.678/3.536, allocations: 0 / 409.4 MB, free: 62.96 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat