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.NXFER.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.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 1.738/1.738, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.785e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2102, allocations: 38.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.107/0.3172, allocations: 71.71 MB / 339.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.3175, allocations: 67.97 kB / 339.4 MB, free: 1.543 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05374/0.3712, allocations: 16.49 MB / 355.9 MB, free: 1.059 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.85e-06/0.3713, allocations: 0 / 355.9 MB, free: 1.059 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.322e-05/0.3713, allocations: 4 kB / 355.9 MB, free: 1.055 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.0007079/0.372, allocations: 0.6136 MB / 356.5 MB, free: 380 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3721, allocations: 12.03 kB / 356.5 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.3722, allocations: 39.53 kB / 356.5 MB, free: 328 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.3725, allocations: 253.5 kB / 356.8 MB, free: 32 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.3726, allocations: 4 kB / 356.8 MB, free: 28 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.3726, allocations: 8 kB / 356.8 MB, free: 20 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.177/0.5497, allocations: 120 kB / 356.9 MB, free: 79.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.5497, allocations: 1.031 kB / 356.9 MB, free: 79.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.5498, allocations: 5.375 kB / 356.9 MB, free: 79.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.945e-06/0.5498, allocations: 1.125 kB / 356.9 MB, free: 79.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.55, allocations: 63.2 kB / 357 MB, free: 79.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008773/0.5509, allocations: 457 kB / 357.4 MB, free: 79.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.5512, allocations: 94.73 kB / 357.5 MB, free: 79.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.5514, allocations: 85.05 kB / 357.6 MB, free: 79.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.5514, allocations: 2.094 kB / 357.6 MB, free: 79.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.5518, allocations: 207.2 kB / 357.8 MB, free: 79.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 3.195e-06/0.5518, allocations: 0 / 357.8 MB, free: 79.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008657/0.5527, allocations: 392.1 kB / 358.2 MB, free: 79.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.5528, allocations: 169.8 kB / 358.4 MB, free: 78.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007914/0.5536, allocations: 470 kB / 358.8 MB, free: 78.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.5536, allocations: 33.48 kB / 358.8 MB, free: 78.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.5537, allocations: 160.7 kB / 359 MB, free: 78.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.93e-05/0.5538, allocations: 30.05 kB / 359 MB, free: 78.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.5538, allocations: 2.438 kB / 359 MB, free: 78.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.528e-05/0.5539, allocations: 322.2 kB / 359.4 MB, free: 78.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.554, allocations: 55.62 kB / 359.4 MB, free: 78.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.5542, allocations: 57.53 kB / 359.5 MB, free: 78.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.5544, allocations: 163.8 kB / 359.6 MB, free: 78.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.5544, allocations: 3.094 kB / 359.6 MB, free: 78.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006201/0.555, allocations: 374.4 kB / 360 MB, free: 77.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.268e-05/0.5551, allocations: 124.4 kB / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.5551, allocations: 0 / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.5551, allocations: 0 / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.932e-05/0.5552, allocations: 2.734 kB / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.5552, allocations: 0 / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.5554, allocations: 17.98 kB / 360.1 MB, free: 77.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.263e-05/0.5555, allocations: 59.59 kB / 360.2 MB, free: 77.74 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,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,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 () * 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.000156/0.5556, allocations: 241.8 kB / 360.4 MB, free: 77.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.504e-05/0.5557, allocations: 40.16 kB / 360.5 MB, free: 77.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000145/0.5559, allocations: 63.77 kB / 360.5 MB, free: 77.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.266e-06/0.5559, allocations: 0.875 kB / 360.5 MB, free: 77.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.264e-06/0.5559, allocations: 1.375 kB / 360.5 MB, free: 77.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.5559, allocations: 6.578 kB / 360.5 MB, free: 77.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.5571, allocations: 0.8023 MB / 361.3 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.152e-06/0.5571, allocations: 0 / 361.3 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.318e-06/0.5571, allocations: 1 kB / 361.3 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.5571, allocations: 0 / 361.3 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.5572, allocations: 17.36 kB / 361.4 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.381e-06/0.5572, allocations: 3.328 kB / 361.4 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.5572, allocations: 0 / 361.4 MB, free: 77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007192/0.5579, allocations: 0.5171 MB / 361.9 MB, free: 76.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003893/0.5583, allocations: 251 kB / 362.1 MB, free: 76.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.5584, allocations: 14.56 kB / 362.1 MB, free: 76.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.5587, allocations: 8.891 kB / 362.1 MB, free: 76.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.5588, allocations: 31.95 kB / 362.2 MB, free: 76.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-05/0.5589, allocations: 68.5 kB / 362.2 MB, free: 76.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005643/0.5595, allocations: 383.8 kB / 362.6 MB, free: 76.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.5595, allocations: 0 / 362.6 MB, free: 76.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004007/0.5599, allocations: 44.83 kB / 362.7 MB, free: 76.43 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) * 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.0001389/0.56, allocations: 113.8 kB / 362.8 MB, free: 76.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000472/0.5605, allocations: 436.3 kB / 363.2 MB, free: 76.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.838e-06/0.5605, allocations: 4 kB / 363.2 MB, free: 76.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.5609, allocations: 378.5 kB / 363.6 MB, free: 75.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.5614, allocations: 104.9 kB / 363.7 MB, free: 75.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.5625, allocations: 0.5619 MB / 364.2 MB, free: 75.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.5628, allocations: 0.8088 MB / 365 MB, free: 74.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.969e-05/0.5628, allocations: 10.81 kB / 365.1 MB, free: 74.85 MB / 298.7 MB Notification: Performance of SimCode: time 1.491e-06/0.5629, allocations: 4 kB / 365.1 MB, free: 74.85 MB / 298.7 MB Notification: Performance of Templates: time 0.00455/0.5674, allocations: 2.618 MB / 367.7 MB, free: 74.58 MB / 298.7 MB