Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.779/1.779, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.564e-05, allocations: 4 kB / 219.5 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2592, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1269/0.3862, allocations: 72.18 MB / 330.5 MB, free: 5.637 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.3866, allocations: 67.95 kB / 330.6 MB, free: 5.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1043/0.4908, allocations: 31.62 MB / 362.2 MB, free: 5.938 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4909, allocations: 8 kB / 362.2 MB, free: 5.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.528e-05/0.491, allocations: 12 kB / 362.2 MB, free: 5.918 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.00196/0.4929, allocations: 1.28 MB / 363.5 MB, free: 4.539 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.493, allocations: 12.03 kB / 363.5 MB, free: 4.527 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003379/0.4933, allocations: 126.5 kB / 363.6 MB, free: 4.402 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.4945, allocations: 0.5129 MB / 364.1 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.81e-05/0.4946, allocations: 19.98 kB / 364.2 MB, free: 3.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.4948, allocations: 24 kB / 364.2 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001026/0.4958, allocations: 435.7 kB / 364.6 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.4972, allocations: 0.5872 MB / 365.2 MB, free: 2.777 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4972, allocations: 3.938 kB / 365.2 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.883e-05/0.4973, allocations: 11.98 kB / 365.2 MB, free: 2.762 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/0.4973, allocations: 4 kB / 365.2 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.4998, allocations: 0.9927 MB / 366.2 MB, free: 1.723 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001298/0.5011, allocations: 0.6625 MB / 366.9 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.5024, allocations: 0.653 MB / 367.5 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.5024, allocations: 0 / 367.5 MB, free: 404 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2126/0.715, allocations: 0.7519 MB / 368.3 MB, free: 90.03 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.148e-06/0.7151, allocations: 2.625 kB / 368.3 MB, free: 90.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002902/0.718, allocations: 1.089 MB / 369.4 MB, free: 89.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001935/0.7183, allocations: 321.6 kB / 369.7 MB, free: 89.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002958/0.7212, allocations: 1.382 MB / 371.1 MB, free: 89.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.7215, allocations: 44.98 kB / 371.1 MB, free: 89.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.7217, allocations: 243.4 kB / 371.3 MB, free: 89.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.7219, allocations: 81.83 kB / 371.4 MB, free: 89.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-05/0.722, allocations: 13 kB / 371.4 MB, free: 89.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.426e-05/0.7221, allocations: 322.3 kB / 371.8 MB, free: 88.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009233/0.723, allocations: 426.8 kB / 372.2 MB, free: 88.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008922/0.7239, allocations: 427.5 kB / 372.6 MB, free: 88.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00058/0.7245, allocations: 290.4 kB / 372.9 MB, free: 88.83 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7245, allocations: 1.469 kB / 372.9 MB, free: 88.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002226/0.7268, allocations: 0.9763 MB / 373.8 MB, free: 88.78 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000218/0.727, allocations: 292.1 kB / 374.1 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.7271, allocations: 3.781 kB / 374.1 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.7271, allocations: 3.906 kB / 374.1 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.75e-05/0.7271, allocations: 0 / 374.1 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.7272, allocations: 3.094 kB / 374.1 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006438/0.7278, allocations: 54.36 kB / 374.2 MB, free: 88.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.728, allocations: 153.6 kB / 374.3 MB, free: 88.53 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.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.0004851/0.7285, allocations: 460.9 kB / 374.8 MB, free: 88.16 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002337/0.7309, allocations: 1.149 MB / 375.9 MB, free: 88.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.7312, allocations: 134.1 kB / 376.1 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005598/0.7317, allocations: 197.8 kB / 376.3 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.7317, allocations: 3.062 kB / 376.3 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7318, allocations: 3.375 kB / 376.3 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.7318, allocations: 7.109 kB / 376.3 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003645/0.7354, allocations: 1.917 MB / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.7355, allocations: 0 / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.392e-05/0.7355, allocations: 3.531 kB / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.7355, allocations: 0 / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.7357, allocations: 40.27 kB / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.7357, allocations: 3.75 kB / 378.2 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.7357, allocations: 3.562 kB / 378.3 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002393/0.7381, allocations: 1.258 MB / 379.5 MB, free: 87.1 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.7398, allocations: 0.6493 MB / 380.2 MB, free: 86.72 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003428/0.7402, allocations: 62.81 kB / 380.2 MB, free: 86.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000612/0.7408, allocations: 39.22 kB / 380.3 MB, free: 86.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008292/0.7417, allocations: 351.7 kB / 380.6 MB, free: 86.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/0.7419, allocations: 164.9 kB / 380.8 MB, free: 86.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00212/0.7441, allocations: 1.135 MB / 381.9 MB, free: 86.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7441, allocations: 0 / 381.9 MB, free: 86.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008698/0.745, allocations: 144.3 kB / 382 MB, free: 86.13 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,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.002945/0.7479, allocations: 1.913 MB / 383.9 MB, free: 85.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002548/0.7505, allocations: 1.853 MB / 385.8 MB, free: 83.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.7506, allocations: 0 / 385.8 MB, free: 83.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001528/0.7521, allocations: 1.366 MB / 387.2 MB, free: 82.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001888/0.7541, allocations: 298.8 kB / 387.5 MB, free: 82.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/0.7597, allocations: 2.587 MB / 390 MB, free: 80.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.7608, allocations: 1.165 MB / 391.2 MB, free: 79.67 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.7611, allocations: 150.4 kB / 391.4 MB, free: 79.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7611, allocations: 0 / 391.4 MB, free: 79.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.724/3.485, allocations: 13.66 MB / 405 MB, free: 67.5 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat