Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.672e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2492, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.3746, allocations: 72.14 MB / 330.5 MB, free: 5.68 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.3749, allocations: 67.97 kB / 330.5 MB, free: 5.613 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1013/0.4762, allocations: 30.36 MB / 360.9 MB, free: 7.254 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4762, allocations: 0 / 360.9 MB, free: 7.254 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.529e-05/0.4763, allocations: 20 kB / 360.9 MB, free: 7.234 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.001683/0.478, allocations: 1.272 MB / 362.2 MB, free: 5.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.478, allocations: 12.03 kB / 362.2 MB, free: 5.852 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002766/0.4783, allocations: 126.5 kB / 362.3 MB, free: 5.727 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.4795, allocations: 0.509 MB / 362.8 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.968e-05/0.4795, allocations: 12 kB / 362.8 MB, free: 5.156 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.4797, allocations: 35.95 kB / 362.9 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009893/0.4807, allocations: 431.8 kB / 363.3 MB, free: 4.699 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.482, allocations: 0.5871 MB / 363.9 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.482, allocations: 0 / 363.9 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.4821, allocations: 19.97 kB / 363.9 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.4822, allocations: 4 kB / 363.9 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.4845, allocations: 1 MB / 364.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4858, allocations: 0.6663 MB / 365.6 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.4871, allocations: 0.6569 MB / 366.2 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.4871, allocations: 0 / 366.2 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001386/0.4885, allocations: 0.7553 MB / 367 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.505e-06/0.4885, allocations: 0 / 367 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.2117/0.7002, allocations: 1.076 MB / 368.1 MB, free: 89.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003195/0.7006, allocations: 325.5 kB / 368.4 MB, free: 89.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/0.704, allocations: 1.387 MB / 369.8 MB, free: 89.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002506/0.7042, allocations: 41.61 kB / 369.8 MB, free: 89.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000178/0.7044, allocations: 246.9 kB / 370 MB, free: 89.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.7046, allocations: 79.45 kB / 370.1 MB, free: 89.14 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.7047, allocations: 11.91 kB / 370.1 MB, free: 89.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.898e-05/0.7048, allocations: 326.1 kB / 370.5 MB, free: 88.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009056/0.7057, allocations: 427.4 kB / 370.9 MB, free: 88.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008727/0.7066, allocations: 426.1 kB / 371.3 MB, free: 88.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.7073, allocations: 285.5 kB / 371.6 MB, free: 88.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.7073, allocations: 4.969 kB / 371.6 MB, free: 88.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002261/0.7095, allocations: 0.9757 MB / 372.5 MB, free: 88.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002413/0.7098, allocations: 291.4 kB / 372.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.7098, allocations: 3.938 kB / 372.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.7099, allocations: 1.094 kB / 372.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.828e-05/0.7099, allocations: 6.125 kB / 372.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.7099, allocations: 6.094 kB / 372.9 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/0.7106, allocations: 43.06 kB / 372.9 MB, free: 88.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002603/0.7109, allocations: 152.9 kB / 373 MB, free: 88.52 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.0005189/0.7114, allocations: 457.9 kB / 373.5 MB, free: 88.16 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002441/0.7138, allocations: 1.146 MB / 374.6 MB, free: 88.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.7141, allocations: 134.4 kB / 374.8 MB, free: 88 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.7146, allocations: 202.2 kB / 375 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.7146, allocations: 1.969 kB / 375 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.7147, allocations: 3.438 kB / 375 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.7147, allocations: 6 kB / 375 MB, free: 87.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.718, allocations: 1.915 MB / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.718, allocations: 3.953 kB / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.099e-05/0.718, allocations: 0 / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.718, allocations: 7.625 kB / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.7182, allocations: 39.27 kB / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.7182, allocations: 0 / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.7182, allocations: 3.75 kB / 376.9 MB, free: 87.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.7205, allocations: 1.251 MB / 378.2 MB, free: 87.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/0.722, allocations: 0.662 MB / 378.9 MB, free: 86.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003059/0.7223, allocations: 59.55 kB / 378.9 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005738/0.7229, allocations: 39.39 kB / 379 MB, free: 86.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007896/0.7237, allocations: 357.5 kB / 379.3 MB, free: 86.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000216/0.724, allocations: 162.4 kB / 379.5 MB, free: 86.86 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002107/0.7261, allocations: 1.135 MB / 380.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.032e-06/0.7261, allocations: 0 / 380.6 MB, free: 86.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009537/0.7271, allocations: 142.7 kB / 380.7 MB, free: 86.4 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,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.002911/0.73, allocations: 1.906 MB / 382.6 MB, free: 85.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.7325, allocations: 1.858 MB / 384.5 MB, free: 84.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.7325, allocations: 0 / 384.5 MB, free: 84.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.734, allocations: 1.368 MB / 385.9 MB, free: 83.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.7359, allocations: 299.3 kB / 386.2 MB, free: 83.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005213/0.7411, allocations: 2.595 MB / 388.8 MB, free: 81.8 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009958/0.7422, allocations: 1.163 MB / 389.9 MB, free: 80.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.7424, allocations: 152.5 kB / 390.1 MB, free: 80.62 MB / 314.7 MB Notification: Performance of SimCode: time 9.21e-07/0.7424, allocations: 0 / 390.1 MB, free: 80.62 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.627/3.37, allocations: 13.65 MB / 403.7 MB, free: 68.76 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat