Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.645/1.645, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.953e-05/2.96e-05, allocations: 4 kB / 228.8 MB, free: 15.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2063/0.2063, allocations: 38.77 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.3107, allocations: 71.72 MB / 339.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.3109, allocations: 63.97 kB / 339.4 MB, free: 1.551 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05507/0.366, allocations: 16.5 MB / 355.9 MB, free: 1.062 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.735e-06/0.3661, allocations: 0 / 355.9 MB, free: 1.062 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.3661, allocations: 4 kB / 355.9 MB, free: 1.059 MB / 298.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.000703/0.3668, allocations: 0.6175 MB / 356.5 MB, free: 380 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3669, allocations: 16.02 kB / 356.5 MB, free: 364 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.708e-05/0.367, allocations: 35.53 kB / 356.5 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003569/0.3673, allocations: 253.5 kB / 356.8 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.362e-05/0.3674, allocations: 4 kB / 356.8 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.3674, allocations: 8 kB / 356.8 MB, free: 20 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1758/0.5432, allocations: 118.8 kB / 356.9 MB, free: 79.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.5433, allocations: 1.531 kB / 356.9 MB, free: 79.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.5433, allocations: 5.594 kB / 356.9 MB, free: 79.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.567e-06/0.5433, allocations: 1.156 kB / 356.9 MB, free: 79.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001953/0.5435, allocations: 62.41 kB / 357 MB, free: 79.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008796/0.5444, allocations: 455.4 kB / 357.4 MB, free: 79.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.5447, allocations: 101.3 kB / 357.5 MB, free: 79.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.5449, allocations: 80.95 kB / 357.6 MB, free: 79.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.5449, allocations: 0.5 kB / 357.6 MB, free: 79.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003555/0.5453, allocations: 206.2 kB / 357.8 MB, free: 79.23 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 3.569e-06/0.5453, allocations: 0.5312 kB / 357.8 MB, free: 79.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008583/0.5462, allocations: 389.8 kB / 358.2 MB, free: 79.06 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.5463, allocations: 179.1 kB / 358.4 MB, free: 78.87 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008023/0.5471, allocations: 464.7 kB / 358.8 MB, free: 78.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.5471, allocations: 30.97 kB / 358.8 MB, free: 78.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.056e-05/0.5472, allocations: 160.6 kB / 359 MB, free: 78.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.5473, allocations: 30.06 kB / 359 MB, free: 78.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.5473, allocations: 2.188 kB / 359 MB, free: 78.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.594e-05/0.5474, allocations: 321.5 kB / 359.3 MB, free: 78.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.5475, allocations: 59.23 kB / 359.4 MB, free: 78.18 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001429/0.5477, allocations: 60.23 kB / 359.5 MB, free: 78.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.5479, allocations: 163.4 kB / 359.6 MB, free: 78.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.65e-06/0.5479, allocations: 0 / 359.6 MB, free: 78.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000636/0.5485, allocations: 368.7 kB / 360 MB, free: 77.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.499e-05/0.5486, allocations: 123.2 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.298e-06/0.5487, allocations: 0.6094 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.5487, allocations: 1.281 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.206e-05/0.5487, allocations: 1.422 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.099e-06/0.5487, allocations: 3.625 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/0.5489, allocations: 14.86 kB / 360.1 MB, free: 77.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-05/0.5491, allocations: 64.2 kB / 360.2 MB, free: 77.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,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 () * 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.0001587/0.5492, allocations: 243.5 kB / 360.4 MB, free: 77.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.465e-05/0.5493, allocations: 39.06 kB / 360.5 MB, free: 77.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001603/0.5495, allocations: 65.31 kB / 360.5 MB, free: 77.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.287e-06/0.5495, allocations: 3.062 kB / 360.5 MB, free: 77.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.668e-06/0.5495, allocations: 3.188 kB / 360.5 MB, free: 77.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.653e-06/0.5495, allocations: 0 / 360.5 MB, free: 77.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.5507, allocations: 0.7993 MB / 361.3 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.19e-06/0.5507, allocations: 0 / 361.3 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.538e-06/0.5508, allocations: 0.7031 kB / 361.3 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.5508, allocations: 4.812 kB / 361.3 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-05/0.5508, allocations: 19.09 kB / 361.4 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.5508, allocations: 3.5 kB / 361.4 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.117e-06/0.5508, allocations: 3.844 kB / 361.4 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007139/0.5516, allocations: 0.5111 MB / 361.9 MB, free: 76.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.552, allocations: 249.9 kB / 362.1 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.5521, allocations: 11.03 kB / 362.1 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.5523, allocations: 18.67 kB / 362.1 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.5525, allocations: 25.83 kB / 362.2 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.152e-05/0.5525, allocations: 63.22 kB / 362.2 MB, free: 76.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005434/0.5531, allocations: 387.1 kB / 362.6 MB, free: 76.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.5531, allocations: 0 / 362.6 MB, free: 76.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004029/0.5535, allocations: 45.64 kB / 362.7 MB, free: 76.46 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) * 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.0001401/0.5537, allocations: 115.8 kB / 362.8 MB, free: 76.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005081/0.5542, allocations: 436.6 kB / 363.2 MB, free: 76.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.933e-06/0.5542, allocations: 0 / 363.2 MB, free: 76.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.5546, allocations: 378.3 kB / 363.6 MB, free: 75.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.5551, allocations: 105 kB / 363.7 MB, free: 75.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.5562, allocations: 0.566 MB / 364.2 MB, free: 75.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.5566, allocations: 0.8077 MB / 365 MB, free: 74.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.045e-05/0.5566, allocations: 13.03 kB / 365.1 MB, free: 74.87 MB / 298.7 MB Notification: Performance of SimCode: time 1.99e-06/0.5567, allocations: 3.75 kB / 365.1 MB, free: 74.87 MB / 298.7 MB Notification: Performance of Templates: time 0.004383/0.5611, allocations: 2.623 MB / 367.7 MB, free: 74.6 MB / 298.7 MB