Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.947/1.947, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.878e-05/3.887e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09449, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.5069, allocations: 78.16 MB / 378.1 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.5072, allocations: 71.88 kB / 378.2 MB, free: 12.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.6087, allocations: 32.75 MB / 410.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.6088, allocations: 0 / 410.9 MB, free: 5.723 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.858e-05/0.6088, allocations: 19.44 kB / 411 MB, free: 5.719 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.002178/0.611, allocations: 1.301 MB / 412.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.6111, allocations: 11.53 kB / 412.3 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002702/0.6114, allocations: 56.61 kB / 412.3 MB, free: 4.598 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003028/0.6117, allocations: 136.5 kB / 412.5 MB, free: 4.527 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.6128, allocations: 0.516 MB / 413 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.6129, allocations: 21.92 kB / 413 MB, free: 4.172 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.613, allocations: 30.09 kB / 413 MB, free: 4.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.6144, allocations: 0.6136 MB / 413.6 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.6145, allocations: 0 / 413.6 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-05/0.6146, allocations: 22.98 kB / 413.7 MB, free: 4.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.6146, allocations: 3.938 kB / 413.7 MB, free: 4.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009586/0.6156, allocations: 463.7 kB / 414.1 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002444/0.6181, allocations: 1.088 MB / 415.2 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.6194, allocations: 0.6832 MB / 415.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.6206, allocations: 0.6833 MB / 416.6 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.6207, allocations: 0 / 416.6 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/0.622, allocations: 0.7553 MB / 417.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.518e-06/0.6221, allocations: 0 / 417.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002754/0.6249, allocations: 1.409 MB / 418.7 MB, free: 2.379 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002111/0.6251, allocations: 324.5 kB / 419.1 MB, free: 2.055 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003755/0.6289, allocations: 1.601 MB / 420.7 MB, free: 1.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002564/0.6292, allocations: 52.22 kB / 420.7 MB, free: 1.371 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.6295, allocations: 251.2 kB / 421 MB, free: 1.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.6297, allocations: 79.47 kB / 421 MB, free: 1.164 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.616e-05/0.6298, allocations: 15.5 kB / 421 MB, free: 1.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.453e-05/0.6299, allocations: 329.8 kB / 421.4 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00092/0.6308, allocations: 444.2 kB / 421.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008996/0.6317, allocations: 454.9 kB / 422.2 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008033/0.6325, allocations: 0.5773 MB / 422.8 MB, free: 420 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.6326, allocations: 7.938 kB / 422.8 MB, free: 416 kB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002612/0.6352, allocations: 1.316 MB / 424.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003033/0.6355, allocations: 293.2 kB / 424.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.6356, allocations: 0 / 424.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.304e-05/0.6356, allocations: 3.906 kB / 424.4 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.713e-05/0.6357, allocations: 3.938 kB / 424.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.6357, allocations: 3.906 kB / 424.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007327/0.6364, allocations: 50.83 kB / 424.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.6367, allocations: 158.6 kB / 424.6 MB, free: 15.67 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: 43 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.set,$PRE.dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.reset,$PRE.dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.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.0006218/0.6373, allocations: 467.8 kB / 425.1 MB, free: 15.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002981/0.6376, allocations: 128.5 kB / 425.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007972/0.6384, allocations: 255.7 kB / 425.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.6385, allocations: 0 / 425.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6385, allocations: 0 / 425.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.6385, allocations: 0 / 425.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005092/0.6436, allocations: 2.399 MB / 427.9 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.6437, allocations: 3.75 kB / 427.9 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.67e-05/0.6437, allocations: 0 / 427.9 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/0.6437, allocations: 0 / 427.9 MB, free: 14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.6439, allocations: 48.66 kB / 427.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.6439, allocations: 0 / 427.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.6439, allocations: 0 / 427.9 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.6471, allocations: 1.62 MB / 429.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/0.6492, allocations: 0.6773 MB / 430.2 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003354/0.6495, allocations: 63.55 kB / 430.3 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006531/0.6502, allocations: 44.38 kB / 430.3 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008957/0.6511, allocations: 348.2 kB / 430.7 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002643/0.6514, allocations: 157 kB / 430.8 MB, free: 12.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003404/0.6548, allocations: 1.325 MB / 432.1 MB, free: 12.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.12e-07/0.6549, allocations: 0 / 432.1 MB, free: 12.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009994/0.6559, allocations: 147.1 kB / 432.3 MB, free: 12.37 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,dFFREGSRL.delay.inertialDelaySensitive[1].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.dFFSR.set,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.dataIn[1],dFFREGSRL.dFFSR.dataIn[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRL.dFFSR.dataOut[2],dFFREGSRL.dFFSR.dataOut[1],dFFREGSRL.dFFSR.next_assign_val[2],dFFREGSRL.dFFSR.next_assign_val[1],dFFREGSRL.dFFSR.nextstate[2],dFFREGSRL.dFFSR.nextstate[1],dFFREGSRL.dFFSR.reset_set_flag,dFFREGSRL.dFFSR.clock_flag,dFFREGSRL.dFFSR.clock,dFFREGSRL.dFFSR.reset,dFFREGSRL.dFFSR.set,dFFREGSRL.delay.inertialDelaySensitive[2].y,dFFREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[2].t_next,dFFREGSRL.delay.inertialDelaySensitive[2].delayTime,dFFREGSRL.delay.inertialDelaySensitive[2].lh,dFFREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRL.delay.inertialDelaySensitive[2].x,dFFREGSRL.delay.inertialDelaySensitive[1].y,dFFREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRL.delay.inertialDelaySensitive[1].t_next,dFFREGSRL.delay.inertialDelaySensitive[1].delayTime,dFFREGSRL.delay.inertialDelaySensitive[1].lh,dFFREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRL.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.003865/0.6598, allocations: 2.277 MB / 434.6 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003544/0.6634, allocations: 1.902 MB / 436.5 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6634, allocations: 0 / 436.5 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/0.6658, allocations: 1.393 MB / 437.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.668, allocations: 302.5 kB / 438.2 MB, free: 8.039 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008146/0.6762, allocations: 2.811 MB / 441 MB, free: 5.172 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001644/0.6779, allocations: 1.213 MB / 442.2 MB, free: 3.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/0.6782, allocations: 147.4 kB / 442.3 MB, free: 3.793 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.6782, allocations: 0 / 442.3 MB, free: 3.793 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.918/3.596, allocations: 14.9 MB / 457.2 MB, free: 4.676 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat