Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.2 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.47e-05/2.482e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2592, allocations: 38.77 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1254/0.3846, allocations: 72.04 MB / 330.4 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.3849, allocations: 63.97 kB / 330.4 MB, free: 5.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09971/0.4846, allocations: 29.9 MB / 360.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4847, allocations: 0 / 360.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.708e-05/0.4848, allocations: 12 kB / 360.4 MB, free: 7.758 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.001774/0.4865, allocations: 1.296 MB / 361.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4866, allocations: 8.031 kB / 361.7 MB, free: 6.355 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002789/0.4869, allocations: 134.4 kB / 361.8 MB, free: 6.223 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.4879, allocations: 0.5171 MB / 362.3 MB, free: 5.656 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.488, allocations: 12 kB / 362.3 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.4881, allocations: 35.92 kB / 362.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001002/0.4891, allocations: 443.8 kB / 362.8 MB, free: 5.176 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.4905, allocations: 0.5754 MB / 363.4 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.4905, allocations: 0 / 363.4 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-05/0.4906, allocations: 15.94 kB / 363.4 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.4906, allocations: 8 kB / 363.4 MB, free: 4.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.4931, allocations: 1.079 MB / 364.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.4943, allocations: 0.6703 MB / 365.1 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.4956, allocations: 0.653 MB / 365.8 MB, free: 2.113 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.4956, allocations: 4 kB / 365.8 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001398/0.497, allocations: 0.7368 MB / 366.5 MB, free: 1.332 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.216e-06/0.497, allocations: 0 / 366.5 MB, free: 1.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002596/0.4996, allocations: 1.077 MB / 367.6 MB, free: 256 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2123/0.7119, allocations: 322.6 kB / 367.9 MB, free: 90.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.7156, allocations: 1.401 MB / 369.3 MB, free: 90.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.7159, allocations: 41.08 kB / 369.4 MB, free: 90.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.7161, allocations: 229.3 kB / 369.6 MB, free: 90.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/0.7163, allocations: 77.5 kB / 369.7 MB, free: 90.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.64e-05/0.7164, allocations: 9.625 kB / 369.7 MB, free: 90.29 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.7165, allocations: 374.1 kB / 370 MB, free: 89.97 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00091/0.7174, allocations: 432.6 kB / 370.5 MB, free: 89.97 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008456/0.7183, allocations: 432.8 kB / 370.9 MB, free: 89.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005572/0.7189, allocations: 282.5 kB / 371.2 MB, free: 89.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.7189, allocations: 3.75 kB / 371.2 MB, free: 89.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002274/0.7212, allocations: 1.007 MB / 372.2 MB, free: 89.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002351/0.7214, allocations: 293.1 kB / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.7215, allocations: 1.312 kB / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.7215, allocations: 0 / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.16e-05/0.7215, allocations: 8.969 kB / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.7216, allocations: 1.219 kB / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.7222, allocations: 46.81 kB / 372.5 MB, free: 89.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002266/0.7224, allocations: 131.1 kB / 372.6 MB, free: 89.65 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.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.0004881/0.7229, allocations: 455.5 kB / 373.1 MB, free: 89.29 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002411/0.7254, allocations: 1.163 MB / 374.3 MB, free: 89.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.7256, allocations: 135.9 kB / 374.4 MB, free: 89.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005355/0.7261, allocations: 204.9 kB / 374.6 MB, free: 89.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.7262, allocations: 0 / 374.6 MB, free: 89.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.7262, allocations: 3.25 kB / 374.6 MB, free: 89.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.7262, allocations: 0 / 374.6 MB, free: 89.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.7295, allocations: 1.924 MB / 376.5 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.7295, allocations: 7.5 kB / 376.5 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.835e-05/0.7295, allocations: 5.719 kB / 376.5 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.7296, allocations: 0 / 376.5 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.531e-05/0.7297, allocations: 35.17 kB / 376.6 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.7297, allocations: 3.688 kB / 376.6 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7297, allocations: 0 / 376.6 MB, free: 88.7 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.732, allocations: 1.254 MB / 377.8 MB, free: 88.5 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00156/0.7336, allocations: 0.6661 MB / 378.5 MB, free: 88.17 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.7339, allocations: 58.14 kB / 378.5 MB, free: 88.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.7346, allocations: 43.73 kB / 378.6 MB, free: 88.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008497/0.7354, allocations: 377.7 kB / 379 MB, free: 88.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/0.7356, allocations: 131.1 kB / 379.1 MB, free: 88.05 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002021/0.7377, allocations: 1.147 MB / 380.2 MB, free: 87.58 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.7377, allocations: 0 / 380.2 MB, free: 87.58 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008085/0.7385, allocations: 152.5 kB / 380.4 MB, free: 87.58 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,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.00279/0.7413, allocations: 1.9 MB / 382.3 MB, free: 86.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002463/0.7438, allocations: 1.867 MB / 384.1 MB, free: 85.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.7438, allocations: 0 / 384.1 MB, free: 85.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.7454, allocations: 1.408 MB / 385.5 MB, free: 84.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.7473, allocations: 292 kB / 385.8 MB, free: 84.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.7527, allocations: 2.551 MB / 388.4 MB, free: 82.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001053/0.7538, allocations: 1.172 MB / 389.6 MB, free: 81.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.754, allocations: 40.14 kB / 389.6 MB, free: 81.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.7542, allocations: 138.7 kB / 389.7 MB, free: 81.37 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7542, allocations: 0 / 389.7 MB, free: 81.37 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06609/0.8203, allocations: 18.67 MB / 408.4 MB, free: 64.17 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/0.8206, allocations: 133.9 kB / 408.5 MB, free: 63.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.844/3.665, allocations: 0 / 408.5 MB, free: 63.98 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat