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.909/1.909, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.971e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09242/0.09247, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4092/0.5017, allocations: 78.12 MB / 378 MB, free: 12.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.502, allocations: 66.25 kB / 378.1 MB, free: 12.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08787/0.5899, allocations: 31.21 MB / 409.3 MB, free: 6.934 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.59, allocations: 3.938 kB / 409.3 MB, free: 6.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.564e-05/0.59, allocations: 15.62 kB / 409.3 MB, free: 6.93 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.001487/0.5915, allocations: 1.307 MB / 410.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.5916, allocations: 11.75 kB / 410.6 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.5917, allocations: 60.17 kB / 410.7 MB, free: 5.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.5919, allocations: 128.7 kB / 410.8 MB, free: 5.742 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009038/0.5928, allocations: 0.5138 MB / 411.3 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.186e-05/0.5929, allocations: 22.89 kB / 411.4 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.5931, allocations: 33.53 kB / 411.4 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.5944, allocations: 0.6091 MB / 412 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.5944, allocations: 0 / 412 MB, free: 5.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.432e-05/0.5945, allocations: 18.86 kB / 412 MB, free: 5.227 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.5945, allocations: 3.875 kB / 412 MB, free: 5.227 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009124/0.5954, allocations: 457.5 kB / 412.5 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.5975, allocations: 1.096 MB / 413.6 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.5987, allocations: 0.689 MB / 414.3 MB, free: 4.488 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.5997, allocations: 0.6835 MB / 414.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.5997, allocations: 0 / 414.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.601, allocations: 0.7548 MB / 415.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.475e-06/0.601, allocations: 0 / 415.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.00266/0.6036, allocations: 1.419 MB / 417.1 MB, free: 3.586 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001786/0.6038, allocations: 327.6 kB / 417.4 MB, free: 3.258 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/0.607, allocations: 1.597 MB / 419 MB, free: 2.617 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.6072, allocations: 48.19 kB / 419.1 MB, free: 2.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.6074, allocations: 244.3 kB / 419.3 MB, free: 2.422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.6076, allocations: 84.64 kB / 419.4 MB, free: 2.375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.499e-05/0.6077, allocations: 19.34 kB / 419.4 MB, free: 2.371 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.6077, allocations: 327.2 kB / 419.7 MB, free: 2.055 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008848/0.6086, allocations: 445.5 kB / 420.2 MB, free: 2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008576/0.6095, allocations: 451.5 kB / 420.6 MB, free: 1.941 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008028/0.6103, allocations: 0.5816 MB / 421.2 MB, free: 1.621 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6103, allocations: 0 / 421.2 MB, free: 1.621 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002377/0.6127, allocations: 1.309 MB / 422.5 MB, free: 1.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000215/0.613, allocations: 291.1 kB / 422.8 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.613, allocations: 0 / 422.8 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.613, allocations: 7.828 kB / 422.8 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.959e-05/0.6131, allocations: 7.875 kB / 422.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.6131, allocations: 3.812 kB / 422.8 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.6137, allocations: 46.83 kB / 422.9 MB, free: 0.875 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.614, allocations: 151.3 kB / 423 MB, free: 0.8633 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.0004748/0.6145, allocations: 471.5 kB / 423.5 MB, free: 472 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.6147, allocations: 135.6 kB / 423.6 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007286/0.6154, allocations: 249.9 kB / 423.8 MB, free: 264 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.6154, allocations: 11.84 kB / 423.9 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.6155, allocations: 0 / 423.9 MB, free: 256 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6155, allocations: 3.938 kB / 423.9 MB, free: 252 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.6198, allocations: 2.392 MB / 426.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.6198, allocations: 0 / 426.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.886e-05/0.6199, allocations: 0 / 426.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.6199, allocations: 0 / 426.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.62, allocations: 48.48 kB / 426.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.62, allocations: 0 / 426.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.62, allocations: 0 / 426.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002959/0.623, allocations: 1.613 MB / 427.9 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/0.6247, allocations: 0.6807 MB / 428.6 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002865/0.625, allocations: 64.62 kB / 428.7 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005997/0.6256, allocations: 40.55 kB / 428.7 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000843/0.6264, allocations: 354.1 kB / 429 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/0.6267, allocations: 153.2 kB / 429.2 MB, free: 14.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002806/0.6295, allocations: 1.326 MB / 430.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6295, allocations: 0 / 430.5 MB, free: 13.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006872/0.6302, allocations: 150.4 kB / 430.7 MB, free: 13.55 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.003564/0.6338, allocations: 2.265 MB / 432.9 MB, free: 12.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003034/0.6368, allocations: 1.914 MB / 434.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.6369, allocations: 4 kB / 434.8 MB, free: 11.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00192/0.6388, allocations: 1.386 MB / 436.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.6408, allocations: 307.9 kB / 436.5 MB, free: 9.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007035/0.6478, allocations: 2.803 MB / 439.3 MB, free: 6.91 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/0.6494, allocations: 1.224 MB / 440.6 MB, free: 5.664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.6497, allocations: 155.3 kB / 440.7 MB, free: 5.512 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6497, allocations: 0 / 440.7 MB, free: 5.512 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.587/3.236, allocations: 14.95 MB / 455.7 MB, free: 6.352 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