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.575/1.575, allocations: 171.1 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 8 kB / 233.2 MB, free: 3.02 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07949/0.07987, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3135/0.3934, allocations: 71.8 MB / 343.8 MB, free: 2.012 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.3937, allocations: 71.58 kB / 343.9 MB, free: 1.973 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0516/0.4453, allocations: 16.39 MB / 360.3 MB, free: 4.324 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.011e-05/0.4454, allocations: 0 / 360.3 MB, free: 4.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.426e-05/0.4454, allocations: 8 kB / 360.3 MB, free: 4.316 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.0008469/0.4463, allocations: 0.6663 MB / 360.9 MB, free: 3.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.996e-05/0.4463, allocations: 8.031 kB / 361 MB, free: 3.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.552e-05/0.4464, allocations: 35.53 kB / 361 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.4468, allocations: 264.4 kB / 361.2 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.571e-05/0.4468, allocations: 8 kB / 361.3 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.4469, allocations: 8 kB / 361.3 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.4473, allocations: 123.5 kB / 361.4 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4473, allocations: 8 kB / 361.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.4473, allocations: 0 / 361.4 MB, free: 3.137 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.306e-06/0.4473, allocations: 4 kB / 361.4 MB, free: 3.133 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.4475, allocations: 58.47 kB / 361.5 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008486/0.4484, allocations: 458.2 kB / 361.9 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.4487, allocations: 103.2 kB / 362 MB, free: 2.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.122e-05/0.4487, allocations: 0 / 362 MB, free: 2.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.4491, allocations: 214.8 kB / 362.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 5.329e-06/0.4491, allocations: 3.984 kB / 362.2 MB, free: 2.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001206/0.4504, allocations: 0.6112 MB / 362.8 MB, free: 1.754 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001255/0.4505, allocations: 161.2 kB / 363 MB, free: 1.562 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008251/0.4513, allocations: 469.5 kB / 363.4 MB, free: 1.168 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.4514, allocations: 35.33 kB / 363.5 MB, free: 1.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4515, allocations: 157.7 kB / 363.6 MB, free: 0.9805 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.809e-05/0.4516, allocations: 28.89 kB / 363.7 MB, free: 0.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.4516, allocations: 4 kB / 363.7 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4518, allocations: 318.6 kB / 364 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000181/0.452, allocations: 55.34 kB / 364 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.4522, allocations: 82.83 kB / 364.1 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.4525, allocations: 177.4 kB / 364.3 MB, free: 368 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.983e-06/0.4525, allocations: 0 / 364.3 MB, free: 368 kB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007427/0.4532, allocations: 362.3 kB / 364.6 MB, free: 28 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.4534, allocations: 126.2 kB / 364.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.337e-06/0.4534, allocations: 0 / 364.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.4534, allocations: 0 / 364.8 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.578e-05/0.4535, allocations: 7.938 kB / 364.8 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.4535, allocations: 8.031 kB / 364.8 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.4537, allocations: 11.94 kB / 364.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.635e-05/0.4538, allocations: 59.94 kB / 364.8 MB, free: 15.8 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.0005166/0.4544, allocations: 373.5 kB / 365.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.4544, allocations: 35.62 kB / 365.2 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.4546, allocations: 63.02 kB / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.498e-06/0.4546, allocations: 4 kB / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.367e-06/0.4546, allocations: 0 / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.37e-06/0.4547, allocations: 0 / 365.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.456, allocations: 0.8044 MB / 366.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.121e-06/0.4561, allocations: 4 kB / 366.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.491e-06/0.4561, allocations: 0 / 366.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.4561, allocations: 7.984 kB / 366.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.996e-05/0.4561, allocations: 8 kB / 366.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.233e-06/0.4562, allocations: 0 / 366.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.158e-06/0.4562, allocations: 4 kB / 366.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009461/0.4571, allocations: 0.5183 MB / 366.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004736/0.4576, allocations: 246.6 kB / 366.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.563e-05/0.4577, allocations: 12.19 kB / 366.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.4579, allocations: 12 kB / 366.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.4581, allocations: 35.72 kB / 367 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.4582, allocations: 63.91 kB / 367 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006674/0.4589, allocations: 387.9 kB / 367.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.16e-07/0.4589, allocations: 0 / 367.4 MB, free: 13.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004259/0.4594, allocations: 44 kB / 367.4 MB, free: 13.36 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.0001953/0.4596, allocations: 126.8 kB / 367.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007053/0.4603, allocations: 431.2 kB / 368 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4603, allocations: 0 / 368 MB, free: 12.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.4608, allocations: 377.6 kB / 368.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.4614, allocations: 92.69 kB / 368.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.4631, allocations: 0.7825 MB / 369.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000634/0.4637, allocations: 0.8072 MB / 370 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.989e-05/0.4638, allocations: 15.44 kB / 370 MB, free: 10.85 MB / 298.7 MB Notification: Performance of SimCode: time 1.669e-06/0.4638, allocations: 0 / 370 MB, free: 10.85 MB / 298.7 MB Notification: Performance of Templates: time 0.005732/0.4695, allocations: 2.643 MB / 372.7 MB, free: 8.168 MB / 298.7 MB