Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.881/1.881, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.978e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09012, allocations: 44.51 MB / 299.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3992/0.4894, allocations: 77.69 MB / 377.6 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.4897, allocations: 68.25 kB / 377.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08266/0.5724, allocations: 26.76 MB / 404.4 MB, free: 8.727 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5724, allocations: 0 / 404.4 MB, free: 8.727 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.5724, allocations: 11.59 kB / 404.5 MB, free: 8.727 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00118/0.5736, allocations: 1.017 MB / 405.5 MB, free: 7.844 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.5737, allocations: 7.781 kB / 405.5 MB, free: 7.844 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.5739, allocations: 59.56 kB / 405.5 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.574, allocations: 85.78 kB / 405.6 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008193/0.5749, allocations: 408.4 kB / 406 MB, free: 7.469 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.769e-05/0.575, allocations: 22.94 kB / 406 MB, free: 7.461 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.566e-05/0.5751, allocations: 26.56 kB / 406.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.5766, allocations: 0.4928 MB / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.5767, allocations: 0 / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.997e-05/0.5768, allocations: 11.5 kB / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.315e-06/0.5768, allocations: 3.875 kB / 406.6 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008468/0.5776, allocations: 354.5 kB / 406.9 MB, free: 7.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002133/0.5798, allocations: 0.9261 MB / 407.9 MB, free: 6.773 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008789/0.5807, allocations: 0.4897 MB / 408.3 MB, free: 6.699 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008231/0.5816, allocations: 498.4 kB / 408.8 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.5816, allocations: 4 kB / 408.8 MB, free: 6.641 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009981/0.5826, allocations: 0.625 MB / 409.5 MB, free: 6.344 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 2.966e-06/0.5827, allocations: 3.938 kB / 409.5 MB, free: 6.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002187/0.5849, allocations: 1.135 MB / 410.6 MB, free: 5.922 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.585, allocations: 284.1 kB / 410.9 MB, free: 5.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/0.5872, allocations: 1.014 MB / 411.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001863/0.5874, allocations: 48.84 kB / 411.9 MB, free: 5.188 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.5875, allocations: 201 kB / 412.1 MB, free: 5.023 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.5877, allocations: 71.61 kB / 412.2 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.5878, allocations: 11.06 kB / 412.2 MB, free: 4.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.275e-05/0.5878, allocations: 322 kB / 412.5 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006994/0.5886, allocations: 349.7 kB / 412.9 MB, free: 4.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006765/0.5892, allocations: 343.7 kB / 413.2 MB, free: 4.578 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006515/0.5899, allocations: 493.6 kB / 413.7 MB, free: 4.297 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.5899, allocations: 0 / 413.7 MB, free: 4.297 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001973/0.5919, allocations: 1.081 MB / 414.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001962/0.5921, allocations: 244 kB / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.5922, allocations: 0 / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.5922, allocations: 3.969 kB / 415 MB, free: 3.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.555e-05/0.5922, allocations: 11.08 kB / 415 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.485e-06/0.5923, allocations: 0 / 415 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.5928, allocations: 38.94 kB / 415.1 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.593, allocations: 127.7 kB / 415.2 MB, free: 3.641 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0004477/0.5935, allocations: 415.8 kB / 415.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001712/0.5937, allocations: 89.25 kB / 415.7 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004463/0.5941, allocations: 151.1 kB / 415.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.5942, allocations: 3.938 kB / 415.8 MB, free: 3.156 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.5942, allocations: 3.953 kB / 415.8 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.5942, allocations: 0 / 415.8 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.5976, allocations: 1.929 MB / 417.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.5976, allocations: 4 kB / 417.8 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.5977, allocations: 0 / 417.8 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.5977, allocations: 0 / 417.8 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.524e-05/0.5978, allocations: 31.17 kB / 417.8 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.5978, allocations: 7.797 kB / 417.8 MB, free: 2.262 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.5978, allocations: 7.984 kB / 417.8 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.6002, allocations: 1.356 MB / 419.2 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.6016, allocations: 0.556 MB / 419.7 MB, free: 1.438 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.6018, allocations: 57.81 kB / 419.8 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005429/0.6024, allocations: 38.75 kB / 419.8 MB, free: 1.418 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005509/0.603, allocations: 235.6 kB / 420 MB, free: 1.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.6031, allocations: 128.2 kB / 420.2 MB, free: 1.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001778/0.6049, allocations: 0.8553 MB / 421 MB, free: 1.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.605, allocations: 0 / 421 MB, free: 1.008 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008358/0.6058, allocations: 120 kB / 421.1 MB, free: 1.008 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.003008/0.6089, allocations: 2.003 MB / 423.1 MB, free: 15.9 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002519/0.6114, allocations: 1.51 MB / 424.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.6115, allocations: 0 / 424.7 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.6129, allocations: 1.141 MB / 425.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.6148, allocations: 262.7 kB / 426.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004753/0.6196, allocations: 1.939 MB / 428 MB, free: 14.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.6206, allocations: 1.039 MB / 429 MB, free: 13.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.6208, allocations: 75.77 kB / 429.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6208, allocations: 3.75 kB / 429.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.665/3.286, allocations: 8.908 MB / 438 MB, free: 7.551 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat