Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.1/2.1, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.957e-05/3.964e-05, allocations: 0 / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1011, allocations: 44.51 MB / 300 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4246/0.5257, allocations: 77.69 MB / 377.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.5261, allocations: 69.2 kB / 377.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08502/0.6111, allocations: 26.75 MB / 404.5 MB, free: 8.508 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.6112, allocations: 0 / 404.5 MB, free: 8.508 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.896e-05/0.6112, allocations: 15.62 kB / 404.5 MB, free: 8.504 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.001388/0.6126, allocations: 1.012 MB / 405.5 MB, free: 7.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.206e-05/0.6127, allocations: 11.78 kB / 405.5 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001822/0.6129, allocations: 57.64 kB / 405.6 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/0.6131, allocations: 85.72 kB / 405.7 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008043/0.6139, allocations: 407.4 kB / 406.1 MB, free: 7.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.786e-05/0.614, allocations: 30.91 kB / 406.1 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.6141, allocations: 26.81 kB / 406.1 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.6152, allocations: 497.6 kB / 406.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.6153, allocations: 0 / 406.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.811e-05/0.6153, allocations: 11.59 kB / 406.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.6154, allocations: 3.812 kB / 406.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007566/0.6161, allocations: 356.7 kB / 407 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.6183, allocations: 0.9243 MB / 407.9 MB, free: 6.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009689/0.6193, allocations: 0.4884 MB / 408.4 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000844/0.6202, allocations: 492.7 kB / 408.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.6203, allocations: 0 / 408.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.6213, allocations: 0.6316 MB / 409.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.967e-06/0.6214, allocations: 0 / 409.5 MB, free: 6.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002301/0.6237, allocations: 1.137 MB / 410.6 MB, free: 5.703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000168/0.6239, allocations: 286.7 kB / 410.9 MB, free: 5.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002218/0.6261, allocations: 1.008 MB / 411.9 MB, free: 5.012 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/0.6264, allocations: 44.56 kB / 412 MB, free: 4.977 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.6266, allocations: 147.2 kB / 412.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.6268, allocations: 78.92 kB / 412.2 MB, free: 4.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.6268, allocations: 9.531 kB / 412.2 MB, free: 4.828 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.627, allocations: 345.2 kB / 412.5 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007258/0.6277, allocations: 347.6 kB / 412.9 MB, free: 4.457 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006733/0.6284, allocations: 343.9 kB / 413.2 MB, free: 4.414 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006701/0.6291, allocations: 499 kB / 413.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.6291, allocations: 0 / 413.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00208/0.6312, allocations: 1.086 MB / 414.8 MB, free: 3.742 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002106/0.6314, allocations: 247.7 kB / 415 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.6315, allocations: 4 kB / 415 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.6315, allocations: 0 / 415 MB, free: 3.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.04e-05/0.6316, allocations: 14.39 kB / 415.1 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.6316, allocations: 0 / 415.1 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006904/0.6323, allocations: 41.72 kB / 415.1 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/0.6325, allocations: 124.6 kB / 415.2 MB, free: 3.465 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.0004931/0.633, allocations: 419.7 kB / 415.6 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.6333, allocations: 89.84 kB / 415.7 MB, free: 3.062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000502/0.6338, allocations: 140.7 kB / 415.8 MB, free: 2.992 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.6338, allocations: 3.984 kB / 415.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.6338, allocations: 3.953 kB / 415.9 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.6338, allocations: 3.844 kB / 415.9 MB, free: 2.984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/0.6377, allocations: 1.931 MB / 417.8 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.6377, allocations: 0 / 417.8 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.196e-05/0.6378, allocations: 0 / 417.8 MB, free: 2.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.123e-05/0.6378, allocations: 7.875 kB / 417.8 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.6379, allocations: 38.81 kB / 417.8 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.6379, allocations: 3.953 kB / 417.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6379, allocations: 0 / 417.8 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.6404, allocations: 1.365 MB / 419.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/0.6419, allocations: 0.5513 MB / 419.8 MB, free: 1.266 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.6423, allocations: 63.61 kB / 419.8 MB, free: 1.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005649/0.6429, allocations: 38.97 kB / 419.9 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000605/0.6435, allocations: 233.1 kB / 420.1 MB, free: 1.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/0.6437, allocations: 135.4 kB / 420.2 MB, free: 1.156 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001902/0.6456, allocations: 0.8507 MB / 421.1 MB, free: 0.832 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.333e-06/0.6457, allocations: 0 / 421.1 MB, free: 0.832 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009387/0.6466, allocations: 119.2 kB / 421.2 MB, free: 0.832 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.003195/0.6498, allocations: 1.997 MB / 423.2 MB, free: 15.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002503/0.6524, allocations: 1.505 MB / 424.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.6525, allocations: 0 / 424.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.654, allocations: 1.139 MB / 425.8 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001865/0.6559, allocations: 265.5 kB / 426.1 MB, free: 14.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00516/0.6611, allocations: 1.87 MB / 428 MB, free: 13.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001086/0.6623, allocations: 1.034 MB / 429 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002346/0.6626, allocations: 40.73 kB / 429 MB, free: 13.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.6627, allocations: 73.91 kB / 429.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of SimCode: time 3.867e-06/0.6627, allocations: 0 / 429.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09895/0.7617, allocations: 15.41 MB / 444.5 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/0.762, allocations: 156.7 kB / 444.7 MB, free: 348 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.894/3.656, allocations: 64 / 444.7 MB, free: 348 kB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat