Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.627/1.627, allocations: 171.2 MB / 183.3 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.963e-05, allocations: 4 kB / 225.1 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.25, allocations: 38.77 MB / 263.9 MB, free: 9.719 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.3757, allocations: 72.74 MB / 336.6 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.376, allocations: 67.97 kB / 336.7 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3392/0.7152, allocations: 37.78 MB / 374.4 MB, free: 90.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.7153, allocations: 3.844 kB / 374.4 MB, free: 90.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.99e-05/0.7153, allocations: 18.97 kB / 374.5 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.001368/0.7167, allocations: 1.293 MB / 375.8 MB, free: 89.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.7168, allocations: 14.41 kB / 375.8 MB, free: 89.8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001327/0.7169, allocations: 61.2 kB / 375.8 MB, free: 89.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.7171, allocations: 137.1 kB / 376 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000913/0.7181, allocations: 0.5084 MB / 376.5 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.7181, allocations: 29.16 kB / 376.5 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.7183, allocations: 27.69 kB / 376.5 MB, free: 89.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.7196, allocations: 0.6198 MB / 377.1 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.7196, allocations: 0 / 377.1 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.819e-05/0.7197, allocations: 12.81 kB / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.7197, allocations: 3.281 kB / 377.2 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009087/0.7206, allocations: 466.7 kB / 377.6 MB, free: 89.33 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.7229, allocations: 1.12 MB / 378.7 MB, free: 89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.7241, allocations: 0.6853 MB / 379.4 MB, free: 88.97 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.7251, allocations: 0.6724 MB / 380.1 MB, free: 88.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.7252, allocations: 3.938 kB / 380.1 MB, free: 88.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.7264, allocations: 0.7355 MB / 380.8 MB, free: 88.44 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.935e-06/0.7264, allocations: 0 / 380.8 MB, free: 88.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002585/0.729, allocations: 1.399 MB / 382.2 MB, free: 87.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/0.7292, allocations: 328.9 kB / 382.6 MB, free: 87.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0026/0.7318, allocations: 1.462 MB / 384 MB, free: 86.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.7319, allocations: 47.34 kB / 384.1 MB, free: 86.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.7322, allocations: 232.7 kB / 384.3 MB, free: 86.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.7323, allocations: 70.8 kB / 384.4 MB, free: 86.62 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.851e-05/0.7324, allocations: 13.94 kB / 384.4 MB, free: 86.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.7325, allocations: 363.9 kB / 384.7 MB, free: 86.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008734/0.7334, allocations: 450.9 kB / 385.2 MB, free: 86.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000848/0.7343, allocations: 449.4 kB / 385.6 MB, free: 85.9 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007571/0.7351, allocations: 0.5737 MB / 386.2 MB, free: 85.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.7351, allocations: 3.844 kB / 386.2 MB, free: 85.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002337/0.7374, allocations: 1.33 MB / 387.5 MB, free: 84.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002085/0.7376, allocations: 294.8 kB / 387.8 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.7377, allocations: 0 / 387.8 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.7377, allocations: 0 / 387.8 MB, free: 83.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.25e-05/0.7377, allocations: 7.953 kB / 387.8 MB, free: 83.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.7378, allocations: 0 / 387.8 MB, free: 83.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006139/0.7384, allocations: 53.55 kB / 387.9 MB, free: 83.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001933/0.7386, allocations: 126.6 kB / 388 MB, free: 83.61 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.0004521/0.7391, allocations: 458.3 kB / 388.4 MB, free: 83.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.7393, allocations: 134.2 kB / 388.6 MB, free: 83.01 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.7398, allocations: 203.4 kB / 388.8 MB, free: 82.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.7398, allocations: 4 kB / 388.8 MB, free: 82.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.7398, allocations: 3.953 kB / 388.8 MB, free: 82.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.7398, allocations: 0 / 388.8 MB, free: 82.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003726/0.7436, allocations: 2.32 MB / 391.1 MB, free: 80.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.7436, allocations: 4 kB / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.77e-05/0.7436, allocations: 0 / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/0.7437, allocations: 0 / 391.1 MB, free: 80.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.7438, allocations: 35.98 kB / 391.1 MB, free: 80.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.229e-06/0.7438, allocations: 7.953 kB / 391.1 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.7438, allocations: 0 / 391.1 MB, free: 80.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002672/0.7465, allocations: 1.623 MB / 392.8 MB, free: 78.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.748, allocations: 0.6512 MB / 393.4 MB, free: 78.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/0.7482, allocations: 59.97 kB / 393.5 MB, free: 78.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006182/0.7489, allocations: 35.97 kB / 393.5 MB, free: 78.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008172/0.7497, allocations: 379.6 kB / 393.9 MB, free: 77.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001858/0.7499, allocations: 135.6 kB / 394 MB, free: 77.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002135/0.7521, allocations: 1.211 MB / 395.2 MB, free: 76.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7521, allocations: 4 kB / 395.2 MB, free: 76.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000706/0.7528, allocations: 144 kB / 395.4 MB, free: 76.35 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.003118/0.7559, allocations: 2.251 MB / 397.6 MB, free: 74.03 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002572/0.7585, allocations: 1.905 MB / 399.5 MB, free: 72.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7586, allocations: 7.938 kB / 399.5 MB, free: 72.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.7601, allocations: 1.422 MB / 401 MB, free: 70.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.7621, allocations: 300.6 kB / 401.2 MB, free: 70.22 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005307/0.7675, allocations: 2.559 MB / 403.8 MB, free: 67.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.7685, allocations: 1.177 MB / 405 MB, free: 66.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002025/0.7688, allocations: 41.34 kB / 405 MB, free: 66.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.769, allocations: 131.4 kB / 405.1 MB, free: 66.24 MB / 314.7 MB Notification: Performance of SimCode: time 8.81e-07/0.769, allocations: 0 / 405.1 MB, free: 66.24 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05257/0.8215, allocations: 19.41 MB / 424.6 MB, free: 46.6 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.8218, allocations: 149.3 kB / 424.7 MB, free: 46.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/3.671, allocations: 0 / 424.7 MB, free: 46.38 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRL_res.mat does not exist to compare? outputFormat=mat