Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGL,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGL",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.286/2.286, allocations: 195 MB / 202.9 MB, free: 6.715 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.453e-05/2.456e-05, allocations: 3.812 kB / 249.8 MB, free: 5.266 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09758/0.09763, allocations: 44.52 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.5655, allocations: 77.06 MB / 371.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.5658, allocations: 68.23 kB / 371.4 MB, free: 7.004 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1489/0.7147, allocations: 33.15 MB / 404.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.643e-06/0.7148, allocations: 0 / 404.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.3e-05/0.7149, allocations: 15.56 kB / 404.6 MB, free: 12.86 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.001576/0.7164, allocations: 1.007 MB / 405.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.7165, allocations: 7.625 kB / 405.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002927/0.7168, allocations: 85.38 kB / 405.7 MB, free: 11.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.7179, allocations: 415.4 kB / 406.1 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.521e-05/0.718, allocations: 15.48 kB / 406.1 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.7181, allocations: 26.2 kB / 406.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008719/0.719, allocations: 339.9 kB / 406.5 MB, free: 11.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.7202, allocations: 482.6 kB / 406.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.7202, allocations: 0 / 406.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-05/0.7203, allocations: 14.38 kB / 407 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.7203, allocations: 7.875 kB / 407 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.7229, allocations: 0.8767 MB / 407.8 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001132/0.7241, allocations: 499.1 kB / 408.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001048/0.7252, allocations: 477.4 kB / 408.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.7252, allocations: 0 / 408.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001385/0.7266, allocations: 0.6256 MB / 409.4 MB, free: 9.918 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.717e-06/0.7266, allocations: 0 / 409.4 MB, free: 9.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002688/0.7293, allocations: 0.8799 MB / 410.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002633/0.7296, allocations: 285.7 kB / 410.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.7322, allocations: 0.9746 MB / 411.6 MB, free: 8.113 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.7325, allocations: 45.62 kB / 411.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002067/0.7327, allocations: 140.7 kB / 411.7 MB, free: 7.961 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.7329, allocations: 69.92 kB / 411.8 MB, free: 7.902 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.358e-05/0.733, allocations: 15.41 kB / 411.8 MB, free: 7.891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.7332, allocations: 345.5 kB / 412.2 MB, free: 7.555 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008589/0.7341, allocations: 335.3 kB / 412.5 MB, free: 7.332 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008183/0.7349, allocations: 334.3 kB / 412.8 MB, free: 7.113 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005967/0.7355, allocations: 233.9 kB / 413 MB, free: 6.957 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.7355, allocations: 4 kB / 413 MB, free: 6.953 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002365/0.7379, allocations: 0.8321 MB / 413.9 MB, free: 6.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002961/0.7382, allocations: 246.4 kB / 414.1 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.7383, allocations: 0 / 414.1 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.7383, allocations: 0 / 414.1 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.024e-05/0.7383, allocations: 7.938 kB / 414.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.7384, allocations: 0 / 414.1 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/0.739, allocations: 37.28 kB / 414.2 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002702/0.7393, allocations: 126.9 kB / 414.3 MB, free: 5.891 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.000625/0.7399, allocations: 417.7 kB / 414.7 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002781/0.7427, allocations: 0.9573 MB / 415.6 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.743, allocations: 87.06 kB / 415.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005388/0.7435, allocations: 146.7 kB / 415.9 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.7436, allocations: 0 / 415.9 MB, free: 4.508 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.7436, allocations: 4 kB / 415.9 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.7436, allocations: 0 / 415.9 MB, free: 4.504 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.7477, allocations: 1.595 MB / 417.5 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.7478, allocations: 0 / 417.5 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.464e-05/0.7478, allocations: 7.938 kB / 417.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.7478, allocations: 0 / 417.5 MB, free: 3.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.748, allocations: 31.98 kB / 417.5 MB, free: 3.027 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.748, allocations: 4 kB / 417.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.748, allocations: 0 / 417.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002922/0.7509, allocations: 1.064 MB / 418.6 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001775/0.7527, allocations: 0.5543 MB / 419.1 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003423/0.7531, allocations: 59.97 kB / 419.2 MB, free: 1.309 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006345/0.7538, allocations: 35.62 kB / 419.2 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007696/0.7545, allocations: 235.7 kB / 419.5 MB, free: 1.047 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002712/0.7548, allocations: 127.9 kB / 419.6 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00219/0.757, allocations: 0.8109 MB / 420.4 MB, free: 120 kB / 314.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.7571, allocations: 7.938 kB / 420.4 MB, free: 112 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.001001/0.7581, allocations: 120 kB / 420.5 MB, free: 15.99 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.003615/0.7617, allocations: 1.686 MB / 422.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.7649, allocations: 1.484 MB / 423.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.765, allocations: 0 / 423.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.7669, allocations: 1.124 MB / 424.8 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.7692, allocations: 266 kB / 425.1 MB, free: 11.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005871/0.7751, allocations: 1.845 MB / 426.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001366/0.7765, allocations: 1.035 MB / 428 MB, free: 8.285 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.7768, allocations: 33.77 kB / 428 MB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.777, allocations: 75.41 kB / 428.1 MB, free: 8.18 MB / 330.7 MB Notification: Performance of SimCode: time 1.122e-06/0.777, allocations: 0 / 428.1 MB, free: 8.18 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07085/0.8479, allocations: 14.75 MB / 442.8 MB, free: 9.223 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003692/0.8483, allocations: 144.2 kB / 443 MB, free: 9.023 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.263/4.111, allocations: 4.031 kB / 443 MB, free: 9.02 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREGL_res.mat does not exist to compare? outputFormat=mat