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.723/1.723, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.000366, allocations: 16 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07942/0.07981, allocations: 44.5 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.409, allocations: 77.12 MB / 385.6 MB, free: 18.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002001/0.4093, allocations: 69.23 kB / 385.6 MB, free: 18.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04386/0.4532, allocations: 16.4 MB / 402 MB, free: 17.51 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.827e-06/0.4532, allocations: 0 / 402 MB, free: 17.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.4532, allocations: 7.844 kB / 402 MB, free: 17.51 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.0005526/0.4538, allocations: 0.664 MB / 402.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.4538, allocations: 11.75 kB / 402.7 MB, free: 16.9 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.212e-05/0.4539, allocations: 35.2 kB / 402.7 MB, free: 16.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.4542, allocations: 260.8 kB / 403 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.4542, allocations: 8.594 kB / 403 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.4543, allocations: 6.75 kB / 403 MB, free: 16.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.4546, allocations: 125.3 kB / 403.1 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.4546, allocations: 0 / 403.1 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.104e-05/0.4547, allocations: 10.81 kB / 403.1 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.235e-06/0.4547, allocations: 0 / 403.1 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.4549, allocations: 58.89 kB / 403.2 MB, free: 16.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006241/0.4555, allocations: 471 kB / 403.7 MB, free: 16.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.4557, allocations: 93.44 kB / 403.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.4558, allocations: 4 kB / 403.8 MB, free: 16.28 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.4561, allocations: 210.7 kB / 404 MB, free: 16.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.581e-06/0.4561, allocations: 0 / 404 MB, free: 16.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009336/0.457, allocations: 0.6174 MB / 404.6 MB, free: 15.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.4571, allocations: 164.7 kB / 404.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/0.4578, allocations: 462.7 kB / 405.2 MB, free: 15.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.165e-05/0.4578, allocations: 29.64 kB / 405.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.863e-05/0.4579, allocations: 170.2 kB / 405.4 MB, free: 15.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.458, allocations: 28.83 kB / 405.4 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.458, allocations: 3.969 kB / 405.4 MB, free: 15.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.206e-05/0.4581, allocations: 316.4 kB / 405.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001717/0.4582, allocations: 56.86 kB / 405.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.4584, allocations: 75.59 kB / 405.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.4586, allocations: 161.4 kB / 406 MB, free: 14.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.4587, allocations: 7.812 kB / 406 MB, free: 14.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006584/0.4593, allocations: 365.8 kB / 406.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.491e-05/0.4594, allocations: 126.1 kB / 406.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.085e-06/0.4594, allocations: 0 / 406.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4594, allocations: 0 / 406.5 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.946e-05/0.4595, allocations: 7.828 kB / 406.5 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.204e-06/0.4595, allocations: 0 / 406.5 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001607/0.4597, allocations: 10.25 kB / 406.5 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-05/0.4598, allocations: 64.97 kB / 406.6 MB, free: 14.46 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.0003307/0.4601, allocations: 367.7 kB / 406.9 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.628e-05/0.4602, allocations: 43.03 kB / 407 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.4603, allocations: 63.83 kB / 407.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.038e-06/0.4603, allocations: 3.969 kB / 407.1 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.551e-06/0.4603, allocations: 3.953 kB / 407.1 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-06/0.4603, allocations: 0 / 407.1 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.4614, allocations: 0.8023 MB / 407.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.953e-06/0.4614, allocations: 3.938 kB / 407.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.683e-06/0.4614, allocations: 4 kB / 407.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.108e-06/0.4615, allocations: 7.812 kB / 407.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.4615, allocations: 14.98 kB / 407.9 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.248e-06/0.4615, allocations: 7.891 kB / 407.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4615, allocations: 3.938 kB / 407.9 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007794/0.4623, allocations: 0.5062 MB / 408.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003614/0.4627, allocations: 249 kB / 408.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.442e-05/0.4628, allocations: 11.41 kB / 408.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.463, allocations: 15.86 kB / 408.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.4631, allocations: 30.73 kB / 408.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.636e-05/0.4632, allocations: 54.41 kB / 408.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004916/0.4637, allocations: 389.8 kB / 409.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.4637, allocations: 0 / 409.1 MB, free: 12.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003694/0.4641, allocations: 46.22 kB / 409.2 MB, free: 12.95 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.0001227/0.4643, allocations: 120.3 kB / 409.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005222/0.4648, allocations: 442.7 kB / 409.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.667e-06/0.4648, allocations: 0 / 409.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.4651, allocations: 374.9 kB / 410.1 MB, free: 12.31 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.4656, allocations: 97.06 kB / 410.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.4669, allocations: 0.7802 MB / 411 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.4672, allocations: 0.8136 MB / 411.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.4672, allocations: 11.34 kB / 411.8 MB, free: 11.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.827e-06/0.4673, allocations: 4 kB / 411.8 MB, free: 11.01 MB / 314.7 MB Notification: Performance of Templates: time 0.004426/0.4717, allocations: 2.616 MB / 414.4 MB, free: 9.664 MB / 314.7 MB