Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.396/2.396, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.702e-05/2.7e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3349, allocations: 44.49 MB / 294.3 MB, free: 14.46 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.4928, allocations: 77.02 MB / 371.3 MB, free: 4.859 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004388/0.4933, allocations: 71.97 kB / 371.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1548/0.6482, allocations: 26.58 MB / 398 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6482, allocations: 0 / 398 MB, free: 10.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.366e-05/0.6483, allocations: 12 kB / 398 MB, free: 10.21 MB / 346.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.002064/0.6504, allocations: 1.012 MB / 399 MB, free: 9.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.6505, allocations: 11.97 kB / 399 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003719/0.6509, allocations: 83.06 kB / 399.1 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.652, allocations: 415.6 kB / 399.5 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.6521, allocations: 12 kB / 399.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.6522, allocations: 27.95 kB / 399.5 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001132/0.6534, allocations: 344.1 kB / 399.9 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.6548, allocations: 474.2 kB / 400.3 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.6549, allocations: 0 / 400.3 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.655, allocations: 15.98 kB / 400.3 MB, free: 7.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.655, allocations: 4 kB / 400.3 MB, free: 7.703 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002782/0.6578, allocations: 0.8795 MB / 401.2 MB, free: 6.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.6591, allocations: 490.6 kB / 401.7 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.6603, allocations: 480.9 kB / 402.2 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.6603, allocations: 7.938 kB / 402.2 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001466/0.6618, allocations: 0.6345 MB / 402.8 MB, free: 5.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 3.907e-06/0.6618, allocations: 0 / 402.8 MB, free: 5.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002711/0.6646, allocations: 0.8768 MB / 403.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002633/0.6649, allocations: 279.2 kB / 404 MB, free: 3.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002546/0.6674, allocations: 0.9761 MB / 404.9 MB, free: 2.941 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001752/0.6676, allocations: 41.7 kB / 405 MB, free: 2.895 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.6678, allocations: 157.8 kB / 405.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.668, allocations: 67.27 kB / 405.2 MB, free: 2.672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.986e-05/0.6681, allocations: 8 kB / 405.2 MB, free: 2.664 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.6683, allocations: 338.8 kB / 405.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008859/0.6692, allocations: 327.8 kB / 405.9 MB, free: 2.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008398/0.6701, allocations: 339.8 kB / 406.2 MB, free: 1.672 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/0.6707, allocations: 231.8 kB / 406.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.6707, allocations: 0 / 406.4 MB, free: 1.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002414/0.6732, allocations: 0.8327 MB / 407.3 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003103/0.6735, allocations: 251.8 kB / 407.5 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.6735, allocations: 4 kB / 407.5 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.6736, allocations: 4 kB / 407.5 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.655e-05/0.6736, allocations: 0 / 407.5 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.6736, allocations: 3.938 kB / 407.5 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.6742, allocations: 47.77 kB / 407.6 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/0.6745, allocations: 127.9 kB / 407.7 MB, free: 136 kB / 346.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.0006192/0.6752, allocations: 409.8 kB / 408.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002749/0.6779, allocations: 0.9534 MB / 409 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.6782, allocations: 83.06 kB / 409.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000526/0.6787, allocations: 152 kB / 409.3 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.6787, allocations: 4 kB / 409.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.6787, allocations: 7.953 kB / 409.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.6788, allocations: 0 / 409.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.6827, allocations: 1.584 MB / 410.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.6827, allocations: 4 kB / 410.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.754e-05/0.6827, allocations: 7.984 kB / 410.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.6827, allocations: 0 / 410.9 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.6829, allocations: 31.98 kB / 410.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.6829, allocations: 3.953 kB / 410.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.6829, allocations: 0 / 410.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002724/0.6856, allocations: 1.06 MB / 412 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.6873, allocations: 0.562 MB / 412.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003211/0.6876, allocations: 63.91 kB / 412.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006104/0.6883, allocations: 35.91 kB / 412.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007572/0.689, allocations: 239.7 kB / 412.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002661/0.6893, allocations: 127.9 kB / 413 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001964/0.6913, allocations: 0.807 MB / 413.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6913, allocations: 0 / 413.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008036/0.6921, allocations: 120 kB / 413.9 MB, free: 9.766 MB / 362.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.003365/0.6955, allocations: 1.687 MB / 415.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002742/0.6983, allocations: 1.484 MB / 417.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.6983, allocations: 0 / 417.1 MB, free: 6.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.7001, allocations: 1.121 MB / 418.2 MB, free: 5.277 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.7021, allocations: 262.5 kB / 418.5 MB, free: 5.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005642/0.7078, allocations: 1.849 MB / 420.3 MB, free: 3.129 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/0.7092, allocations: 1.038 MB / 421.3 MB, free: 2.059 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002399/0.7094, allocations: 41.75 kB / 421.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.7096, allocations: 71.42 kB / 421.5 MB, free: 1.949 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7096, allocations: 0 / 421.5 MB, free: 1.949 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4045/1.114, allocations: 14.74 MB / 436.2 MB, free: 105.4 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002117/1.114, allocations: 134.8 kB / 436.3 MB, free: 105.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.245/4.359, allocations: 3.938 kB / 436.3 MB, free: 105.2 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat