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.646/1.646, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.217e-05/2.215e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2521, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.3753, allocations: 72.08 MB / 330.4 MB, free: 5.746 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.3756, allocations: 71.95 kB / 330.5 MB, free: 5.676 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1237/0.4993, allocations: 37.55 MB / 368 MB, free: 104 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4994, allocations: 0 / 368 MB, free: 104 kB / 314.7 MB Notification: Performance of Transformations before backend: time 4.647e-05/0.4994, allocations: 12 kB / 368 MB, free: 92 kB / 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.2045/0.7039, allocations: 1.288 MB / 369.3 MB, free: 90.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.704, allocations: 12.03 kB / 369.3 MB, free: 90.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004175/0.7044, allocations: 136.7 kB / 369.5 MB, free: 90.35 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.7057, allocations: 0.5134 MB / 370 MB, free: 90.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.878e-05/0.7058, allocations: 18.89 kB / 370 MB, free: 90.04 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.7059, allocations: 26.55 kB / 370 MB, free: 90.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001076/0.707, allocations: 447.8 kB / 370.5 MB, free: 90.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.7082, allocations: 0.5785 MB / 371 MB, free: 90 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.7083, allocations: 1.156 kB / 371 MB, free: 90 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.314e-05/0.7084, allocations: 11.12 kB / 371 MB, free: 90 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.7084, allocations: 3.219 kB / 371 MB, free: 90 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.7109, allocations: 1.081 MB / 372.1 MB, free: 89.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.7122, allocations: 0.6623 MB / 372.8 MB, free: 89.7 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.7133, allocations: 0.6554 MB / 373.4 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.827e-05/0.7133, allocations: 1.125 kB / 373.4 MB, free: 89.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.7146, allocations: 0.7386 MB / 374.2 MB, free: 89.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.995e-06/0.7146, allocations: 0 / 374.2 MB, free: 89.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002472/0.7171, allocations: 1.084 MB / 375.3 MB, free: 89.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002009/0.7173, allocations: 332.5 kB / 375.6 MB, free: 89.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/0.72, allocations: 1.395 MB / 377 MB, free: 88.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/0.7203, allocations: 46.89 kB / 377 MB, free: 88.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.7205, allocations: 251.8 kB / 377.3 MB, free: 88.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001596/0.7207, allocations: 75.83 kB / 377.4 MB, free: 88.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.603e-05/0.7207, allocations: 10.59 kB / 377.4 MB, free: 88.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.624e-05/0.7208, allocations: 321.9 kB / 377.7 MB, free: 88.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.7216, allocations: 433.8 kB / 378.1 MB, free: 88.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007852/0.7224, allocations: 428 kB / 378.5 MB, free: 88.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/0.7229, allocations: 280.3 kB / 378.8 MB, free: 88.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.723, allocations: 7.406 kB / 378.8 MB, free: 88.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001976/0.725, allocations: 0.9733 MB / 379.8 MB, free: 87.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002125/0.7252, allocations: 289.3 kB / 380.1 MB, free: 87.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.7252, allocations: 3.984 kB / 380.1 MB, free: 87.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.7252, allocations: 7.328 kB / 380.1 MB, free: 87.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.044e-05/0.7253, allocations: 0 / 380.1 MB, free: 87.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.7253, allocations: 3.719 kB / 380.1 MB, free: 87.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007352/0.726, allocations: 46.7 kB / 380.1 MB, free: 87.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000192/0.7263, allocations: 132.6 kB / 380.3 MB, free: 87.53 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.0004605/0.7267, allocations: 458.6 kB / 380.7 MB, free: 87.14 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00237/0.7291, allocations: 1.169 MB / 381.9 MB, free: 86.74 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.7294, allocations: 131.4 kB / 382 MB, free: 86.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005487/0.7299, allocations: 200 kB / 382.2 MB, free: 86.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.7299, allocations: 3.797 kB / 382.2 MB, free: 86.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.73, allocations: 7.297 kB / 382.2 MB, free: 86.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.73, allocations: 0 / 382.2 MB, free: 86.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003466/0.7334, allocations: 1.919 MB / 384.1 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.7335, allocations: 0 / 384.1 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.892e-05/0.7335, allocations: 3.562 kB / 384.1 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.7335, allocations: 3.906 kB / 384.1 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.831e-05/0.7336, allocations: 36.69 kB / 384.2 MB, free: 85.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.7337, allocations: 3.953 kB / 384.2 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.7337, allocations: 7.453 kB / 384.2 MB, free: 85.76 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00241/0.7361, allocations: 1.264 MB / 385.4 MB, free: 85.27 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/0.7377, allocations: 0.6527 MB / 386.1 MB, free: 84.88 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003086/0.738, allocations: 58.22 kB / 386.1 MB, free: 84.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006816/0.7387, allocations: 39.72 kB / 386.2 MB, free: 84.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008592/0.7396, allocations: 380.7 kB / 386.6 MB, free: 84.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001934/0.7398, allocations: 131.6 kB / 386.7 MB, free: 84.76 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002036/0.7418, allocations: 1.149 MB / 387.8 MB, free: 84.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.7419, allocations: 0 / 387.8 MB, free: 84.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008671/0.7427, allocations: 143.5 kB / 388 MB, free: 83.99 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.002848/0.7456, allocations: 1.9 MB / 389.9 MB, free: 82.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002373/0.748, allocations: 1.865 MB / 391.7 MB, free: 80.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.748, allocations: 0 / 391.7 MB, free: 80.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.7496, allocations: 1.407 MB / 393.1 MB, free: 78.96 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.7515, allocations: 303.7 kB / 393.4 MB, free: 78.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005509/0.7571, allocations: 2.638 MB / 396.1 MB, free: 76.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/0.7581, allocations: 1.174 MB / 397.3 MB, free: 75.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/0.7583, allocations: 136.3 kB / 397.4 MB, free: 75.17 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.7583, allocations: 0 / 397.4 MB, free: 75.17 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.997/3.755, allocations: 12.78 MB / 410.2 MB, free: 63.16 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