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.744/1.744, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.183e-05, allocations: 7.438 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2566, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.386, allocations: 72.74 MB / 336.6 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.3864, allocations: 71.95 kB / 336.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3446/0.731, allocations: 37.79 MB / 374.5 MB, free: 90.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.7311, allocations: 0 / 374.5 MB, free: 90.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.916e-05/0.7311, allocations: 19.62 kB / 374.5 MB, free: 90.72 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.001343/0.7325, allocations: 1.294 MB / 375.8 MB, free: 89.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.7325, allocations: 10.75 kB / 375.8 MB, free: 89.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.7327, allocations: 61.38 kB / 375.8 MB, free: 89.85 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.7329, allocations: 131.4 kB / 376 MB, free: 89.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009099/0.7338, allocations: 0.5166 MB / 376.5 MB, free: 89.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.846e-05/0.7339, allocations: 20.97 kB / 376.5 MB, free: 89.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.734, allocations: 33.42 kB / 376.5 MB, free: 89.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.7353, allocations: 0.6069 MB / 377.1 MB, free: 89.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.7353, allocations: 3.969 kB / 377.1 MB, free: 89.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.102e-05/0.7354, allocations: 16.48 kB / 377.2 MB, free: 89.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.7354, allocations: 3.938 kB / 377.2 MB, free: 89.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009006/0.7363, allocations: 463 kB / 377.6 MB, free: 89.42 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.7386, allocations: 1.13 MB / 378.7 MB, free: 89.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.7398, allocations: 0.6861 MB / 379.4 MB, free: 89.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.7408, allocations: 0.6669 MB / 380.1 MB, free: 88.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.7408, allocations: 7.344 kB / 380.1 MB, free: 88.85 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.742, allocations: 0.7336 MB / 380.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.296e-06/0.7421, allocations: 0 / 380.8 MB, free: 88.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002583/0.7446, allocations: 1.404 MB / 382.2 MB, free: 87.88 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001857/0.7449, allocations: 321.9 kB / 382.6 MB, free: 87.55 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.7475, allocations: 1.463 MB / 384 MB, free: 86.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000179/0.7477, allocations: 47.34 kB / 384.1 MB, free: 86.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.7479, allocations: 251.9 kB / 384.3 MB, free: 86.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.7481, allocations: 73.75 kB / 384.4 MB, free: 86.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.7482, allocations: 14.75 kB / 384.4 MB, free: 86.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.7482, allocations: 321.7 kB / 384.7 MB, free: 86.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008805/0.7491, allocations: 443.9 kB / 385.1 MB, free: 86.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008436/0.75, allocations: 450.5 kB / 385.6 MB, free: 85.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007713/0.7508, allocations: 0.5729 MB / 386.2 MB, free: 85.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.7508, allocations: 4 kB / 386.2 MB, free: 85.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002288/0.7531, allocations: 1.284 MB / 387.4 MB, free: 84.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002181/0.7533, allocations: 295.9 kB / 387.7 MB, free: 83.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.7534, allocations: 0 / 387.7 MB, free: 83.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.7534, allocations: 4 kB / 387.7 MB, free: 83.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.151e-05/0.7534, allocations: 7.797 kB / 387.7 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.7534, allocations: 0 / 387.7 MB, free: 83.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006384/0.7541, allocations: 45.5 kB / 387.8 MB, free: 83.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.7543, allocations: 131 kB / 387.9 MB, free: 83.72 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.0004578/0.7548, allocations: 469.4 kB / 388.4 MB, free: 83.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/0.755, allocations: 134.4 kB / 388.5 MB, free: 83.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005196/0.7555, allocations: 195.4 kB / 388.7 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7555, allocations: 0 / 388.7 MB, free: 82.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.7556, allocations: 7.953 kB / 388.7 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.7556, allocations: 10.73 kB / 388.7 MB, free: 82.92 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003645/0.7592, allocations: 2.314 MB / 391 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.7593, allocations: 0 / 391 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.69e-05/0.7593, allocations: 0 / 391 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.7593, allocations: 4 kB / 391 MB, free: 80.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.777e-05/0.7594, allocations: 35.97 kB / 391.1 MB, free: 80.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.7594, allocations: 3.953 kB / 391.1 MB, free: 80.74 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.7595, allocations: 3.844 kB / 391.1 MB, free: 80.74 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.7621, allocations: 1.619 MB / 392.7 MB, free: 79.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001478/0.7636, allocations: 0.6552 MB / 393.4 MB, free: 78.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.7639, allocations: 55.97 kB / 393.4 MB, free: 78.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006022/0.7645, allocations: 43.95 kB / 393.5 MB, free: 78.28 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001033/0.7656, allocations: 376.8 kB / 393.8 MB, free: 77.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002965/0.7659, allocations: 131.3 kB / 393.9 MB, free: 77.79 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002362/0.7683, allocations: 1.211 MB / 395.2 MB, free: 76.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7683, allocations: 0 / 395.2 MB, free: 76.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008157/0.7691, allocations: 152 kB / 395.3 MB, free: 76.42 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.003445/0.7726, allocations: 2.25 MB / 397.6 MB, free: 74.1 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002566/0.7752, allocations: 1.905 MB / 399.5 MB, free: 72.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.7752, allocations: 0 / 399.5 MB, free: 72.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.7768, allocations: 1.422 MB / 400.9 MB, free: 70.58 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001907/0.7787, allocations: 306.5 kB / 401.2 MB, free: 70.3 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005585/0.7843, allocations: 2.658 MB / 403.8 MB, free: 67.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.7854, allocations: 1.177 MB / 405 MB, free: 66.38 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.7856, allocations: 135.4 kB / 405.2 MB, free: 66.25 MB / 314.7 MB Notification: Performance of SimCode: time 2.444e-06/0.7856, allocations: 0 / 405.2 MB, free: 66.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.634/3.42, allocations: 12.77 MB / 417.9 MB, free: 53.36 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