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.NXFER.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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadModel(Modelica): time 1.773/1.773, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003596, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07615/0.07654, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3379/0.4145, allocations: 77.11 MB / 385.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.4148, allocations: 72.31 kB / 385.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04816/0.463, allocations: 16.4 MB / 402 MB, free: 17.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.624e-06/0.463, allocations: 0 / 402 MB, free: 17.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.463, allocations: 3.719 kB / 402 MB, free: 17.33 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000586/0.4636, allocations: 0.668 MB / 402.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.4637, allocations: 14.66 kB / 402.7 MB, free: 16.71 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.275e-05/0.4638, allocations: 42.77 kB / 402.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.464, allocations: 253.6 kB / 403 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.4641, allocations: 7.5 kB / 403 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.4641, allocations: 11.73 kB / 403 MB, free: 16.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.4644, allocations: 124.4 kB / 403.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.444e-06/0.4645, allocations: 0 / 403.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.8e-05/0.4645, allocations: 3.875 kB / 403.1 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.202e-06/0.4645, allocations: 3.875 kB / 403.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.4647, allocations: 54.56 kB / 403.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006754/0.4654, allocations: 472 kB / 403.7 MB, free: 16.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.4656, allocations: 102 kB / 403.8 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.43e-06/0.4657, allocations: 0 / 403.8 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.466, allocations: 211.5 kB / 404 MB, free: 15.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.579e-06/0.466, allocations: 3.969 kB / 404 MB, free: 15.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009943/0.467, allocations: 0.6144 MB / 404.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.4671, allocations: 168.2 kB / 404.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006748/0.4678, allocations: 464.3 kB / 405.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.4678, allocations: 29.55 kB / 405.2 MB, free: 15.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.873e-05/0.4679, allocations: 162.6 kB / 405.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.468, allocations: 26.97 kB / 405.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.468, allocations: 3.562 kB / 405.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.4681, allocations: 322 kB / 405.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001619/0.4682, allocations: 58.12 kB / 405.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001615/0.4684, allocations: 71.98 kB / 405.9 MB, free: 14.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.4686, allocations: 162.2 kB / 406 MB, free: 14.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.841e-06/0.4686, allocations: 3.094 kB / 406 MB, free: 14.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006092/0.4692, allocations: 369.1 kB / 406.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.512e-05/0.4693, allocations: 124.4 kB / 406.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.457e-06/0.4693, allocations: 4.031 kB / 406.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.4694, allocations: 0 / 406.5 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.926e-05/0.4694, allocations: 7.547 kB / 406.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.14e-06/0.4694, allocations: 80 / 406.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.4696, allocations: 17.92 kB / 406.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-05/0.4697, allocations: 57.86 kB / 406.6 MB, free: 14.27 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: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0003376/0.47, allocations: 365 kB / 407 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.4701, allocations: 42.97 kB / 407 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/0.4703, allocations: 68.22 kB / 407.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.61e-06/0.4703, allocations: 0 / 407.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.064e-06/0.4703, allocations: 3.953 kB / 407.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.445e-06/0.4703, allocations: 0 / 407.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.4714, allocations: 0.8008 MB / 407.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.071e-06/0.4715, allocations: 112 / 407.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.922e-06/0.4715, allocations: 3.938 kB / 407.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.854e-06/0.4715, allocations: 0 / 407.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.4715, allocations: 19.2 kB / 407.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.382e-06/0.4716, allocations: 3.953 kB / 407.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.975e-06/0.4716, allocations: 4 kB / 407.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007669/0.4724, allocations: 0.5129 MB / 408.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003887/0.4728, allocations: 246.7 kB / 408.6 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.402e-05/0.4728, allocations: 11.12 kB / 408.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.4731, allocations: 11.64 kB / 408.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4732, allocations: 30.48 kB / 408.7 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.109e-05/0.4733, allocations: 65.12 kB / 408.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000568/0.4739, allocations: 392 kB / 409.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.4739, allocations: 0 / 409.1 MB, free: 12.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003915/0.4743, allocations: 42.66 kB / 409.2 MB, free: 12.77 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0001349/0.4744, allocations: 121 kB / 409.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005295/0.475, allocations: 435.9 kB / 409.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.561e-06/0.475, allocations: 0 / 409.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003264/0.4753, allocations: 386.1 kB / 410.1 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.4759, allocations: 105.2 kB / 410.2 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.4771, allocations: 0.7738 MB / 411 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.4775, allocations: 0.8105 MB / 411.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.987e-05/0.4775, allocations: 11.31 kB / 411.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of SimCode: time 2.302e-06/0.4776, allocations: 0 / 411.8 MB, free: 10.84 MB / 314.7 MB Notification: Performance of Templates: time 0.004459/0.482, allocations: 2.618 MB / 414.4 MB, free: 9.484 MB / 314.7 MB