Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.NRXFER.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadModel(Modelica): time 1.856/1.856, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.000484, allocations: 8 kB / 233.8 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08931/0.08983, allocations: 38.77 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3606/0.4505, allocations: 71.79 MB / 344.3 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002847/0.4508, allocations: 72.39 kB / 344.4 MB, free: 2.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05648/0.5073, allocations: 16.39 MB / 360.8 MB, free: 4.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5074, allocations: 3.938 kB / 360.8 MB, free: 4.426 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.5074, allocations: 4 kB / 360.8 MB, free: 4.422 MB / 282.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.0008799/0.5083, allocations: 0.6729 MB / 361.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.5083, allocations: 8.031 kB / 361.5 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.5085, allocations: 39.53 kB / 361.5 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.5088, allocations: 260.3 kB / 361.8 MB, free: 3.363 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.5089, allocations: 4 kB / 361.8 MB, free: 3.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.758e-05/0.5089, allocations: 11.69 kB / 361.8 MB, free: 3.352 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004022/0.5094, allocations: 123.4 kB / 361.9 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.5094, allocations: 0 / 361.9 MB, free: 3.242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.478e-05/0.5094, allocations: 7.562 kB / 361.9 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.5094, allocations: 4 kB / 361.9 MB, free: 3.234 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002263/0.5097, allocations: 61.97 kB / 362 MB, free: 3.188 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008751/0.5106, allocations: 459 kB / 362.4 MB, free: 2.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.5109, allocations: 94.05 kB / 362.5 MB, free: 2.676 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.5109, allocations: 4 kB / 362.5 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004335/0.5113, allocations: 207.7 kB / 362.7 MB, free: 2.469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.944e-06/0.5114, allocations: 0 / 362.7 MB, free: 2.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001307/0.5127, allocations: 0.6281 MB / 363.4 MB, free: 1.848 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.5128, allocations: 170.1 kB / 363.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009817/0.5138, allocations: 0.5207 MB / 364.1 MB, free: 1.203 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.5138, allocations: 29.7 kB / 364.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.577e-05/0.5139, allocations: 163.3 kB / 364.2 MB, free: 1.016 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.514, allocations: 31.56 kB / 364.3 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.675e-05/0.5141, allocations: 7.688 kB / 364.3 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.5142, allocations: 310.8 kB / 364.6 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002113/0.5144, allocations: 59.53 kB / 364.6 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.5146, allocations: 76.36 kB / 364.7 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.5149, allocations: 170 kB / 364.9 MB, free: 412 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.5149, allocations: 4 kB / 364.9 MB, free: 408 kB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008403/0.5158, allocations: 377.5 kB / 365.3 MB, free: 56 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/0.516, allocations: 122.7 kB / 365.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.516, allocations: 4.125 kB / 365.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.516, allocations: 4 kB / 365.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-05/0.5161, allocations: 3.938 kB / 365.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.5161, allocations: 0 / 365.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.5163, allocations: 20.03 kB / 365.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.5164, allocations: 59.89 kB / 365.5 MB, free: 15.82 MB / 298.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.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0005341/0.517, allocations: 365.3 kB / 365.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.5171, allocations: 39.61 kB / 365.9 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001604/0.5172, allocations: 63.08 kB / 365.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.5173, allocations: 0 / 365.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.5173, allocations: 3.938 kB / 365.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.5173, allocations: 3.984 kB / 365.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.5187, allocations: 0.8162 MB / 366.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5188, allocations: 0 / 366.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-06/0.5188, allocations: 8 kB / 366.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.5188, allocations: 0 / 366.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.5188, allocations: 11 kB / 366.8 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5189, allocations: 4 kB / 366.8 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5189, allocations: 0 / 366.8 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.5199, allocations: 0.5373 MB / 367.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.5204, allocations: 244.2 kB / 367.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.4e-05/0.5205, allocations: 11.06 kB / 367.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.5208, allocations: 15.98 kB / 367.6 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.5209, allocations: 31.03 kB / 367.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.5211, allocations: 62.3 kB / 367.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007307/0.5218, allocations: 387.2 kB / 368 MB, free: 13.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5218, allocations: 0 / 368 MB, free: 13.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004283/0.5222, allocations: 43.95 kB / 368.1 MB, free: 13.36 MB / 298.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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.0001858/0.5224, allocations: 117.4 kB / 368.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007585/0.5232, allocations: 444.2 kB / 368.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5232, allocations: 0 / 368.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004617/0.5237, allocations: 377.4 kB / 369 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007586/0.5245, allocations: 94.83 kB / 369.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.5263, allocations: 0.7813 MB / 369.9 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005863/0.5269, allocations: 0.8052 MB / 370.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.901e-05/0.5269, allocations: 11.44 kB / 370.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5269, allocations: 4 kB / 370.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of Templates: time 0.006784/0.5337, allocations: 2.627 MB / 373.3 MB, free: 8.18 MB / 298.7 MB