Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.722/1.722, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.298e-05/3.303e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2516, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1241/0.3757, allocations: 72.74 MB / 336.6 MB, free: 1.012 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.376, allocations: 67.97 kB / 336.6 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.332/0.708, allocations: 37.79 MB / 374.4 MB, free: 90.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7081, allocations: 4 kB / 374.4 MB, free: 90.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.722e-05/0.7081, allocations: 13.06 kB / 374.4 MB, free: 90.64 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001348/0.7095, allocations: 1.299 MB / 375.7 MB, free: 89.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.7095, allocations: 6.812 kB / 375.7 MB, free: 89.82 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.7097, allocations: 64.95 kB / 375.8 MB, free: 89.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002138/0.7099, allocations: 132.3 kB / 375.9 MB, free: 89.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009273/0.7109, allocations: 0.5083 MB / 376.4 MB, free: 89.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.7109, allocations: 20.84 kB / 376.5 MB, free: 89.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.7111, allocations: 32.19 kB / 376.5 MB, free: 89.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.7123, allocations: 0.6153 MB / 377.1 MB, free: 89.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.7124, allocations: 0 / 377.1 MB, free: 89.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.76e-05/0.7124, allocations: 14.72 kB / 377.1 MB, free: 89.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.7125, allocations: 3.469 kB / 377.1 MB, free: 89.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009345/0.7134, allocations: 463.9 kB / 377.6 MB, free: 89.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.7157, allocations: 1.125 MB / 378.7 MB, free: 89.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.7169, allocations: 0.6825 MB / 379.4 MB, free: 88.99 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.7179, allocations: 0.67 MB / 380.1 MB, free: 88.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.549e-05/0.7179, allocations: 0 / 380.1 MB, free: 88.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.7191, allocations: 0.7509 MB / 380.8 MB, free: 88.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.186e-06/0.7191, allocations: 0 / 380.8 MB, free: 88.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002552/0.7217, allocations: 1.395 MB / 382.2 MB, free: 87.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001849/0.7219, allocations: 324.9 kB / 382.5 MB, free: 87.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002646/0.7246, allocations: 1.463 MB / 384 MB, free: 86.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.7248, allocations: 44.52 kB / 384 MB, free: 86.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.7249, allocations: 251.3 kB / 384.3 MB, free: 86.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.7251, allocations: 81.92 kB / 384.4 MB, free: 86.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.7252, allocations: 15.28 kB / 384.4 MB, free: 86.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.783e-05/0.7253, allocations: 322.4 kB / 384.7 MB, free: 86.31 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008833/0.7262, allocations: 444.2 kB / 385.1 MB, free: 86.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008665/0.727, allocations: 450.9 kB / 385.6 MB, free: 86.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007555/0.7278, allocations: 0.5728 MB / 386.1 MB, free: 85.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.7278, allocations: 0 / 386.1 MB, free: 85.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002304/0.7301, allocations: 1.287 MB / 387.4 MB, free: 84.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.7304, allocations: 295.3 kB / 387.7 MB, free: 83.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.7304, allocations: 4 kB / 387.7 MB, free: 83.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.7304, allocations: 7.75 kB / 387.7 MB, free: 83.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.134e-05/0.7305, allocations: 7.891 kB / 387.7 MB, free: 83.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.7305, allocations: 0 / 387.7 MB, free: 83.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006184/0.7311, allocations: 45.61 kB / 387.8 MB, free: 83.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001865/0.7313, allocations: 126.4 kB / 387.9 MB, free: 83.76 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.0004513/0.7318, allocations: 467.1 kB / 388.4 MB, free: 83.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.732, allocations: 138.4 kB / 388.5 MB, free: 83.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005103/0.7325, allocations: 199.6 kB / 388.7 MB, free: 82.97 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.7325, allocations: 4 kB / 388.7 MB, free: 82.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.7325, allocations: 3.953 kB / 388.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7326, allocations: 0 / 388.7 MB, free: 82.96 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003712/0.7363, allocations: 2.31 MB / 391 MB, free: 80.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.7363, allocations: 0 / 391 MB, free: 80.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-05/0.7363, allocations: 3.609 kB / 391 MB, free: 80.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.7364, allocations: 8 kB / 391 MB, free: 80.88 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.7365, allocations: 31.8 kB / 391 MB, free: 80.85 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.7365, allocations: 3.953 kB / 391 MB, free: 80.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.7365, allocations: 3.75 kB / 391.1 MB, free: 80.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002681/0.7392, allocations: 1.626 MB / 392.7 MB, free: 79.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001451/0.7407, allocations: 0.6474 MB / 393.3 MB, free: 78.51 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002524/0.7409, allocations: 55.97 kB / 393.4 MB, free: 78.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005954/0.7415, allocations: 43.81 kB / 393.4 MB, free: 78.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008282/0.7424, allocations: 380.6 kB / 393.8 MB, free: 78.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/0.7426, allocations: 131.3 kB / 393.9 MB, free: 77.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002172/0.7448, allocations: 1.211 MB / 395.1 MB, free: 76.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.7448, allocations: 0 / 395.1 MB, free: 76.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007334/0.7455, allocations: 152 kB / 395.3 MB, free: 76.56 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.003106/0.7486, allocations: 2.25 MB / 397.5 MB, free: 74.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002532/0.7512, allocations: 1.899 MB / 399.4 MB, free: 72.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7512, allocations: 0 / 399.4 MB, free: 72.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001548/0.7528, allocations: 1.433 MB / 400.9 MB, free: 70.72 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.7547, allocations: 313.9 kB / 401.2 MB, free: 70.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005305/0.76, allocations: 2.653 MB / 403.8 MB, free: 67.72 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009911/0.761, allocations: 1.173 MB / 405 MB, free: 66.52 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.7612, allocations: 139.4 kB / 405.1 MB, free: 66.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7612, allocations: 0 / 405.1 MB, free: 66.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.614/3.375, allocations: 12.78 MB / 417.9 MB, free: 53.48 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat