Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREG,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.981e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2561, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.3853, allocations: 72.39 MB / 336.2 MB, free: 1.27 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.3856, allocations: 67.97 kB / 336.3 MB, free: 1.203 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09758/0.4832, allocations: 26.69 MB / 363 MB, free: 6.523 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4833, allocations: 0 / 363 MB, free: 6.523 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.48e-05/0.4834, allocations: 15.94 kB / 363 MB, free: 6.508 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.001845/0.4852, allocations: 1.004 MB / 364 MB, free: 5.414 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.4853, allocations: 12.03 kB / 364 MB, free: 5.402 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002254/0.4855, allocations: 54.55 kB / 364.1 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002613/0.4858, allocations: 90.92 kB / 364.1 MB, free: 5.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.4869, allocations: 411.6 kB / 364.5 MB, free: 4.805 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.968e-05/0.487, allocations: 28 kB / 364.6 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.4871, allocations: 20 kB / 364.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4884, allocations: 490.3 kB / 365.1 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.4885, allocations: 0 / 365.1 MB, free: 4.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.442e-05/0.4886, allocations: 15.98 kB / 365.1 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.4886, allocations: 11.95 kB / 365.1 MB, free: 4.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009323/0.4896, allocations: 348.2 kB / 365.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002573/0.4922, allocations: 0.9184 MB / 366.4 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.4934, allocations: 498.6 kB / 366.8 MB, free: 2.434 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/0.4946, allocations: 484.9 kB / 367.3 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.4947, allocations: 0 / 367.3 MB, free: 1.957 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001372/0.496, allocations: 0.6189 MB / 367.9 MB, free: 1.301 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.027e-06/0.4961, allocations: 8 kB / 367.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002772/0.4989, allocations: 1.121 MB / 369.1 MB, free: 124 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2127/0.7116, allocations: 277.8 kB / 369.3 MB, free: 89.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003024/0.7147, allocations: 1.01 MB / 370.3 MB, free: 89.49 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.7149, allocations: 41.86 kB / 370.4 MB, free: 89.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.7151, allocations: 194.2 kB / 370.6 MB, free: 89.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.7153, allocations: 70.52 kB / 370.6 MB, free: 89.3 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.7153, allocations: 12.12 kB / 370.7 MB, free: 89.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.832e-05/0.7154, allocations: 327.3 kB / 371 MB, free: 88.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009794/0.7164, allocations: 341.3 kB / 371.3 MB, free: 88.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000878/0.7173, allocations: 336.6 kB / 371.6 MB, free: 88.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007642/0.7181, allocations: 494.9 kB / 372.1 MB, free: 88.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.7182, allocations: 0 / 372.1 MB, free: 88.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002119/0.7203, allocations: 1.067 MB / 373.2 MB, free: 88.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002136/0.7206, allocations: 247.8 kB / 373.4 MB, free: 88.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.7206, allocations: 0 / 373.4 MB, free: 88.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.7206, allocations: 0 / 373.4 MB, free: 88.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.545e-05/0.7207, allocations: 0 / 373.4 MB, free: 88.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.061e-05/0.7207, allocations: 3.844 kB / 373.4 MB, free: 88.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/0.7213, allocations: 43.83 kB / 373.5 MB, free: 88.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.7215, allocations: 125.6 kB / 373.6 MB, free: 88.27 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.00048/0.722, allocations: 417.1 kB / 374 MB, free: 87.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.7223, allocations: 86.47 kB / 374.1 MB, free: 87.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004338/0.7227, allocations: 147 kB / 374.2 MB, free: 87.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.7227, allocations: 3.516 kB / 374.2 MB, free: 87.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.7227, allocations: 3.562 kB / 374.2 MB, free: 87.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.7227, allocations: 0 / 374.2 MB, free: 87.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.7264, allocations: 1.919 MB / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.7265, allocations: 0 / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.315e-05/0.7265, allocations: 3.75 kB / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.7265, allocations: 3.953 kB / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.7266, allocations: 30.92 kB / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.7267, allocations: 2.219 kB / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7267, allocations: 0 / 376.2 MB, free: 87.24 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/0.7291, allocations: 1.339 MB / 377.5 MB, free: 86.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001506/0.7307, allocations: 0.5538 MB / 378.1 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002768/0.731, allocations: 63.81 kB / 378.2 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005741/0.7316, allocations: 44.48 kB / 378.2 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000627/0.7322, allocations: 231.7 kB / 378.4 MB, free: 86.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002128/0.7325, allocations: 132.8 kB / 378.6 MB, free: 86.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001877/0.7344, allocations: 0.8396 MB / 379.4 MB, free: 86.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7344, allocations: 0 / 379.4 MB, free: 86.43 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007968/0.7352, allocations: 128.3 kB / 379.5 MB, free: 86.43 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.002996/0.7382, allocations: 1.978 MB / 381.5 MB, free: 85.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002357/0.7406, allocations: 1.503 MB / 383 MB, free: 84.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7407, allocations: 0 / 383 MB, free: 84.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.7422, allocations: 1.133 MB / 384.1 MB, free: 83.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001859/0.7441, allocations: 256.6 kB / 384.4 MB, free: 83.46 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.7488, allocations: 1.926 MB / 386.3 MB, free: 81.87 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000816/0.7497, allocations: 1.033 MB / 387.3 MB, free: 80.9 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.7499, allocations: 70.94 kB / 387.4 MB, free: 80.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7499, allocations: 0 / 387.4 MB, free: 80.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.518/3.268, allocations: 8.859 MB / 396.3 MB, free: 73.86 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREG_res.mat does not exist to compare? outputFormat=mat