Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.2 MB / 178.8 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.465e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2913, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.4142, allocations: 71.76 MB / 330.1 MB, free: 6.074 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.4145, allocations: 63.97 kB / 330.1 MB, free: 6.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1112/0.5257, allocations: 33.04 MB / 363.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.5258, allocations: 0 / 363.2 MB, free: 4.961 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.709e-05/0.5258, allocations: 8 kB / 363.2 MB, free: 4.953 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.001371/0.5272, allocations: 1.008 MB / 364.2 MB, free: 3.855 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.5273, allocations: 16.03 kB / 364.2 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.5275, allocations: 83.06 kB / 364.3 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008365/0.5283, allocations: 415.5 kB / 364.7 MB, free: 3.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.494e-05/0.5284, allocations: 16 kB / 364.7 MB, free: 3.297 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-05/0.5285, allocations: 20 kB / 364.7 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008153/0.5293, allocations: 340.1 kB / 365.1 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.5304, allocations: 466.3 kB / 365.5 MB, free: 2.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5304, allocations: 0 / 365.5 MB, free: 2.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.991e-05/0.5305, allocations: 11.98 kB / 365.5 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.5305, allocations: 4 kB / 365.5 MB, free: 2.465 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00211/0.5327, allocations: 0.8796 MB / 366.4 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000922/0.5336, allocations: 486.7 kB / 366.9 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008575/0.5345, allocations: 472.9 kB / 367.3 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.5345, allocations: 8 kB / 367.4 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2377/0.7722, allocations: 0.6155 MB / 368 MB, free: 92.47 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.328e-06/0.7722, allocations: 0 / 368 MB, free: 92.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002632/0.7749, allocations: 0.8511 MB / 368.8 MB, free: 92.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002004/0.7751, allocations: 286.6 kB / 369.1 MB, free: 92.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/0.7773, allocations: 0.972 MB / 370.1 MB, free: 91.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001795/0.7775, allocations: 38.95 kB / 370.1 MB, free: 91.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.7776, allocations: 194.8 kB / 370.3 MB, free: 91.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.7778, allocations: 75.42 kB / 370.4 MB, free: 91.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.7778, allocations: 13.06 kB / 370.4 MB, free: 91.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.7779, allocations: 321.9 kB / 370.7 MB, free: 91.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006613/0.7786, allocations: 329.8 kB / 371 MB, free: 91.36 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006498/0.7793, allocations: 326.9 kB / 371.3 MB, free: 91.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.7797, allocations: 229.9 kB / 371.6 MB, free: 91.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.7798, allocations: 0 / 371.6 MB, free: 91.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001866/0.7816, allocations: 0.7928 MB / 372.4 MB, free: 91.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002017/0.7819, allocations: 251.1 kB / 372.6 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.7819, allocations: 0 / 372.6 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.7819, allocations: 5.609 kB / 372.6 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.323e-05/0.782, allocations: 4.75 kB / 372.6 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.782, allocations: 1.094 kB / 372.6 MB, free: 91.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005868/0.7826, allocations: 42.66 kB / 372.7 MB, free: 91.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/0.7828, allocations: 123.9 kB / 372.8 MB, free: 91.09 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.0004984/0.7834, allocations: 412.8 kB / 373.2 MB, free: 90.76 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002266/0.7856, allocations: 0.9425 MB / 374.1 MB, free: 90.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.7859, allocations: 91.47 kB / 374.2 MB, free: 90.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004396/0.7864, allocations: 145.1 kB / 374.4 MB, free: 90.58 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.7864, allocations: 0 / 374.4 MB, free: 90.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.7864, allocations: 4.688 kB / 374.4 MB, free: 90.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.7864, allocations: 0 / 374.4 MB, free: 90.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003179/0.7896, allocations: 1.577 MB / 375.9 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.7897, allocations: 3.406 kB / 375.9 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.082e-05/0.7897, allocations: 0 / 375.9 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.7897, allocations: 0 / 375.9 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.623e-05/0.7898, allocations: 33.91 kB / 376 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.7898, allocations: 9.5 kB / 376 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.7899, allocations: 0 / 376 MB, free: 90.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.7919, allocations: 1.049 MB / 377 MB, free: 90.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.7933, allocations: 0.558 MB / 377.6 MB, free: 89.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.7936, allocations: 50.61 kB / 377.6 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/0.7941, allocations: 34.31 kB / 377.7 MB, free: 89.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005593/0.7947, allocations: 231.6 kB / 377.9 MB, free: 89.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/0.7949, allocations: 130.5 kB / 378 MB, free: 89.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001684/0.7966, allocations: 0.8103 MB / 378.8 MB, free: 89.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.7967, allocations: 3.719 kB / 378.8 MB, free: 89.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009424/0.7976, allocations: 118.8 kB / 379 MB, free: 89.32 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,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.002596/0.8002, allocations: 1.688 MB / 380.6 MB, free: 88.35 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002227/0.8025, allocations: 1.458 MB / 382.1 MB, free: 87.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.8026, allocations: 0 / 382.1 MB, free: 87.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.804, allocations: 1.115 MB / 383.2 MB, free: 86.61 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.8058, allocations: 259.1 kB / 383.5 MB, free: 86.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0046/0.8105, allocations: 1.904 MB / 385.4 MB, free: 85.77 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008047/0.8114, allocations: 1.03 MB / 386.4 MB, free: 84.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.8115, allocations: 77.81 kB / 386.5 MB, free: 84.92 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/0.8115, allocations: 0 / 386.5 MB, free: 84.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.983/3.794, allocations: 8.844 MB / 395.3 MB, free: 78.05 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat