Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.22e-05/3.235e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.08961, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3933/0.483, allocations: 78.01 MB / 377.9 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/0.4833, allocations: 67.8 kB / 378 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09181/0.5752, allocations: 30.73 MB / 408.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.5752, allocations: 0 / 408.7 MB, free: 6.887 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.637e-05/0.5753, allocations: 19.56 kB / 408.8 MB, free: 6.883 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.002019/0.5773, allocations: 1.318 MB / 410.1 MB, free: 5.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.918e-05/0.5774, allocations: 7.781 kB / 410.1 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002542/0.5776, allocations: 66.03 kB / 410.1 MB, free: 5.754 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.5779, allocations: 128.2 kB / 410.3 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001089/0.579, allocations: 0.5143 MB / 410.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.027e-05/0.5791, allocations: 18.12 kB / 410.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.5792, allocations: 38.16 kB / 410.8 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.5806, allocations: 0.618 MB / 411.5 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5806, allocations: 0 / 411.5 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.933e-05/0.5807, allocations: 23.12 kB / 411.5 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.627e-06/0.5807, allocations: 3.875 kB / 411.5 MB, free: 5.168 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009529/0.5817, allocations: 465.9 kB / 411.9 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/0.5844, allocations: 1.172 MB / 413.1 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.5858, allocations: 0.6988 MB / 413.8 MB, free: 4.414 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.587, allocations: 0.6787 MB / 414.5 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.587, allocations: 0 / 414.5 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00132/0.5884, allocations: 0.7443 MB / 415.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.777e-06/0.5884, allocations: 0 / 415.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002702/0.5911, allocations: 1.408 MB / 416.6 MB, free: 3.527 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/0.5914, allocations: 331.8 kB / 417 MB, free: 3.195 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00377/0.5952, allocations: 1.629 MB / 418.6 MB, free: 2.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/0.5954, allocations: 41.33 kB / 418.6 MB, free: 2.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.5957, allocations: 258.8 kB / 418.9 MB, free: 2.344 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.5959, allocations: 76.48 kB / 419 MB, free: 2.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.929e-05/0.596, allocations: 14.69 kB / 419 MB, free: 2.301 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.976e-05/0.5961, allocations: 322.7 kB / 419.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009128/0.597, allocations: 458.1 kB / 419.7 MB, free: 1.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009106/0.5979, allocations: 449 kB / 420.2 MB, free: 1.871 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/0.5988, allocations: 0.5936 MB / 420.8 MB, free: 1.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.5988, allocations: 4 kB / 420.8 MB, free: 1.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002386/0.6012, allocations: 1.302 MB / 422.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002339/0.6015, allocations: 298.3 kB / 422.4 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6015, allocations: 0 / 422.4 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.6015, allocations: 0 / 422.4 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.27e-05/0.6016, allocations: 0 / 422.4 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.6016, allocations: 3.781 kB / 422.4 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.6023, allocations: 46.89 kB / 422.4 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.6025, allocations: 127.4 kB / 422.5 MB, free: 0.793 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.0005099/0.603, allocations: 464.3 kB / 423 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.6033, allocations: 132.2 kB / 423.1 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007324/0.604, allocations: 253.3 kB / 423.4 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.6041, allocations: 0 / 423.4 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6041, allocations: 0 / 423.4 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.6041, allocations: 0 / 423.4 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005207/0.6093, allocations: 2.428 MB / 425.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.6094, allocations: 0 / 425.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.97e-05/0.6094, allocations: 0 / 425.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.11e-05/0.6094, allocations: 0 / 425.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.6096, allocations: 44.34 kB / 425.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.6096, allocations: 0 / 425.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.6096, allocations: 3.953 kB / 425.8 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.6127, allocations: 1.632 MB / 427.5 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/0.6147, allocations: 0.6843 MB / 428.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/0.6151, allocations: 57.5 kB / 428.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006222/0.6158, allocations: 34.69 kB / 428.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009571/0.6167, allocations: 382 kB / 428.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002471/0.617, allocations: 135.2 kB / 428.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003407/0.6204, allocations: 1.331 MB / 430.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.6205, allocations: 0 / 430.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009278/0.6214, allocations: 151 kB / 430.2 MB, free: 13.51 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.003774/0.6252, allocations: 2.266 MB / 432.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00334/0.6286, allocations: 1.921 MB / 434.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.6287, allocations: 0 / 434.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002189/0.6309, allocations: 1.438 MB / 435.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.6331, allocations: 295.7 kB / 436.2 MB, free: 9.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00809/0.6412, allocations: 2.857 MB / 439 MB, free: 7.098 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00167/0.6429, allocations: 1.223 MB / 440.2 MB, free: 5.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.6433, allocations: 135.4 kB / 440.4 MB, free: 5.711 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6433, allocations: 0 / 440.4 MB, free: 5.711 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.879/3.523, allocations: 13.79 MB / 454.2 MB, free: 7.734 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat