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: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.649e-05/2.647e-05, allocations: 7.984 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.32, allocations: 44.49 MB / 294.2 MB, free: 14.17 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.4823, allocations: 77.4 MB / 371.6 MB, free: 4.508 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.4827, allocations: 67.97 kB / 371.7 MB, free: 4.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1248/0.6074, allocations: 38.5 MB / 410.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6075, allocations: 0 / 410.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.54e-05/0.6075, allocations: 23.94 kB / 410.2 MB, free: 13.91 MB / 362.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.001826/0.6094, allocations: 1.315 MB / 411.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.6094, allocations: 12.03 kB / 411.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000257/0.6097, allocations: 130.4 kB / 411.6 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.6107, allocations: 0.5249 MB / 412.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.6108, allocations: 16 kB / 412.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.6109, allocations: 28 kB / 412.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00102/0.612, allocations: 448.5 kB / 412.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.6133, allocations: 0.5871 MB / 413.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.6133, allocations: 4 kB / 413.2 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.944e-05/0.6134, allocations: 8 kB / 413.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.6134, allocations: 11.98 kB / 413.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.6161, allocations: 1.129 MB / 414.4 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.6173, allocations: 0.6742 MB / 415.1 MB, free: 8.824 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.6185, allocations: 0.6647 MB / 415.7 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.6185, allocations: 3.938 kB / 415.7 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/0.6199, allocations: 0.7446 MB / 416.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 5.11e-06/0.6199, allocations: 112 / 416.5 MB, free: 7.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00259/0.6225, allocations: 1.1 MB / 417.6 MB, free: 6.262 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002565/0.6227, allocations: 325 kB / 417.9 MB, free: 5.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003289/0.6261, allocations: 1.555 MB / 419.4 MB, free: 4.316 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001272/0.6262, allocations: 45.69 kB / 419.5 MB, free: 4.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002879/0.6265, allocations: 252.9 kB / 419.7 MB, free: 4.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.6267, allocations: 71.17 kB / 419.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.6268, allocations: 11.98 kB / 419.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.6269, allocations: 330.8 kB / 420.1 MB, free: 3.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009271/0.6278, allocations: 435.8 kB / 420.6 MB, free: 3.176 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009098/0.6288, allocations: 439.8 kB / 421 MB, free: 2.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.6294, allocations: 291.4 kB / 421.3 MB, free: 2.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.6294, allocations: 4 kB / 421.3 MB, free: 2.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002341/0.6318, allocations: 0.9928 MB / 422.3 MB, free: 1.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000292/0.6321, allocations: 289.5 kB / 422.6 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.6321, allocations: 0 / 422.6 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.6321, allocations: 3.953 kB / 422.6 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.259e-05/0.6322, allocations: 4 kB / 422.6 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.6322, allocations: 7.984 kB / 422.6 MB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006609/0.6329, allocations: 47.81 kB / 422.6 MB, free: 1.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002347/0.6331, allocations: 124.2 kB / 422.7 MB, free: 0.9414 MB / 362.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.0005767/0.6337, allocations: 471.4 kB / 423.2 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.2382/0.8719, allocations: 1.161 MB / 424.4 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003057/0.8722, allocations: 135.3 kB / 424.5 MB, free: 107.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007972/0.873, allocations: 255.7 kB / 424.7 MB, free: 107 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.8731, allocations: 1.438 kB / 424.7 MB, free: 107 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.8731, allocations: 1.375 kB / 424.7 MB, free: 107 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.8731, allocations: 1.219 kB / 424.7 MB, free: 107 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004046/0.8771, allocations: 2.013 MB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.8772, allocations: 0 / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.929e-05/0.8772, allocations: 1.062 kB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.8772, allocations: 1.219 kB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/0.8774, allocations: 33.97 kB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.8774, allocations: 5.141 kB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.8774, allocations: 3.938 kB / 426.8 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.88, allocations: 1.278 MB / 428.1 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001697/0.8818, allocations: 0.6857 MB / 428.8 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003227/0.8821, allocations: 55.41 kB / 428.8 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006296/0.8827, allocations: 37.44 kB / 428.9 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008994/0.8837, allocations: 376.5 kB / 429.2 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002258/0.8839, allocations: 132 kB / 429.4 MB, free: 106.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00315/0.8871, allocations: 1.271 MB / 430.6 MB, free: 105.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.8871, allocations: 5.578 kB / 430.6 MB, free: 105.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00102/0.8881, allocations: 141.5 kB / 430.8 MB, free: 105.8 MB / 362.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.00329/0.8915, allocations: 1.927 MB / 432.7 MB, free: 105 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.894, allocations: 1.875 MB / 434.6 MB, free: 104.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.894, allocations: 0 / 434.6 MB, free: 104.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.8956, allocations: 1.418 MB / 436 MB, free: 103.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.8975, allocations: 300.1 kB / 436.3 MB, free: 103.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006144/0.9037, allocations: 2.82 MB / 439.1 MB, free: 102.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.9049, allocations: 1.222 MB / 440.3 MB, free: 101.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/0.9052, allocations: 140.8 kB / 440.5 MB, free: 101.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9052, allocations: 0 / 440.5 MB, free: 101.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.855/3.761, allocations: 13.77 MB / 454.2 MB, free: 93.77 MB / 362.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