Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.322e-05/4.327e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4061/0.5067, allocations: 78.06 MB / 378 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.507, allocations: 66 kB / 378.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1333/0.6404, allocations: 38.74 MB / 416.8 MB, free: 3.727 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6404, allocations: 3.938 kB / 416.8 MB, free: 3.727 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.415e-05/0.6405, allocations: 18.97 kB / 416.8 MB, free: 3.723 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.002114/0.6426, allocations: 1.316 MB / 418.2 MB, free: 2.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.6427, allocations: 7.781 kB / 418.2 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.6429, allocations: 64.5 kB / 418.2 MB, free: 2.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003327/0.6433, allocations: 132.2 kB / 418.4 MB, free: 2.523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001243/0.6445, allocations: 0.5151 MB / 418.9 MB, free: 2.172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.418e-05/0.6446, allocations: 22.75 kB / 418.9 MB, free: 2.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.6448, allocations: 33.55 kB / 418.9 MB, free: 2.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001828/0.6467, allocations: 0.6147 MB / 419.5 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.6467, allocations: 0 / 419.5 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.6468, allocations: 15.25 kB / 419.6 MB, free: 2.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.6469, allocations: 7.844 kB / 419.6 MB, free: 2.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.6482, allocations: 465.9 kB / 420 MB, free: 1.949 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002756/0.651, allocations: 1.172 MB / 421.2 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.6522, allocations: 0.6889 MB / 421.9 MB, free: 1.258 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.6533, allocations: 0.6775 MB / 422.6 MB, free: 1.195 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.656e-05/0.6533, allocations: 11.83 kB / 422.6 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001225/0.6546, allocations: 0.7332 MB / 423.3 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.957e-06/0.6546, allocations: 112 / 423.3 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002645/0.6572, allocations: 1.416 MB / 424.7 MB, free: 372 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002052/0.6575, allocations: 329.6 kB / 425 MB, free: 36 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003522/0.661, allocations: 1.62 MB / 426.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001931/0.6612, allocations: 44.7 kB / 426.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002981/0.6615, allocations: 263.3 kB / 427 MB, free: 15.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.6617, allocations: 72.91 kB / 427 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-05/0.6618, allocations: 11.5 kB / 427 MB, free: 15.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.662, allocations: 325.2 kB / 427.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009308/0.6629, allocations: 449.8 kB / 427.8 MB, free: 14.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009117/0.6638, allocations: 454.3 kB / 428.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009843/0.6648, allocations: 0.5894 MB / 428.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.6649, allocations: 0 / 428.8 MB, free: 14.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002528/0.6674, allocations: 1.307 MB / 430.1 MB, free: 13.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003131/0.6678, allocations: 296.7 kB / 430.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.6678, allocations: 0 / 430.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.6678, allocations: 7.719 kB / 430.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.089e-05/0.6679, allocations: 0 / 430.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.6679, allocations: 3.938 kB / 430.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.6686, allocations: 50.31 kB / 430.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/0.6688, allocations: 127.9 kB / 430.6 MB, free: 13.62 MB / 330.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.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.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.0006289/0.6695, allocations: 467.8 kB / 431.1 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.6697, allocations: 135.8 kB / 431.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007922/0.6705, allocations: 254.9 kB / 431.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.6706, allocations: 0 / 431.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6706, allocations: 0 / 431.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.6706, allocations: 0 / 431.5 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0049/0.6755, allocations: 2.397 MB / 433.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.6756, allocations: 4 kB / 433.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.857e-05/0.6756, allocations: 11.31 kB / 433.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.6756, allocations: 0 / 433.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.6757, allocations: 33.11 kB / 433.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.6757, allocations: 0 / 433.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.6758, allocations: 7.219 kB / 433.9 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003133/0.6789, allocations: 1.636 MB / 435.5 MB, free: 11.24 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/0.681, allocations: 0.6746 MB / 436.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003358/0.6813, allocations: 63.92 kB / 436.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.682, allocations: 43.31 kB / 436.3 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001002/0.683, allocations: 371.6 kB / 436.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002665/0.6833, allocations: 135.9 kB / 436.8 MB, free: 9.949 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003545/0.6869, allocations: 1.332 MB / 438.1 MB, free: 8.613 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.6869, allocations: 0 / 438.1 MB, free: 8.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009979/0.6879, allocations: 148 kB / 438.3 MB, free: 8.469 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,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.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.004229/0.6922, allocations: 2.274 MB / 440.6 MB, free: 6.113 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003499/0.6957, allocations: 1.913 MB / 442.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.6958, allocations: 0 / 442.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00218/0.698, allocations: 1.436 MB / 443.9 MB, free: 2.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002034/0.7, allocations: 311.4 kB / 444.2 MB, free: 2.273 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007648/0.7077, allocations: 2.848 MB / 447.1 MB, free: 15.37 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/0.7094, allocations: 1.219 MB / 448.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000251/0.7097, allocations: 139.4 kB / 448.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.7097, allocations: 0 / 448.4 MB, free: 13.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.584/3.294, allocations: 13.77 MB / 462.2 MB, free: 28 kB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat