Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.011/2.011, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.33e-05/2.348e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3035, allocations: 44.48 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.4418, allocations: 77.36 MB / 371.5 MB, free: 4.551 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/0.4421, allocations: 71.95 kB / 371.6 MB, free: 4.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1042/0.5463, allocations: 30.55 MB / 402.2 MB, free: 5.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5463, allocations: 0 / 402.2 MB, free: 5.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.148e-05/0.5464, allocations: 20 kB / 402.2 MB, free: 5.926 MB / 346.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.002106/0.5485, allocations: 1.319 MB / 403.5 MB, free: 4.508 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.5486, allocations: 8.031 kB / 403.5 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.549, allocations: 130.5 kB / 403.6 MB, free: 4.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.5501, allocations: 0.5172 MB / 404.2 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.5502, allocations: 16 kB / 404.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.5503, allocations: 24 kB / 404.2 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001094/0.5514, allocations: 452.5 kB / 404.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.5528, allocations: 0.5948 MB / 405.2 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.5529, allocations: 0 / 405.2 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-05/0.553, allocations: 8 kB / 405.2 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.553, allocations: 8 kB / 405.2 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.5559, allocations: 1.125 MB / 406.4 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/0.5573, allocations: 0.678 MB / 407.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.5586, allocations: 0.6647 MB / 407.7 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.5586, allocations: 3.984 kB / 407.7 MB, free: 184 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001546/0.5602, allocations: 0.7368 MB / 408.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 6.843e-06/0.5602, allocations: 0 / 408.5 MB, free: 15.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002767/0.563, allocations: 1.104 MB / 409.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002814/0.5633, allocations: 325 kB / 409.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/0.5672, allocations: 1.555 MB / 411.4 MB, free: 12.35 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002597/0.5675, allocations: 45.69 kB / 411.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.5678, allocations: 252.9 kB / 411.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.568, allocations: 75.11 kB / 411.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/0.5681, allocations: 11.98 kB / 411.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5683, allocations: 330.8 kB / 412.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.5693, allocations: 435.8 kB / 412.6 MB, free: 11.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009719/0.5703, allocations: 443.8 kB / 413 MB, free: 10.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006545/0.571, allocations: 291.4 kB / 413.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.571, allocations: 112 / 413.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002413/0.5734, allocations: 0.989 MB / 414.3 MB, free: 9.488 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003131/0.5738, allocations: 293.5 kB / 414.6 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5738, allocations: 3.984 kB / 414.6 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.202e-05/0.5738, allocations: 0 / 414.6 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.114e-05/0.5739, allocations: 11.94 kB / 414.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.5739, allocations: 0 / 414.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.5746, allocations: 47.86 kB / 414.6 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/0.5748, allocations: 124.2 kB / 414.7 MB, free: 8.969 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.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.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.0006395/0.5755, allocations: 463.5 kB / 415.2 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002924/0.5784, allocations: 1.175 MB / 416.4 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/0.5788, allocations: 134.4 kB / 416.5 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009219/0.5797, allocations: 252.3 kB / 416.7 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.5798, allocations: 4 kB / 416.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.5798, allocations: 4 kB / 416.7 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.936e-06/0.5798, allocations: 3.953 kB / 416.8 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004973/0.5848, allocations: 2.002 MB / 418.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.5849, allocations: 0 / 418.8 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.294e-05/0.5849, allocations: 7.875 kB / 418.8 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.5849, allocations: 0 / 418.8 MB, free: 4.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.585, allocations: 39.97 kB / 418.8 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.5851, allocations: 0 / 418.8 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5851, allocations: 0 / 418.8 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002911/0.588, allocations: 1.288 MB / 420.1 MB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/0.59, allocations: 0.6747 MB / 420.8 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.5904, allocations: 55.97 kB / 420.8 MB, free: 2.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006375/0.5911, allocations: 39.88 kB / 420.9 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/0.5921, allocations: 375.6 kB / 421.2 MB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002628/0.5924, allocations: 139.9 kB / 421.4 MB, free: 2.188 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003362/0.5958, allocations: 1.279 MB / 422.6 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.5958, allocations: 0 / 422.6 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001002/0.5968, allocations: 144 kB / 422.8 MB, free: 0.7656 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,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.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.245/0.8418, allocations: 1.911 MB / 424.7 MB, free: 106.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00315/0.845, allocations: 1.878 MB / 426.6 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.8451, allocations: 0 / 426.6 MB, free: 105.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.8469, allocations: 1.418 MB / 428 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/0.8491, allocations: 289.6 kB / 428.3 MB, free: 105.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007796/0.8569, allocations: 2.824 MB / 431.1 MB, free: 104.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.8583, allocations: 1.227 MB / 432.3 MB, free: 103.9 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.8586, allocations: 132.4 kB / 432.5 MB, free: 103.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8586, allocations: 1.094 kB / 432.5 MB, free: 103.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.705/3.563, allocations: 13.79 MB / 446.2 MB, free: 100.4 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat