Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.151e-05/2.151e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2965, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.4329, allocations: 77.4 MB / 371.6 MB, free: 4.445 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/0.4332, allocations: 67.95 kB / 371.7 MB, free: 4.379 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1275/0.5607, allocations: 38.5 MB / 410.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5608, allocations: 0 / 410.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.889e-05/0.5608, allocations: 19.94 kB / 410.2 MB, free: 13.84 MB / 362.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.001939/0.5628, allocations: 1.323 MB / 411.5 MB, free: 12.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.5629, allocations: 12.03 kB / 411.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003314/0.5632, allocations: 134.4 kB / 411.7 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.5643, allocations: 0.5132 MB / 412.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.164e-05/0.5644, allocations: 16 kB / 412.2 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.5645, allocations: 27.98 kB / 412.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001074/0.5656, allocations: 448.5 kB / 412.7 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.567, allocations: 0.5909 MB / 413.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.567, allocations: 0 / 413.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.571e-05/0.5671, allocations: 15.98 kB / 413.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.5671, allocations: 0 / 413.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002869/0.57, allocations: 1.125 MB / 414.4 MB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.5713, allocations: 0.6781 MB / 415.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.5727, allocations: 0.6647 MB / 415.7 MB, free: 8.098 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.5727, allocations: 7.938 kB / 415.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001444/0.5742, allocations: 0.7368 MB / 416.5 MB, free: 7.312 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.955e-06/0.5742, allocations: 0 / 416.5 MB, free: 7.312 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002727/0.577, allocations: 1.096 MB / 417.6 MB, free: 6.211 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002717/0.5773, allocations: 333 kB / 417.9 MB, free: 5.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003495/0.5808, allocations: 1.551 MB / 419.5 MB, free: 4.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.581, allocations: 45.69 kB / 419.5 MB, free: 4.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003767/0.5814, allocations: 246.3 kB / 419.7 MB, free: 3.965 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.5816, allocations: 71.17 kB / 419.8 MB, free: 3.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.5817, allocations: 15.94 kB / 419.8 MB, free: 3.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002295/0.5819, allocations: 382.7 kB / 420.2 MB, free: 3.496 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009736/0.5829, allocations: 439.8 kB / 420.6 MB, free: 3.066 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009293/0.5839, allocations: 435.8 kB / 421.1 MB, free: 2.641 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006102/0.5845, allocations: 299.4 kB / 421.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.5845, allocations: 0 / 421.3 MB, free: 2.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00244/0.587, allocations: 1.027 MB / 422.4 MB, free: 1.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003041/0.5873, allocations: 297.5 kB / 422.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.5873, allocations: 0 / 422.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.5873, allocations: 3.953 kB / 422.7 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.373e-05/0.5874, allocations: 4 kB / 422.7 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.5874, allocations: 0 / 422.7 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006448/0.588, allocations: 43.88 kB / 422.7 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/0.5883, allocations: 132.1 kB / 422.8 MB, free: 0.793 MB / 362.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.0005953/0.5889, allocations: 475.4 kB / 423.3 MB, free: 280 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.24/0.8289, allocations: 1.161 MB / 424.5 MB, free: 107.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002995/0.8293, allocations: 135.4 kB / 424.6 MB, free: 107.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.8301, allocations: 251.3 kB / 424.8 MB, free: 107.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.106e-06/0.8301, allocations: 1.531 kB / 424.9 MB, free: 107.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.8302, allocations: 0 / 424.9 MB, free: 107.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.8302, allocations: 4.281 kB / 424.9 MB, free: 107.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004387/0.8346, allocations: 2.014 MB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.8346, allocations: 2.953 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.313e-05/0.8347, allocations: 1.344 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.8347, allocations: 1.438 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.8348, allocations: 33.28 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.8348, allocations: 3.625 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.8349, allocations: 4.828 kB / 426.9 MB, free: 106.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.8376, allocations: 1.271 MB / 428.2 MB, free: 106.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/0.84, allocations: 0.6833 MB / 428.9 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003313/0.8404, allocations: 56.58 kB / 428.9 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006014/0.841, allocations: 39.97 kB / 429 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009013/0.8419, allocations: 377.5 kB / 429.3 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002344/0.8422, allocations: 124.8 kB / 429.5 MB, free: 106.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002803/0.845, allocations: 1.273 MB / 430.7 MB, free: 106 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.934e-06/0.845, allocations: 0 / 430.7 MB, free: 106 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009272/0.846, allocations: 145.6 kB / 430.9 MB, free: 106 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: 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.003149/0.8491, allocations: 1.938 MB / 432.8 MB, free: 105.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.8516, allocations: 1.877 MB / 434.7 MB, free: 104.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.8517, allocations: 0 / 434.7 MB, free: 104.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001523/0.8532, allocations: 1.409 MB / 436.1 MB, free: 103.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001894/0.8551, allocations: 295.9 kB / 436.4 MB, free: 103.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006277/0.8614, allocations: 2.721 MB / 439.1 MB, free: 102.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.8627, allocations: 1.232 MB / 440.3 MB, free: 101.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.863, allocations: 35.67 kB / 440.4 MB, free: 101.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.8632, allocations: 132.4 kB / 440.5 MB, free: 101.4 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.8632, allocations: 3.75 kB / 440.5 MB, free: 101.4 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07902/0.9423, allocations: 19.86 MB / 460.4 MB, free: 87.44 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.9425, allocations: 142.1 kB / 460.5 MB, free: 87.24 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/3.759, allocations: 2.078 kB / 460.5 MB, free: 87.24 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat