Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DLATREGSRH,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Digital_Examples_DLATREGSRH",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.397/2.397, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.602e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3609, allocations: 44.49 MB / 294.3 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.5181, allocations: 77.35 MB / 371.6 MB, free: 4.449 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.5184, allocations: 63.97 kB / 371.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1241/0.6425, allocations: 30.54 MB / 402.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.6426, allocations: 0 / 402.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.178e-05/0.6426, allocations: 24 kB / 402.3 MB, free: 5.832 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.002938/0.6456, allocations: 1.327 MB / 403.6 MB, free: 4.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.455e-05/0.6457, allocations: 15.97 kB / 403.6 MB, free: 4.391 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004541/0.6462, allocations: 130.5 kB / 403.7 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/0.6479, allocations: 0.5132 MB / 404.2 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.7e-05/0.648, allocations: 23.98 kB / 404.3 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.6482, allocations: 24 kB / 404.3 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001868/0.6501, allocations: 448.5 kB / 404.7 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.6524, allocations: 0.591 MB / 405.3 MB, free: 2.617 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.6525, allocations: 4 kB / 405.3 MB, free: 2.613 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.6527, allocations: 11.98 kB / 405.3 MB, free: 2.602 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.6527, allocations: 4 kB / 405.3 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004511/0.6572, allocations: 1.125 MB / 406.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.6594, allocations: 0.6781 MB / 407.1 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002005/0.6615, allocations: 0.6607 MB / 407.8 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.6615, allocations: 4 kB / 407.8 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00237/0.6639, allocations: 0.7407 MB / 408.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 4.649e-06/0.664, allocations: 0 / 408.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.004669/0.6686, allocations: 1.085 MB / 409.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004345/0.6691, allocations: 333 kB / 410 MB, free: 13.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00617/0.6753, allocations: 1.558 MB / 411.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003126/0.6757, allocations: 37.81 kB / 411.6 MB, free: 12.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006493/0.6763, allocations: 254.3 kB / 411.8 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002977/0.6767, allocations: 79.09 kB / 411.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001402/0.6768, allocations: 8 kB / 411.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003958/0.6772, allocations: 394.7 kB / 412.3 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001708/0.679, allocations: 431.8 kB / 412.7 MB, free: 11.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.6807, allocations: 443.8 kB / 413.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.6818, allocations: 291.4 kB / 413.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.6818, allocations: 0 / 413.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.004347/0.6862, allocations: 1.027 MB / 414.4 MB, free: 9.293 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004973/0.6867, allocations: 293.5 kB / 414.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.6868, allocations: 0 / 414.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.6868, allocations: 0 / 414.7 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.502e-05/0.6869, allocations: 8 kB / 414.7 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.6869, allocations: 0 / 414.7 MB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.688, allocations: 43.95 kB / 414.8 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004103/0.6885, allocations: 124.2 kB / 414.9 MB, free: 8.785 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.00099/0.6895, allocations: 471.4 kB / 415.4 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004993/0.6945, allocations: 1.175 MB / 416.5 MB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/0.695, allocations: 130.5 kB / 416.7 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00135/0.6964, allocations: 256.3 kB / 416.9 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.6964, allocations: 4 kB / 416.9 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.6964, allocations: 0 / 416.9 MB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.6964, allocations: 7.891 kB / 416.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007859/0.7043, allocations: 2.013 MB / 418.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.7044, allocations: 0 / 418.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.7044, allocations: 0 / 418.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.7044, allocations: 0 / 418.9 MB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.7046, allocations: 43.97 kB / 419 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.7046, allocations: 0 / 419 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/0.7046, allocations: 0 / 419 MB, free: 4.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003763/0.7084, allocations: 1.281 MB / 420.3 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/0.711, allocations: 0.6785 MB / 420.9 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000446/0.7115, allocations: 55.97 kB / 421 MB, free: 2.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008387/0.7123, allocations: 43.91 kB / 421 MB, free: 2.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/0.7137, allocations: 375.6 kB / 421.4 MB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003371/0.7141, allocations: 131.9 kB / 421.5 MB, free: 1.996 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003951/0.7181, allocations: 1.271 MB / 422.8 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.7181, allocations: 0 / 422.8 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001203/0.7193, allocations: 144 kB / 422.9 MB, free: 0.582 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.2806/1, allocations: 1.92 MB / 424.9 MB, free: 106.6 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003197/1.003, allocations: 1.878 MB / 426.7 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.003, allocations: 0 / 426.7 MB, free: 106.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001971/1.005, allocations: 1.412 MB / 428.2 MB, free: 105.6 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/1.007, allocations: 293 kB / 428.4 MB, free: 105.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007377/1.015, allocations: 2.727 MB / 431.2 MB, free: 104.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/1.016, allocations: 1.22 MB / 432.4 MB, free: 104.1 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002726/1.017, allocations: 39.02 kB / 432.4 MB, free: 104 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/1.017, allocations: 140.6 kB / 432.6 MB, free: 104 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/1.017, allocations: 3.531 kB / 432.6 MB, free: 104 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07559/1.093, allocations: 19.87 MB / 452.4 MB, free: 94.58 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000227/1.093, allocations: 142.7 kB / 452.6 MB, free: 94.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.231/4.324, allocations: 0 / 452.6 MB, free: 94.38 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Digital.Examples.DLATREGSRH_res.mat does not exist to compare? outputFormat=mat