Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.454e-05/2.456e-05, allocations: 7.984 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3012, allocations: 44.48 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4423, allocations: 77.07 MB / 371.3 MB, free: 4.828 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/0.4426, allocations: 67.97 kB / 371.3 MB, free: 4.762 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1121/0.5547, allocations: 33.15 MB / 404.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5548, allocations: 0 / 404.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.5548, allocations: 8 kB / 404.5 MB, free: 3.602 MB / 346.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.001368/0.5562, allocations: 1.008 MB / 405.5 MB, free: 2.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5563, allocations: 12.03 kB / 405.5 MB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001995/0.5565, allocations: 86.97 kB / 405.6 MB, free: 2.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007883/0.5573, allocations: 411.6 kB / 406 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.022e-05/0.5573, allocations: 19.98 kB / 406 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.5575, allocations: 20 kB / 406 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008173/0.5583, allocations: 340.2 kB / 406.4 MB, free: 1.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.5594, allocations: 482.2 kB / 406.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.5594, allocations: 7.984 kB / 406.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-05/0.5595, allocations: 11.94 kB / 406.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.5595, allocations: 0 / 406.9 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.5615, allocations: 0.8873 MB / 407.7 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000933/0.5625, allocations: 0.4909 MB / 408.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008689/0.5634, allocations: 472.9 kB / 408.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.5634, allocations: 0 / 408.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.5645, allocations: 0.6189 MB / 409.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 4.699e-06/0.5645, allocations: 112 / 409.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.002154/0.5667, allocations: 0.8806 MB / 410.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002181/0.5669, allocations: 291.3 kB / 410.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/0.5689, allocations: 0.9722 MB / 411.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.569, allocations: 45.69 kB / 411.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.5692, allocations: 192.4 kB / 411.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.5693, allocations: 71.11 kB / 411.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-05/0.5694, allocations: 15.98 kB / 411.8 MB, free: 12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5696, allocations: 322.8 kB / 412.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007316/0.5703, allocations: 331.8 kB / 412.4 MB, free: 11.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007129/0.571, allocations: 335.8 kB / 412.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/0.5716, allocations: 239.8 kB / 413 MB, free: 10.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5716, allocations: 0 / 413 MB, free: 10.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001944/0.5735, allocations: 0.821 MB / 413.8 MB, free: 9.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002432/0.5738, allocations: 247.8 kB / 414 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.902e-06/0.5738, allocations: 0 / 414 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.5738, allocations: 4 kB / 414 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.731e-05/0.5739, allocations: 0 / 414 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.5739, allocations: 0 / 414 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.5744, allocations: 39.91 kB / 414.1 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002258/0.5746, allocations: 131.9 kB / 414.2 MB, free: 9.512 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.0005017/0.5752, allocations: 409.7 kB / 414.6 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002218/0.5774, allocations: 0.9611 MB / 415.6 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.5776, allocations: 83.06 kB / 415.6 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004441/0.578, allocations: 152 kB / 415.8 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.5781, allocations: 0 / 415.8 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.5781, allocations: 4 kB / 415.8 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.5781, allocations: 4 kB / 415.8 MB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003245/0.5813, allocations: 1.584 MB / 417.4 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.5814, allocations: 0 / 417.4 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.103e-05/0.5814, allocations: 7.984 kB / 417.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.5814, allocations: 0 / 417.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.851e-05/0.5815, allocations: 35.98 kB / 417.4 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.5815, allocations: 0 / 417.4 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5815, allocations: 0 / 417.4 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/0.5838, allocations: 1.076 MB / 418.5 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.5851, allocations: 0.5582 MB / 419.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.5854, allocations: 55.91 kB / 419.1 MB, free: 4.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005224/0.5859, allocations: 31.97 kB / 419.2 MB, free: 4.422 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006259/0.5866, allocations: 235.7 kB / 419.4 MB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002284/0.5868, allocations: 127.9 kB / 419.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001634/0.5885, allocations: 0.8187 MB / 420.3 MB, free: 3.254 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5885, allocations: 0 / 420.3 MB, free: 3.254 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006574/0.5892, allocations: 120 kB / 420.4 MB, free: 3.137 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.002994/0.5922, allocations: 1.682 MB / 422.1 MB, free: 1.426 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2431/0.8353, allocations: 1.478 MB / 423.6 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.8353, allocations: 1.25 kB / 423.6 MB, free: 109.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001812/0.8371, allocations: 1.124 MB / 424.7 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001815/0.839, allocations: 251.1 kB / 425 MB, free: 108.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004637/0.8436, allocations: 1.921 MB / 426.9 MB, free: 108.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009026/0.8446, allocations: 1.036 MB / 427.9 MB, free: 107.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.8447, allocations: 70.72 kB / 428 MB, free: 107.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.934e-06/0.8447, allocations: 0 / 428 MB, free: 107.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.576/3.42, allocations: 8.917 MB / 436.9 MB, free: 106.2 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat