Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.135/2.135, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005253/0.0005256, allocations: 12 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1174, allocations: 44.51 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5365, allocations: 77.11 MB / 386.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.5368, allocations: 72.14 kB / 386.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05102/0.5879, allocations: 16.4 MB / 402.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5879, allocations: 0 / 402.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.5879, allocations: 3.938 kB / 402.6 MB, free: 13.34 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.000729/0.5887, allocations: 0.6671 MB / 403.2 MB, free: 12.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.5887, allocations: 15.75 kB / 403.2 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.691e-05/0.5888, allocations: 35.08 kB / 403.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.5892, allocations: 258.2 kB / 403.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.5892, allocations: 7.281 kB / 403.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.5893, allocations: 7.656 kB / 403.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.5897, allocations: 129.6 kB / 403.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.5897, allocations: 0 / 403.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.5897, allocations: 3.906 kB / 403.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5897, allocations: 0 / 403.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.59, allocations: 64.11 kB / 403.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008437/0.5908, allocations: 459 kB / 404.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.5911, allocations: 98.64 kB / 404.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.5911, allocations: 0 / 404.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.5915, allocations: 216.8 kB / 404.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.793e-06/0.5916, allocations: 0 / 404.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001176/0.5927, allocations: 0.6312 MB / 405.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.5928, allocations: 165.6 kB / 405.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009582/0.5938, allocations: 0.5108 MB / 405.8 MB, free: 10.96 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.5939, allocations: 29.64 kB / 405.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.5939, allocations: 162.5 kB / 406 MB, free: 10.78 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.329e-05/0.594, allocations: 27.39 kB / 406 MB, free: 10.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.594, allocations: 11.88 kB / 406 MB, free: 10.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.376e-05/0.5941, allocations: 318.1 kB / 406.3 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002042/0.5943, allocations: 55.91 kB / 406.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.5946, allocations: 75.72 kB / 406.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.5948, allocations: 167.4 kB / 406.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.5948, allocations: 0 / 406.6 MB, free: 10.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007456/0.5956, allocations: 385.9 kB / 407 MB, free: 10.08 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.098e-05/0.5957, allocations: 120.8 kB / 407.1 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.5957, allocations: 7.891 kB / 407.1 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.5957, allocations: 3.953 kB / 407.1 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.247e-05/0.5957, allocations: 0 / 407.1 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.5958, allocations: 3.984 kB / 407.1 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.596, allocations: 15.7 kB / 407.1 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.084e-05/0.5961, allocations: 57.56 kB / 407.2 MB, free: 9.93 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.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.0004653/0.5966, allocations: 365 kB / 407.6 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.5967, allocations: 38.75 kB / 407.6 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.5968, allocations: 69.42 kB / 407.7 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.5968, allocations: 3.906 kB / 407.7 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5968, allocations: 3.953 kB / 407.7 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.5968, allocations: 0 / 407.7 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001267/0.5981, allocations: 0.812 MB / 408.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5982, allocations: 0 / 408.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.105e-05/0.5982, allocations: 112 / 408.5 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.5982, allocations: 3.938 kB / 408.5 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.761e-05/0.5982, allocations: 15.52 kB / 408.5 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.5982, allocations: 7.984 kB / 408.5 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5983, allocations: 3.781 kB / 408.5 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.5992, allocations: 0.5319 MB / 409 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000508/0.5997, allocations: 245.8 kB / 409.3 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.491e-05/0.5998, allocations: 17.73 kB / 409.3 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.6, allocations: 11.7 kB / 409.3 MB, free: 8.527 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.6002, allocations: 26.66 kB / 409.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.936e-05/0.6003, allocations: 66.3 kB / 409.4 MB, free: 8.508 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006625/0.601, allocations: 383.7 kB / 409.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.601, allocations: 0 / 409.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004146/0.6014, allocations: 45.69 kB / 409.8 MB, free: 8.32 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,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.0001586/0.6016, allocations: 116.4 kB / 409.9 MB, free: 8.227 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006731/0.6023, allocations: 442.9 kB / 410.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.6023, allocations: 0 / 410.4 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.6027, allocations: 380.4 kB / 410.7 MB, free: 7.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.6034, allocations: 101 kB / 410.8 MB, free: 7.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.6051, allocations: 0.7839 MB / 411.6 MB, free: 7.164 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.6056, allocations: 0.8029 MB / 412.4 MB, free: 6.402 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.6056, allocations: 11.34 kB / 412.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6056, allocations: 0 / 412.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of Templates: time 0.006225/0.6119, allocations: 2.632 MB / 415.1 MB, free: 5.023 MB / 314.7 MB