Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadModel(Modelica): time 1.83/1.83, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.762e-05/2.781e-05, allocations: 7.359 kB / 255.4 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07771, allocations: 44.51 MB / 299.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3514/0.4291, allocations: 78.47 MB / 378.3 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4294, allocations: 65.77 kB / 378.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1228/0.5522, allocations: 43.16 MB / 421.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.35e-06/0.5522, allocations: 0 / 421.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.5523, allocations: 7.812 kB / 421.6 MB, free: 11.81 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.0008249/0.5531, allocations: 0.9469 MB / 422.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.5532, allocations: 11.47 kB / 422.5 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.5533, allocations: 74.12 kB / 422.6 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.5538, allocations: 356.4 kB / 422.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.737e-05/0.5538, allocations: 19.31 kB / 423 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.37e-05/0.5539, allocations: 23.31 kB / 423 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006008/0.5545, allocations: 293.2 kB / 423.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.5546, allocations: 0 / 423.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.5546, allocations: 11.75 kB / 423.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.435e-06/0.5547, allocations: 0 / 423.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000356/0.555, allocations: 148.4 kB / 423.4 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.5564, allocations: 0.775 MB / 424.2 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004275/0.5569, allocations: 204.6 kB / 424.4 MB, free: 9.977 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.5573, allocations: 187.1 kB / 424.6 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.5573, allocations: 7.812 kB / 424.6 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005618/0.5579, allocations: 425.9 kB / 425 MB, free: 9.684 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.133e-06/0.5579, allocations: 0 / 425 MB, free: 9.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.001512/0.5594, allocations: 0.858 MB / 425.9 MB, free: 9.285 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.5595, allocations: 284.8 kB / 426.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.5608, allocations: 0.8272 MB / 427 MB, free: 8.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.51e-05/0.5609, allocations: 34.83 kB / 427 MB, free: 8.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.561, allocations: 185.7 kB / 427.2 MB, free: 8.426 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.5611, allocations: 63.69 kB / 427.2 MB, free: 8.387 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.138e-05/0.5612, allocations: 10.36 kB / 427.3 MB, free: 8.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.5613, allocations: 325.7 kB / 427.6 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.5616, allocations: 140.1 kB / 427.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/0.562, allocations: 170 kB / 427.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.5624, allocations: 356.3 kB / 428.2 MB, free: 7.738 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.414e-06/0.5624, allocations: 7.875 kB / 428.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001413/0.5639, allocations: 0.8029 MB / 429 MB, free: 7.367 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.564, allocations: 239.9 kB / 429.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.704e-06/0.564, allocations: 3.875 kB / 429.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.564, allocations: 0 / 429.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.321e-05/0.5641, allocations: 11.8 kB / 429.3 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.943e-06/0.5641, allocations: 7.688 kB / 429.3 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.5645, allocations: 30.89 kB / 429.3 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/0.5648, allocations: 266.4 kB / 429.6 MB, free: 7.055 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * 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.0002937/0.5651, allocations: 390.3 kB / 430 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.5652, allocations: 76.22 kB / 430 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003141/0.5655, allocations: 134.7 kB / 430.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.684e-06/0.5656, allocations: 3.844 kB / 430.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.954e-06/0.5656, allocations: 0 / 430.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.772e-06/0.5656, allocations: 0 / 430.2 MB, free: 6.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/0.568, allocations: 1.495 MB / 431.7 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.568, allocations: 0 / 431.7 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.395e-05/0.568, allocations: 7.734 kB / 431.7 MB, free: 5.723 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-06/0.568, allocations: 3.875 kB / 431.7 MB, free: 5.723 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.799e-05/0.5681, allocations: 43.88 kB / 431.7 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.603e-06/0.5682, allocations: 0 / 431.7 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.357e-06/0.5682, allocations: 0 / 431.7 MB, free: 5.715 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001639/0.5698, allocations: 1.025 MB / 432.7 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008293/0.5707, allocations: 436.5 kB / 433.2 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.5709, allocations: 22.88 kB / 433.2 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004016/0.5713, allocations: 30.52 kB / 433.2 MB, free: 4.934 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.5715, allocations: 73.5 kB / 433.3 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002745/0.5718, allocations: 262.1 kB / 433.6 MB, free: 4.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00118/0.573, allocations: 0.6848 MB / 434.2 MB, free: 4.602 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.3e-07/0.573, allocations: 0 / 434.2 MB, free: 4.602 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005575/0.5736, allocations: 92.59 kB / 434.3 MB, free: 4.602 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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * 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.0002041/0.5738, allocations: 151.7 kB / 434.5 MB, free: 4.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.5749, allocations: 0.8912 MB / 435.4 MB, free: 3.961 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5749, allocations: 0 / 435.4 MB, free: 3.961 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.5755, allocations: 0.7602 MB / 436.1 MB, free: 3.434 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009473/0.5765, allocations: 232.1 kB / 436.4 MB, free: 3.262 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.5786, allocations: 1.136 MB / 437.5 MB, free: 2.238 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007644/0.5793, allocations: 0.9511 MB / 438.4 MB, free: 17.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.5795, allocations: 63.25 kB / 438.5 MB, free: 17.22 MB / 330.7 MB Notification: Performance of SimCode: time 2.217e-06/0.5795, allocations: 4 kB / 438.5 MB, free: 17.21 MB / 330.7 MB Notification: Performance of Templates: time 0.01304/0.5926, allocations: 7.907 MB / 446.4 MB, free: 9.184 MB / 330.7 MB