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 1.836/1.836, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.451e-05/3.455e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 44.5 MB / 300 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.5086, allocations: 77.74 MB / 377.7 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5089, allocations: 68.34 kB / 377.8 MB, free: 12.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.101/0.6099, allocations: 33.37 MB / 411.1 MB, free: 6.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6099, allocations: 3.938 kB / 411.1 MB, free: 6.371 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.632e-05/0.61, allocations: 7.844 kB / 411.1 MB, free: 6.371 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.001146/0.6111, allocations: 1.006 MB / 412.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.6112, allocations: 7.344 kB / 412.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.6113, allocations: 62.2 kB / 412.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.6115, allocations: 86.06 kB / 412.3 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.6123, allocations: 416 kB / 412.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.6123, allocations: 19.12 kB / 412.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.28e-05/0.6124, allocations: 22.75 kB / 412.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.6135, allocations: 496.2 kB / 413.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.6136, allocations: 3.984 kB / 413.2 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.657e-05/0.6136, allocations: 15.56 kB / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.6137, allocations: 3.812 kB / 413.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007447/0.6144, allocations: 359.4 kB / 413.6 MB, free: 4.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.6164, allocations: 0.9241 MB / 414.5 MB, free: 4.426 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009115/0.6174, allocations: 496.8 kB / 415 MB, free: 4.355 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007912/0.6182, allocations: 495.7 kB / 415.5 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.6182, allocations: 0 / 415.5 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.6192, allocations: 0.6338 MB / 416.1 MB, free: 3.996 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.636e-06/0.6193, allocations: 112 / 416.1 MB, free: 3.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.00218/0.6215, allocations: 1.144 MB / 417.3 MB, free: 3.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001565/0.6216, allocations: 284.8 kB / 417.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00197/0.6236, allocations: 1.016 MB / 418.6 MB, free: 2.875 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001858/0.6239, allocations: 40.73 kB / 418.6 MB, free: 2.844 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.624, allocations: 195.9 kB / 418.8 MB, free: 2.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.6241, allocations: 76.48 kB / 418.9 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.6242, allocations: 11.16 kB / 418.9 MB, free: 2.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.459e-05/0.6243, allocations: 330.1 kB / 419.2 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007248/0.625, allocations: 344.2 kB / 419.5 MB, free: 2.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/0.6257, allocations: 345.2 kB / 419.9 MB, free: 2.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006447/0.6264, allocations: 497.8 kB / 420.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6264, allocations: 0 / 420.4 MB, free: 1.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001922/0.6283, allocations: 1.076 MB / 421.4 MB, free: 1.559 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/0.6285, allocations: 245.3 kB / 421.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.6286, allocations: 0 / 421.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.6286, allocations: 0 / 421.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.574e-05/0.6286, allocations: 10.81 kB / 421.7 MB, free: 1.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.6287, allocations: 4 kB / 421.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.6292, allocations: 42.67 kB / 421.7 MB, free: 1.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001839/0.6294, allocations: 125.5 kB / 421.9 MB, free: 1.285 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.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.0004077/0.6299, allocations: 404.8 kB / 422.3 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.6301, allocations: 89.31 kB / 422.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004253/0.6305, allocations: 144 kB / 422.5 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.6305, allocations: 7.938 kB / 422.5 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.6305, allocations: 0 / 422.5 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6305, allocations: 7.984 kB / 422.5 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.6339, allocations: 1.937 MB / 424.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.6339, allocations: 0 / 424.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.831e-05/0.6339, allocations: 0 / 424.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.634, allocations: 0 / 424.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.504e-05/0.6341, allocations: 34.14 kB / 424.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.6341, allocations: 4 kB / 424.5 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.6341, allocations: 7.922 kB / 424.5 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.6367, allocations: 1.355 MB / 425.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/0.6382, allocations: 0.5636 MB / 426.4 MB, free: 15.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002518/0.6385, allocations: 57.84 kB / 426.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.6391, allocations: 30.34 kB / 426.5 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000602/0.6397, allocations: 242.1 kB / 426.7 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/0.6399, allocations: 128.5 kB / 426.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001805/0.6417, allocations: 0.8493 MB / 427.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.6417, allocations: 0 / 427.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008033/0.6426, allocations: 124.9 kB / 427.8 MB, free: 14.65 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: 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.003205/0.6458, allocations: 1.993 MB / 429.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.6482, allocations: 1.511 MB / 431.3 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.6483, allocations: 0 / 431.3 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001602/0.6499, allocations: 1.134 MB / 432.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.6517, allocations: 265.1 kB / 432.7 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005039/0.6568, allocations: 1.95 MB / 434.7 MB, free: 11.06 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.6579, allocations: 1.033 MB / 435.7 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.6581, allocations: 71.16 kB / 435.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6581, allocations: 0 / 435.8 MB, free: 10.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.456, allocations: 8.917 MB / 444.7 MB, free: 1.621 MB / 330.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