Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.812e-05/2.822e-05, allocations: 4 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3014, allocations: 44.51 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DLATREGSRH): time 0.002526/0.304, allocations: 1.43 MB / 304.7 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003187/0.3072, allocations: 0.9702 MB / 305.7 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.3074, allocations: 4.156 kB / 305.7 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.3076, allocations: 26.27 kB / 305.7 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003637/0.308, allocations: 172.1 kB / 305.9 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.3084, allocations: 89.23 kB / 306 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004535/0.3089, allocations: 200.8 kB / 306.2 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.3091, allocations: 62.28 kB / 306.2 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001261/0.3104, allocations: 0.6427 MB / 306.9 MB, free: 10.1 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004279/0.3109, allocations: 191.6 kB / 307.1 MB, free: 9.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.311, allocations: 12 kB / 307.1 MB, free: 9.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.3112, allocations: 12 kB / 307.1 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.3115, allocations: 243.2 kB / 307.3 MB, free: 9.648 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003279/0.3119, allocations: 59.94 kB / 307.4 MB, free: 9.59 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.3135, allocations: 1.194 MB / 308.6 MB, free: 8.395 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3136, allocations: 0 / 308.6 MB, free: 8.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.3136, allocations: 0 / 308.6 MB, free: 8.395 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.3136, allocations: 4 kB / 308.6 MB, free: 8.391 MB / 250.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.002153/0.3158, allocations: 1.277 MB / 309.9 MB, free: 7.012 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.3159, allocations: 8.031 kB / 309.9 MB, free: 7.004 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004293/0.3163, allocations: 142.4 kB / 310 MB, free: 6.863 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.3174, allocations: 0.517 MB / 310.5 MB, free: 6.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.579e-05/0.3176, allocations: 24 kB / 310.5 MB, free: 6.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.3177, allocations: 28 kB / 310.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.3195, allocations: 0.626 MB / 311.2 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.3195, allocations: 0 / 311.2 MB, free: 5.613 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.715e-05/0.3197, allocations: 23.97 kB / 311.2 MB, free: 5.59 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.3197, allocations: 4 kB / 311.2 MB, free: 5.586 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.3209, allocations: 475.7 kB / 311.7 MB, free: 5.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.3239, allocations: 1.174 MB / 312.9 MB, free: 3.891 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.3256, allocations: 0.7053 MB / 313.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.3257, allocations: 0 / 313.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001713/0.3274, allocations: 0.7485 MB / 314.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of pre-optimization done (n=33): time 4.329e-06/0.3274, allocations: 4 kB / 314.3 MB, free: 2.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=33): time 0.005007/0.3325, allocations: 2.143 MB / 316.5 MB, free: 136 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000322/0.3328, allocations: 333 kB / 316.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004272/0.3371, allocations: 1.636 MB / 318.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.3374, allocations: 41.7 kB / 318.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.3378, allocations: 252.9 kB / 318.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.338, allocations: 79.02 kB / 318.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.573e-05/0.3381, allocations: 16 kB / 318.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3383, allocations: 322.8 kB / 319.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.3396, allocations: 455.7 kB / 319.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.3409, allocations: 486.3 kB / 320 MB, free: 12.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.3422, allocations: 0.5988 MB / 320.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.3423, allocations: 0 / 320.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00333/0.3456, allocations: 1.322 MB / 322 MB, free: 10.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003624/0.346, allocations: 297.5 kB / 322.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.346, allocations: 4.062 kB / 322.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.3461, allocations: 3.938 kB / 322.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.895e-05/0.3461, allocations: 4 kB / 322.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.3461, allocations: 0 / 322.3 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007832/0.3469, allocations: 51.8 kB / 322.3 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/0.3472, allocations: 132.1 kB / 322.4 MB, free: 9.891 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$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,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,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.002228/0.3494, allocations: 0.9959 MB / 323.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003343/0.3498, allocations: 138.3 kB / 323.6 MB, free: 8.695 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007497/0.3506, allocations: 251.9 kB / 323.8 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.3506, allocations: 4 kB / 323.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3506, allocations: 0 / 323.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3506, allocations: 0 / 323.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005686/0.3563, allocations: 2.42 MB / 326.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.3564, allocations: 0 / 326.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.591e-05/0.3564, allocations: 7.938 kB / 326.3 MB, free: 5.898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.745e-06/0.3564, allocations: 4 kB / 326.3 MB, free: 5.895 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001281/0.3566, allocations: 35.97 kB / 326.3 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.3566, allocations: 7.984 kB / 326.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3566, allocations: 0 / 326.3 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.3604, allocations: 1.646 MB / 327.9 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00197/0.3624, allocations: 0.6746 MB / 328.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003751/0.3629, allocations: 63.95 kB / 328.7 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006492/0.3635, allocations: 47.86 kB / 328.7 MB, free: 3.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001051/0.3646, allocations: 375.6 kB / 329.1 MB, free: 2.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002657/0.3649, allocations: 131.9 kB / 329.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.003603/0.3685, allocations: 1.349 MB / 330.6 MB, free: 1.484 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.3686, allocations: 0 / 330.6 MB, free: 1.484 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009361/0.3695, allocations: 151.9 kB / 330.7 MB, free: 1.336 MB / 266.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.0004124/0.3699, allocations: 189.6 kB / 330.9 MB, free: 1.145 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.3738, allocations: 1.94 MB / 332.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3739, allocations: 0 / 332.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.3764, allocations: 1.44 MB / 334.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002163/0.3786, allocations: 307.7 kB / 334.6 MB, free: 13.27 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007824/0.3865, allocations: 3.245 MB / 337.8 MB, free: 9.984 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001805/0.3883, allocations: 1.219 MB / 339.1 MB, free: 8.734 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-05/0.3885, allocations: 15.44 kB / 339.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of SimCode: time 1.412e-06/0.3885, allocations: 7.875 kB / 339.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of Templates: time 0.02296/0.4114, allocations: 10.12 MB / 349.2 MB, free: 14.4 MB / 298.7 MB