Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.646/1.646, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.729e-05/2.742e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2569, allocations: 38.76 MB / 258.3 MB, free: 12.17 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3857, allocations: 72.08 MB / 330.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.386, allocations: 63.97 kB / 330.5 MB, free: 5.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1322/0.5182, allocations: 37.55 MB / 368 MB, free: 60 kB / 314.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5183, allocations: 0 / 368 MB, free: 60 kB / 314.7 MB Notification: Performance of Transformations before backend: time 5.508e-05/0.5183, allocations: 16 kB / 368.1 MB, free: 44 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.2371/0.7554, allocations: 1.292 MB / 369.3 MB, free: 90.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.7555, allocations: 9.406 kB / 369.4 MB, free: 90.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002966/0.7558, allocations: 139 kB / 369.5 MB, free: 90.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.7569, allocations: 0.5136 MB / 370 MB, free: 90.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.757, allocations: 21.41 kB / 370 MB, free: 90.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.7572, allocations: 23.91 kB / 370 MB, free: 90.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001045/0.7582, allocations: 445.9 kB / 370.5 MB, free: 90.29 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.7594, allocations: 0.576 MB / 371.1 MB, free: 90.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.7594, allocations: 0 / 371.1 MB, free: 90.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.952e-05/0.7596, allocations: 12.88 kB / 371.1 MB, free: 90.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.7596, allocations: 3.188 kB / 371.1 MB, free: 90.26 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.762, allocations: 1.081 MB / 372.2 MB, free: 89.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.7631, allocations: 0.6684 MB / 372.8 MB, free: 89.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.7642, allocations: 0.656 MB / 373.5 MB, free: 89.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.7642, allocations: 1.156 kB / 373.5 MB, free: 89.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.7655, allocations: 0.7345 MB / 374.2 MB, free: 89.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 4.098e-06/0.7655, allocations: 0 / 374.2 MB, free: 89.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002376/0.7679, allocations: 1.084 MB / 375.3 MB, free: 89.65 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001793/0.7681, allocations: 332.7 kB / 375.6 MB, free: 89.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/0.7707, allocations: 1.394 MB / 377 MB, free: 89.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.7709, allocations: 39.17 kB / 377.1 MB, free: 89 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.7711, allocations: 231.9 kB / 377.3 MB, free: 88.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.7713, allocations: 84.11 kB / 377.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.838e-05/0.7714, allocations: 7.375 kB / 377.4 MB, free: 88.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.7715, allocations: 369.1 kB / 377.7 MB, free: 88.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007917/0.7723, allocations: 433.1 kB / 378.2 MB, free: 88.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007709/0.7731, allocations: 427.8 kB / 378.6 MB, free: 88.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005058/0.7736, allocations: 283.3 kB / 378.9 MB, free: 88.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.7736, allocations: 0 / 378.9 MB, free: 88.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00204/0.7757, allocations: 1.011 MB / 379.9 MB, free: 87.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.7759, allocations: 292.1 kB / 380.1 MB, free: 87.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.7759, allocations: 3.719 kB / 380.2 MB, free: 87.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.776, allocations: 1.734 kB / 380.2 MB, free: 87.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.063e-05/0.776, allocations: 3.219 kB / 380.2 MB, free: 87.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.776, allocations: 3.844 kB / 380.2 MB, free: 87.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007391/0.7768, allocations: 46.59 kB / 380.2 MB, free: 87.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.777, allocations: 131 kB / 380.3 MB, free: 87.62 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0004707/0.7775, allocations: 468.6 kB / 380.8 MB, free: 87.22 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002437/0.7799, allocations: 1.163 MB / 382 MB, free: 86.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.7802, allocations: 132 kB / 382.1 MB, free: 86.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005566/0.7807, allocations: 195.3 kB / 382.3 MB, free: 86.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.7808, allocations: 3.312 kB / 382.3 MB, free: 86.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.7808, allocations: 3.953 kB / 382.3 MB, free: 86.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.7808, allocations: 3.234 kB / 382.3 MB, free: 86.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.7842, allocations: 1.92 MB / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.7842, allocations: 0 / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.91e-05/0.7842, allocations: 3.5 kB / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.7843, allocations: 0 / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-05/0.7844, allocations: 33.56 kB / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.7844, allocations: 6.047 kB / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.7844, allocations: 3.719 kB / 384.2 MB, free: 85.86 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00239/0.7868, allocations: 1.263 MB / 385.5 MB, free: 85.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/0.7884, allocations: 0.6623 MB / 386.2 MB, free: 84.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/0.7887, allocations: 60.19 kB / 386.2 MB, free: 84.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006095/0.7893, allocations: 39.59 kB / 386.3 MB, free: 84.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008288/0.7902, allocations: 383.5 kB / 386.6 MB, free: 84.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/0.7904, allocations: 130 kB / 386.8 MB, free: 84.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001942/0.7923, allocations: 1.149 MB / 387.9 MB, free: 84.05 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7923, allocations: 0 / 387.9 MB, free: 84.05 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008317/0.7932, allocations: 144 kB / 388.1 MB, free: 83.91 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.002689/0.7959, allocations: 1.898 MB / 390 MB, free: 82.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002342/0.7983, allocations: 1.864 MB / 391.8 MB, free: 80.3 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.7983, allocations: 0 / 391.8 MB, free: 80.3 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.7997, allocations: 1.406 MB / 393.2 MB, free: 78.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.8017, allocations: 309.2 kB / 393.5 MB, free: 78.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.8071, allocations: 2.535 MB / 396.1 MB, free: 76.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.8082, allocations: 1.177 MB / 397.2 MB, free: 75.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002481/0.8084, allocations: 42.73 kB / 397.3 MB, free: 75.26 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.8086, allocations: 136 kB / 397.4 MB, free: 75.14 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.8086, allocations: 0 / 397.4 MB, free: 75.14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07638/0.885, allocations: 18.68 MB / 416.1 MB, free: 57.07 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000251/0.8853, allocations: 129.9 kB / 416.2 MB, free: 56.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.976/3.862, allocations: 0 / 416.2 MB, free: 56.89 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat