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.NXFER.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.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 171.2 MB / 187.3 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003697, allocations: 12 kB / 233.8 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.08984, allocations: 38.77 MB / 272.5 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3642/0.4541, allocations: 71.78 MB / 344.3 MB, free: 2.082 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.4544, allocations: 76.91 kB / 344.4 MB, free: 2.039 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05751/0.512, allocations: 16.41 MB / 360.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.512, allocations: 0 / 360.8 MB, free: 4.379 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.512, allocations: 4 kB / 360.8 MB, free: 4.375 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.0009595/0.513, allocations: 0.6633 MB / 361.5 MB, free: 3.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.5131, allocations: 8.031 kB / 361.5 MB, free: 3.652 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.5132, allocations: 39.53 kB / 361.5 MB, free: 3.613 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.5136, allocations: 267.5 kB / 361.8 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.863e-05/0.5137, allocations: 8 kB / 361.8 MB, free: 3.312 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.5137, allocations: 8 kB / 361.8 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.5141, allocations: 126 kB / 361.9 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.5142, allocations: 0 / 361.9 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.5142, allocations: 7.375 kB / 361.9 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.5142, allocations: 0 / 361.9 MB, free: 3.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.5145, allocations: 57.89 kB / 362 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.5155, allocations: 461 kB / 362.4 MB, free: 2.707 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.5158, allocations: 94.48 kB / 362.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.5159, allocations: 0 / 362.5 MB, free: 2.637 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004535/0.5163, allocations: 218 kB / 362.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.054e-06/0.5163, allocations: 0 / 362.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001357/0.5177, allocations: 0.6224 MB / 363.4 MB, free: 1.805 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.5178, allocations: 160.8 kB / 363.5 MB, free: 1.613 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.5189, allocations: 0.5196 MB / 364 MB, free: 1.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.519, allocations: 29.7 kB / 364.1 MB, free: 1.137 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.982e-05/0.5191, allocations: 166.8 kB / 364.2 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.966e-05/0.5192, allocations: 23.39 kB / 364.3 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-05/0.5192, allocations: 7.625 kB / 364.3 MB, free: 0.957 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5193, allocations: 314.8 kB / 364.6 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.5196, allocations: 66.33 kB / 364.6 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.5198, allocations: 68 kB / 364.7 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002666/0.5201, allocations: 172.1 kB / 364.9 MB, free: 380 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.5201, allocations: 4 kB / 364.9 MB, free: 376 kB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008485/0.521, allocations: 378.7 kB / 365.2 MB, free: 20 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001402/0.5211, allocations: 127.4 kB / 365.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5211, allocations: 0 / 365.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.5212, allocations: 0 / 365.4 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.306e-05/0.5212, allocations: 11.97 kB / 365.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.5212, allocations: 80 / 365.4 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.5215, allocations: 20.03 kB / 365.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.5216, allocations: 67.81 kB / 365.5 MB, free: 15.78 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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.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.0005346/0.5221, allocations: 362.3 kB / 365.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.082e-05/0.5222, allocations: 35.62 kB / 365.9 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.5224, allocations: 66.52 kB / 365.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.5224, allocations: 4 kB / 365.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5224, allocations: 4 kB / 365.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.5224, allocations: 0 / 365.9 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.5239, allocations: 0.8185 MB / 366.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5239, allocations: 0 / 366.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.142e-05/0.5239, allocations: 0 / 366.7 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.524, allocations: 7.938 kB / 366.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-05/0.524, allocations: 9.562 kB / 366.8 MB, free: 14.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.524, allocations: 3.984 kB / 366.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.524, allocations: 0 / 366.8 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.5251, allocations: 0.5359 MB / 367.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005398/0.5257, allocations: 252.1 kB / 367.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.493e-05/0.5258, allocations: 11.44 kB / 367.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.526, allocations: 8 kB / 367.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.5262, allocations: 27.47 kB / 367.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.5263, allocations: 59.92 kB / 367.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007858/0.5271, allocations: 387.5 kB / 368 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5271, allocations: 4 kB / 368 MB, free: 13.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004308/0.5276, allocations: 43.95 kB / 368.1 MB, free: 13.32 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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.0001981/0.5278, allocations: 122.7 kB / 368.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000775/0.5286, allocations: 433.2 kB / 368.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5286, allocations: 0 / 368.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004747/0.5291, allocations: 378.1 kB / 369 MB, free: 12.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007638/0.5298, allocations: 103.9 kB / 369.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.5317, allocations: 0.7846 MB / 369.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.5323, allocations: 0.8056 MB / 370.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.002e-05/0.5323, allocations: 11.44 kB / 370.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5323, allocations: 0 / 370.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of Templates: time 0.006776/0.5391, allocations: 2.638 MB / 373.3 MB, free: 8.129 MB / 298.7 MB