Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.228e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09385, allocations: 44.51 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4439/0.5378, allocations: 78.12 MB / 378.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.5381, allocations: 67.5 kB / 378.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0951/0.6332, allocations: 31.21 MB / 409.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.6333, allocations: 0 / 409.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.422e-05/0.6333, allocations: 15.59 kB / 409.4 MB, free: 6.773 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.00203/0.6354, allocations: 1.308 MB / 410.7 MB, free: 5.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.6354, allocations: 7.844 kB / 410.7 MB, free: 5.695 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002674/0.6357, allocations: 60.95 kB / 410.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002694/0.636, allocations: 128.5 kB / 410.9 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001084/0.6371, allocations: 0.5094 MB / 411.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.064e-05/0.6372, allocations: 25.89 kB / 411.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001249/0.6373, allocations: 31.22 kB / 411.4 MB, free: 5.234 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.6387, allocations: 0.6145 MB / 412 MB, free: 5.074 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.6388, allocations: 3.938 kB / 412.1 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.621e-05/0.6389, allocations: 15.22 kB / 412.1 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.6389, allocations: 7.906 kB / 412.1 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009719/0.6399, allocations: 456.8 kB / 412.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.6424, allocations: 1.093 MB / 413.6 MB, free: 4.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.6437, allocations: 0.6914 MB / 414.3 MB, free: 4.324 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.6449, allocations: 0.6746 MB / 415 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.645, allocations: 0 / 415 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00138/0.6464, allocations: 0.7581 MB / 415.7 MB, free: 3.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.92e-06/0.6464, allocations: 0 / 415.7 MB, free: 3.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002777/0.6492, allocations: 1.418 MB / 417.2 MB, free: 3.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002011/0.6495, allocations: 325.4 kB / 417.5 MB, free: 3.102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003822/0.6533, allocations: 1.598 MB / 419.1 MB, free: 2.461 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002665/0.6536, allocations: 48.59 kB / 419.1 MB, free: 2.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002639/0.6539, allocations: 239.9 kB / 419.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002174/0.6541, allocations: 92.31 kB / 419.4 MB, free: 2.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.6542, allocations: 11.16 kB / 419.5 MB, free: 2.219 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.6543, allocations: 327.6 kB / 419.8 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009315/0.6552, allocations: 447.9 kB / 420.2 MB, free: 1.844 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008937/0.6562, allocations: 452.6 kB / 420.7 MB, free: 1.785 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008059/0.657, allocations: 0.5875 MB / 421.2 MB, free: 1.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.657, allocations: 0 / 421.2 MB, free: 1.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002444/0.6595, allocations: 1.307 MB / 422.5 MB, free: 1.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002281/0.6597, allocations: 286.5 kB / 422.8 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.6598, allocations: 4 kB / 422.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/0.6598, allocations: 3.953 kB / 422.8 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.148e-05/0.6599, allocations: 7.859 kB / 422.8 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.6599, allocations: 0 / 422.8 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006934/0.6606, allocations: 49.75 kB / 422.9 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002229/0.6608, allocations: 151.2 kB / 423 MB, free: 0.7109 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.0005218/0.6614, allocations: 479.7 kB / 423.5 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002565/0.6616, allocations: 131.8 kB / 423.6 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000776/0.6624, allocations: 245.9 kB / 423.9 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.6624, allocations: 3.953 kB / 423.9 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.6625, allocations: 3.938 kB / 423.9 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.6625, allocations: 3.906 kB / 423.9 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00515/0.6676, allocations: 2.393 MB / 426.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.6677, allocations: 0 / 426.3 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.632e-05/0.6677, allocations: 11.73 kB / 426.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.6678, allocations: 0 / 426.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001325/0.6679, allocations: 44.78 kB / 426.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.6679, allocations: 0 / 426.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6679, allocations: 0 / 426.3 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003185/0.6711, allocations: 1.608 MB / 427.9 MB, free: 14.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/0.6732, allocations: 0.6858 MB / 428.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.6736, allocations: 62.12 kB / 428.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006919/0.6743, allocations: 43.83 kB / 428.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009174/0.6752, allocations: 352.5 kB / 429.1 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002722/0.6755, allocations: 159.5 kB / 429.2 MB, free: 13.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003464/0.679, allocations: 1.319 MB / 430.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.679, allocations: 0 / 430.6 MB, free: 13.4 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000967/0.68, allocations: 149.6 kB / 430.7 MB, free: 13.4 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.003788/0.6838, allocations: 2.26 MB / 433 MB, free: 12.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.6873, allocations: 1.908 MB / 434.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.6874, allocations: 3.219 kB / 434.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/0.6895, allocations: 1.393 MB / 436.3 MB, free: 9.906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002183/0.6917, allocations: 310.3 kB / 436.6 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008148/0.6999, allocations: 2.799 MB / 439.4 MB, free: 6.875 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/0.7016, allocations: 1.221 MB / 440.6 MB, free: 5.633 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003016/0.702, allocations: 151.4 kB / 440.7 MB, free: 5.484 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.702, allocations: 0 / 440.7 MB, free: 5.484 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.804/3.506, allocations: 14.9 MB / 455.6 MB, free: 6.375 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat