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.NRXFER.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.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadModel(Modelica): time 1.823/1.823, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003635, allocations: 11.98 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07982/0.08021, allocations: 44.5 MB / 308.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.001858/0.08211, allocations: 1.176 MB / 309.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002043/0.08418, allocations: 0.8485 MB / 310.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.731e-05/0.08425, allocations: 0 / 310.4 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.536e-05/0.08434, allocations: 11.92 kB / 310.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.245e-05/0.08443, allocations: 15.97 kB / 310.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.08467, allocations: 31.95 kB / 310.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.08481, allocations: 63.88 kB / 310.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.222e-05/0.08492, allocations: 28.09 kB / 310.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005985/0.08553, allocations: 427.2 kB / 310.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001419/0.08569, allocations: 75.81 kB / 311 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.08574, allocations: 4 kB / 311 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.08579, allocations: 4 kB / 311 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.0859, allocations: 63.83 kB / 311.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.103e-05/0.08601, allocations: 69.52 kB / 311.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.08638, allocations: 291.3 kB / 311.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.213e-06/0.0864, allocations: 4 kB / 311.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.891e-06/0.08641, allocations: 0 / 311.4 MB, free: 13.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.08643, allocations: 0 / 311.4 MB, free: 13.92 MB / 266.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.0007981/0.08724, allocations: 0.6607 MB / 312.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.08729, allocations: 16.02 kB / 312.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.338e-05/0.08739, allocations: 39.58 kB / 312.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.08774, allocations: 245.4 kB / 312.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.08779, allocations: 11.98 kB / 312.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.899e-05/0.08784, allocations: 8 kB / 312.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.08822, allocations: 129.5 kB / 312.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.625e-06/0.08825, allocations: 0 / 312.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.08829, allocations: 7.984 kB / 312.6 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.437e-06/0.08831, allocations: 4 kB / 312.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.08852, allocations: 55.97 kB / 312.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008198/0.08935, allocations: 464.5 kB / 313.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.08963, allocations: 98.53 kB / 313.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.08966, allocations: 112 / 313.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004304/0.0901, allocations: 210.7 kB / 313.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 2.462e-06/0.09012, allocations: 0 / 313.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001202/0.09133, allocations: 0.6349 MB / 314 MB, free: 11.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.09148, allocations: 170.2 kB / 314.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000882/0.09238, allocations: 0.5129 MB / 314.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.09243, allocations: 33.7 kB / 314.7 MB, free: 10.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.09255, allocations: 155.6 kB / 314.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.206e-05/0.09262, allocations: 23.72 kB / 314.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.09265, allocations: 8 kB / 314.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.09283, allocations: 318.8 kB / 315.2 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.09304, allocations: 63.91 kB / 315.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000193/0.09325, allocations: 69.69 kB / 315.3 MB, free: 9.684 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.09352, allocations: 171 kB / 315.5 MB, free: 9.492 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.774e-06/0.09353, allocations: 0 / 315.5 MB, free: 9.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007808/0.09432, allocations: 384.3 kB / 315.9 MB, free: 9.086 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.09446, allocations: 126.8 kB / 316 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.21e-06/0.09448, allocations: 8.016 kB / 316 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.09451, allocations: 3.938 kB / 316 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.444e-05/0.09454, allocations: 7.953 kB / 316 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.129e-06/0.09456, allocations: 0 / 316 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.09475, allocations: 11.94 kB / 316 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.65e-05/0.09487, allocations: 59.92 kB / 316.1 MB, free: 8.848 MB / 266.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.0004739/0.09536, allocations: 362.9 kB / 316.4 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.195e-05/0.09544, allocations: 39.53 kB / 316.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.0956, allocations: 71.14 kB / 316.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.09562, allocations: 0 / 316.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.061e-06/0.09564, allocations: 7.953 kB / 316.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.599e-06/0.09565, allocations: 0 / 316.6 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.09705, allocations: 0.8212 MB / 317.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.425e-06/0.09708, allocations: 0 / 317.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-06/0.0971, allocations: 0 / 317.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.966e-06/0.09711, allocations: 0 / 317.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.09716, allocations: 15.98 kB / 317.4 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.09718, allocations: 3.953 kB / 317.4 MB, free: 7.414 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.516e-06/0.09719, allocations: 4 kB / 317.4 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009532/0.09815, allocations: 0.5291 MB / 317.9 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004522/0.09862, allocations: 248.4 kB / 318.2 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.09872, allocations: 8 kB / 318.2 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.09896, allocations: 19.92 kB / 318.2 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.09911, allocations: 31.92 kB / 318.2 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.745e-05/0.09921, allocations: 59.94 kB / 318.3 MB, free: 6.461 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006767/0.0999, allocations: 390.8 kB / 318.7 MB, free: 6.078 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.67e-07/0.09992, allocations: 0 / 318.7 MB, free: 6.078 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004149/0.1003, allocations: 44 kB / 318.7 MB, free: 6.035 MB / 266.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.0001836/0.1005, allocations: 113.9 kB / 318.8 MB, free: 5.914 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007388/0.1013, allocations: 437.7 kB / 319.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.932e-06/0.1013, allocations: 0 / 319.3 MB, free: 5.438 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.1018, allocations: 381.5 kB / 319.6 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.1024, allocations: 100.5 kB / 319.7 MB, free: 4.922 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.104, allocations: 0.7717 MB / 320.5 MB, free: 4.121 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006334/0.1046, allocations: 0.8064 MB / 321.3 MB, free: 3.285 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.603e-05/0.1047, allocations: 15.42 kB / 321.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of SimCode: time 1.422e-06/0.1047, allocations: 0 / 321.3 MB, free: 3.273 MB / 266.7 MB Notification: Performance of Templates: time 0.005665/0.1104, allocations: 2.625 MB / 323.9 MB, free: 0.5898 MB / 266.7 MB