Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.801/1.801, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.25e-05/2.257e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2613, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1286/0.39, allocations: 72.18 MB / 330.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002607/0.3903, allocations: 63.97 kB / 330.6 MB, free: 5.527 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1057/0.4961, allocations: 31.62 MB / 362.2 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.382e-06/0.4961, allocations: 4 kB / 362.2 MB, free: 5.902 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.255e-05/0.4962, allocations: 16 kB / 362.2 MB, free: 5.887 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.001948/0.4981, allocations: 1.284 MB / 363.5 MB, free: 4.504 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.4982, allocations: 12.03 kB / 363.5 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.4986, allocations: 126.5 kB / 363.6 MB, free: 4.367 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.4997, allocations: 0.5129 MB / 364.2 MB, free: 3.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.132e-05/0.4998, allocations: 16 kB / 364.2 MB, free: 3.789 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.4999, allocations: 27.98 kB / 364.2 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001017/0.501, allocations: 435.7 kB / 364.6 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.5024, allocations: 0.5876 MB / 365.2 MB, free: 2.742 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.5024, allocations: 7.938 kB / 365.2 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.923e-05/0.5025, allocations: 8 kB / 365.2 MB, free: 2.727 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.5025, allocations: 4 kB / 365.2 MB, free: 2.723 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.505, allocations: 0.9966 MB / 366.2 MB, free: 1.684 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.5064, allocations: 0.6625 MB / 366.9 MB, free: 1.012 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/0.5076, allocations: 0.6491 MB / 367.5 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.5076, allocations: 0 / 367.5 MB, free: 368 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2135/0.7211, allocations: 0.7502 MB / 368.3 MB, free: 90.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 5.2e-06/0.7211, allocations: 0 / 368.3 MB, free: 90.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002979/0.7241, allocations: 1.093 MB / 369.4 MB, free: 90.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/0.7244, allocations: 323.8 kB / 369.7 MB, free: 89.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002655/0.727, allocations: 1.378 MB / 371.1 MB, free: 89.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001936/0.7273, allocations: 43.89 kB / 371.1 MB, free: 89.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.7275, allocations: 215.3 kB / 371.3 MB, free: 89.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001754/0.7277, allocations: 83.67 kB / 371.4 MB, free: 89.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.7278, allocations: 15.38 kB / 371.4 MB, free: 89.35 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.7279, allocations: 368.4 kB / 371.8 MB, free: 89.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008901/0.7288, allocations: 422.3 kB / 372.2 MB, free: 89.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008716/0.7297, allocations: 426.3 kB / 372.6 MB, free: 89.03 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000606/0.7303, allocations: 291.7 kB / 372.9 MB, free: 89.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.7303, allocations: 0 / 372.9 MB, free: 89.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002283/0.7326, allocations: 1.019 MB / 373.9 MB, free: 88.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002062/0.7328, allocations: 287.6 kB / 374.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.7329, allocations: 3.781 kB / 374.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.7329, allocations: 5.094 kB / 374.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.585e-05/0.7329, allocations: 3.656 kB / 374.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.733, allocations: 3.844 kB / 374.2 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006061/0.7336, allocations: 49.52 kB / 374.3 MB, free: 88.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002234/0.7338, allocations: 151.6 kB / 374.4 MB, free: 88.71 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.0005213/0.7343, allocations: 465.7 kB / 374.9 MB, free: 88.35 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002335/0.7367, allocations: 1.145 MB / 376 MB, free: 88.25 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/0.7369, allocations: 132.2 kB / 376.1 MB, free: 88.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005498/0.7375, allocations: 200.3 kB / 376.3 MB, free: 88.12 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.7375, allocations: 3.625 kB / 376.3 MB, free: 88.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.7375, allocations: 3.562 kB / 376.3 MB, free: 88.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.7375, allocations: 0 / 376.3 MB, free: 88.12 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003509/0.741, allocations: 1.929 MB / 378.3 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.7411, allocations: 0 / 378.3 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.11e-05/0.7411, allocations: 3.375 kB / 378.3 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.7412, allocations: 3.688 kB / 378.3 MB, free: 87.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/0.7413, allocations: 41.81 kB / 378.3 MB, free: 87.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.52e-06/0.7413, allocations: 3.625 kB / 378.3 MB, free: 87.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.7413, allocations: 0 / 378.3 MB, free: 87.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.7437, allocations: 1.259 MB / 379.6 MB, free: 87.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.7453, allocations: 0.6476 MB / 380.2 MB, free: 86.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003405/0.7457, allocations: 61.8 kB / 380.3 MB, free: 86.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006248/0.7463, allocations: 38.83 kB / 380.3 MB, free: 86.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008019/0.7471, allocations: 354.9 kB / 380.7 MB, free: 86.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002225/0.7474, allocations: 167.8 kB / 380.8 MB, free: 86.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00205/0.7494, allocations: 1.136 MB / 382 MB, free: 86.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7494, allocations: 0 / 382 MB, free: 86.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008493/0.7503, allocations: 141.4 kB / 382.1 MB, free: 86.28 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.00282/0.7531, allocations: 1.908 MB / 384 MB, free: 85.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002483/0.7557, allocations: 1.85 MB / 385.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.7557, allocations: 0 / 385.9 MB, free: 84.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.7572, allocations: 1.369 MB / 387.2 MB, free: 83.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/0.7591, allocations: 304.8 kB / 387.5 MB, free: 83.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005172/0.7643, allocations: 2.494 MB / 390 MB, free: 80.75 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.7654, allocations: 1.165 MB / 391.2 MB, free: 79.7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.7657, allocations: 70.05 kB / 391.3 MB, free: 79.65 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.7659, allocations: 154.2 kB / 391.4 MB, free: 79.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.513e-06/0.7659, allocations: 0 / 391.4 MB, free: 79.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06659/0.8325, allocations: 19.2 MB / 410.6 MB, free: 61.71 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.8328, allocations: 136.6 kB / 410.8 MB, free: 61.52 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.73/3.563, allocations: 4 kB / 410.8 MB, free: 61.52 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREGSRL_res.mat does not exist to compare? outputFormat=mat