Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.816/1.816, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003557, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08007/0.08045, allocations: 44.52 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3725/0.4531, allocations: 78.55 MB / 387 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.4533, allocations: 71.44 kB / 387.1 MB, free: 18.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1196/0.5729, allocations: 42.86 MB / 429.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.64e-06/0.5729, allocations: 0 / 429.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.573, allocations: 10 kB / 429.9 MB, free: 8.957 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.0009902/0.574, allocations: 1.056 MB / 431 MB, free: 7.992 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.574, allocations: 11.61 kB / 431 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.5742, allocations: 73.62 kB / 431.1 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.5746, allocations: 371.8 kB / 431.4 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.5747, allocations: 19.22 kB / 431.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.036e-05/0.5748, allocations: 15.09 kB / 431.5 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.5754, allocations: 314.5 kB / 431.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.5755, allocations: 0 / 431.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.5755, allocations: 7.844 kB / 431.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.96e-06/0.5756, allocations: 3.906 kB / 431.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.576, allocations: 158.8 kB / 432 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.5774, allocations: 0.757 MB / 432.7 MB, free: 7.031 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.5779, allocations: 218.2 kB / 432.9 MB, free: 6.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.578, allocations: 7.844 kB / 432.9 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006303/0.5786, allocations: 437 kB / 433.4 MB, free: 6.695 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.181e-06/0.5786, allocations: 0 / 433.4 MB, free: 6.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002219/0.5809, allocations: 1.334 MB / 434.7 MB, free: 5.883 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.528e-05/0.581, allocations: 287.2 kB / 435 MB, free: 5.559 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.5823, allocations: 0.8321 MB / 435.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.36e-05/0.5824, allocations: 41.19 kB / 435.8 MB, free: 4.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.923e-05/0.5825, allocations: 182.2 kB / 436 MB, free: 4.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.977e-05/0.5826, allocations: 62.33 kB / 436.1 MB, free: 4.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/0.5827, allocations: 7.375 kB / 436.1 MB, free: 4.746 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.5828, allocations: 330.3 kB / 436.4 MB, free: 4.418 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.5831, allocations: 138.2 kB / 436.5 MB, free: 4.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.5835, allocations: 186.1 kB / 436.7 MB, free: 4.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000416/0.584, allocations: 356.2 kB / 437.1 MB, free: 3.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.388e-06/0.584, allocations: 0 / 437.1 MB, free: 3.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001426/0.5854, allocations: 0.82 MB / 437.9 MB, free: 3.062 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.5855, allocations: 244 kB / 438.1 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.894e-06/0.5856, allocations: 0 / 438.1 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.5856, allocations: 0 / 438.1 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.407e-05/0.5856, allocations: 11.98 kB / 438.1 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.819e-06/0.5857, allocations: 0 / 438.1 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.586, allocations: 33.8 kB / 438.2 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/0.5863, allocations: 265.7 kB / 438.4 MB, free: 2.484 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,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,$PRE.bUF3S1.inertialDelaySensitive.x,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.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked 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.0007561/0.5871, allocations: 0.6125 MB / 439.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.5872, allocations: 82.62 kB / 439.1 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.5875, allocations: 125.3 kB / 439.3 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.5875, allocations: 4 kB / 439.3 MB, free: 1.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5875, allocations: 3.984 kB / 439.3 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.912e-06/0.5875, allocations: 3.984 kB / 439.3 MB, free: 1.672 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.5898, allocations: 1.497 MB / 440.8 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.521e-06/0.5898, allocations: 0 / 440.8 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.933e-05/0.5899, allocations: 8 kB / 440.8 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.101e-06/0.5899, allocations: 0 / 440.8 MB, free: 304 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.603e-05/0.59, allocations: 47.66 kB / 440.8 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.59, allocations: 0 / 440.8 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.757e-06/0.59, allocations: 0 / 440.8 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.592, allocations: 1.036 MB / 441.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000896/0.5929, allocations: 427.7 kB / 442.3 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.5931, allocations: 29.8 kB / 442.3 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003651/0.5935, allocations: 26.17 kB / 442.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002363/0.5937, allocations: 74.78 kB / 442.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003542/0.5941, allocations: 269.3 kB / 442.7 MB, free: 14.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001312/0.5954, allocations: 0.693 MB / 443.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.78e-07/0.5954, allocations: 0 / 443.4 MB, free: 14.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005994/0.596, allocations: 86.69 kB / 443.4 MB, free: 13.93 MB / 330.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]) * Number of clocked states: 0 () * 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.0002449/0.5963, allocations: 142.8 kB / 443.6 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.5978, allocations: 0.9199 MB / 444.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5978, allocations: 0 / 444.5 MB, free: 12.95 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009895/0.5988, allocations: 0.7637 MB / 445.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.5999, allocations: 232.3 kB / 445.5 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.603, allocations: 1.529 MB / 447 MB, free: 10.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000932/0.604, allocations: 0.9558 MB / 448 MB, free: 9.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.6042, allocations: 55.33 kB / 448 MB, free: 9.375 MB / 330.7 MB Notification: Performance of SimCode: time 1.681e-06/0.6042, allocations: 0 / 448 MB, free: 9.375 MB / 330.7 MB Notification: Performance of Templates: time 0.01387/0.6181, allocations: 7.924 MB / 456 MB, free: 1.305 MB / 330.7 MB