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.869/1.869, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003824, allocations: 8 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07548/0.07589, allocations: 38.78 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001815/0.07775, allocations: 1.171 MB / 273.1 MB, free: 11.01 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.07987, allocations: 0.8362 MB / 273.9 MB, free: 10.17 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.759e-05/0.07997, allocations: 4 kB / 273.9 MB, free: 10.17 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.521e-05/0.08005, allocations: 3.938 kB / 273.9 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.796e-05/0.08015, allocations: 15.97 kB / 274 MB, free: 10.15 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.0804, allocations: 39.83 kB / 274 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.08054, allocations: 63.92 kB / 274.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.08067, allocations: 20.16 kB / 274.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006269/0.08132, allocations: 415.3 kB / 274.5 MB, free: 9.617 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.08149, allocations: 83.8 kB / 274.6 MB, free: 9.535 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.568e-05/0.08155, allocations: 4 kB / 274.6 MB, free: 9.531 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.625e-05/0.0816, allocations: 4 kB / 274.6 MB, free: 9.527 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.08171, allocations: 63.77 kB / 274.6 MB, free: 9.465 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.034e-05/0.08181, allocations: 73.52 kB / 274.7 MB, free: 9.387 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000376/0.0822, allocations: 287.3 kB / 275 MB, free: 9.105 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.822e-06/0.08221, allocations: 0 / 275 MB, free: 9.105 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.08223, allocations: 0 / 275 MB, free: 9.105 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.08224, allocations: 0 / 275 MB, free: 9.105 MB / 234.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.0008312/0.08309, allocations: 0.6646 MB / 275.7 MB, free: 8.367 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.08314, allocations: 11.97 kB / 275.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.644e-05/0.08325, allocations: 39.53 kB / 275.7 MB, free: 8.316 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003603/0.08362, allocations: 261.3 kB / 276 MB, free: 8.023 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.08367, allocations: 7.953 kB / 276 MB, free: 8.016 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.08372, allocations: 12 kB / 276 MB, free: 8.004 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003822/0.08411, allocations: 129.6 kB / 276.1 MB, free: 7.871 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.08414, allocations: 0 / 276.1 MB, free: 7.871 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.08418, allocations: 4 kB / 276.1 MB, free: 7.867 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.0842, allocations: 0 / 276.1 MB, free: 7.867 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.08441, allocations: 55.97 kB / 276.2 MB, free: 7.812 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000846/0.08528, allocations: 468.5 kB / 276.6 MB, free: 7.305 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.08555, allocations: 94.55 kB / 276.7 MB, free: 7.203 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.12e-06/0.08557, allocations: 0 / 276.7 MB, free: 7.203 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.08601, allocations: 210.7 kB / 276.9 MB, free: 6.973 MB / 234.7 MB Notification: Performance of pre-optimization done (n=13): time 5.037e-06/0.08604, allocations: 3.984 kB / 276.9 MB, free: 6.969 MB / 234.7 MB Notification: Performance of matching and sorting (n=13): time 0.001228/0.08727, allocations: 0.6198 MB / 277.5 MB, free: 6.281 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.08742, allocations: 170.2 kB / 277.7 MB, free: 6.078 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009058/0.08834, allocations: 0.5168 MB / 278.2 MB, free: 5.555 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.0884, allocations: 29.7 kB / 278.3 MB, free: 5.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.08852, allocations: 163.5 kB / 278.4 MB, free: 5.355 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.0886, allocations: 31.69 kB / 278.4 MB, free: 5.324 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.08864, allocations: 8 kB / 278.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.08881, allocations: 318.8 kB / 278.8 MB, free: 4.996 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.08901, allocations: 55.97 kB / 278.8 MB, free: 4.941 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.08924, allocations: 77.67 kB / 278.9 MB, free: 4.859 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/0.08951, allocations: 166.8 kB / 279.1 MB, free: 4.672 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.16e-06/0.08952, allocations: 0 / 279.1 MB, free: 4.672 MB / 234.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000801/0.09033, allocations: 380.4 kB / 279.4 MB, free: 4.27 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/0.09047, allocations: 126.8 kB / 279.6 MB, free: 4.121 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.821e-06/0.09049, allocations: 8 kB / 279.6 MB, free: 4.113 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.09052, allocations: 0 / 279.6 MB, free: 4.113 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.176e-05/0.09055, allocations: 0 / 279.6 MB, free: 4.113 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.09057, allocations: 0 / 279.6 MB, free: 4.113 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.0908, allocations: 24.03 kB / 279.6 MB, free: 4.09 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.714e-05/0.09092, allocations: 59.95 kB / 279.6 MB, free: 4.031 MB / 234.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.0005025/0.09144, allocations: 370.6 kB / 280 MB, free: 3.633 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.984e-05/0.09154, allocations: 43.53 kB / 280 MB, free: 3.59 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.0917, allocations: 63.16 kB / 280.1 MB, free: 3.523 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.05e-06/0.09171, allocations: 0 / 280.1 MB, free: 3.523 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.076e-06/0.09173, allocations: 0 / 280.1 MB, free: 3.523 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.031e-06/0.09174, allocations: 3.984 kB / 280.1 MB, free: 3.52 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.09318, allocations: 0.8212 MB / 280.9 MB, free: 2.617 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.608e-06/0.09321, allocations: 3.984 kB / 280.9 MB, free: 2.613 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.564e-06/0.09323, allocations: 0 / 280.9 MB, free: 2.613 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.077e-06/0.09324, allocations: 0 / 280.9 MB, free: 2.613 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/0.09329, allocations: 16 kB / 281 MB, free: 2.598 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.353e-06/0.09331, allocations: 4 kB / 281 MB, free: 2.594 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.09332, allocations: 0 / 281 MB, free: 2.594 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009484/0.09428, allocations: 0.533 MB / 281.5 MB, free: 2.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004741/0.09477, allocations: 244.4 kB / 281.7 MB, free: 1.762 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.155e-05/0.09487, allocations: 12 kB / 281.7 MB, free: 1.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.0951, allocations: 11.98 kB / 281.8 MB, free: 1.738 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.09525, allocations: 27.97 kB / 281.8 MB, free: 1.711 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.581e-05/0.09536, allocations: 64.05 kB / 281.8 MB, free: 1.648 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006741/0.09605, allocations: 386.9 kB / 282.2 MB, free: 1.273 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.46e-07/0.09606, allocations: 0 / 282.2 MB, free: 1.273 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000416/0.09649, allocations: 44 kB / 282.3 MB, free: 1.23 MB / 234.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.0001822/0.09668, allocations: 119 kB / 282.4 MB, free: 1.102 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007423/0.09744, allocations: 445.5 kB / 282.8 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.231e-06/0.09746, allocations: 0 / 282.8 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.09793, allocations: 377.6 kB / 283.2 MB, free: 204 kB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005947/0.09855, allocations: 100.6 kB / 283.3 MB, free: 104 kB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.1011, allocations: 0.7833 MB / 284.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009738/0.1022, allocations: 0.8102 MB / 284.9 MB, free: 14.45 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.685e-05/0.1022, allocations: 11.44 kB / 284.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of SimCode: time 1.96e-06/0.1022, allocations: 3.938 kB / 284.9 MB, free: 14.44 MB / 250.7 MB Notification: Performance of Templates: time 0.009528/0.1118, allocations: 2.626 MB / 287.5 MB, free: 11.75 MB / 250.7 MB