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.BUF3S.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.BUF3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bUF3S.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.BUF3S") Notification: Performance of loadModel(Modelica): time 1.948/1.948, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003578, allocations: 12 kB / 233.8 MB, free: 0.9805 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08657/0.08696, allocations: 38.77 MB / 272.5 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4424, allocations: 72.33 MB / 344.9 MB, free: 10.79 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.4427, allocations: 67.97 kB / 344.9 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1377/0.5804, allocations: 27.28 MB / 372.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.496e-06/0.5805, allocations: 0 / 372.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.631e-05/0.5805, allocations: 4 kB / 372.2 MB, free: 15.53 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.001425/0.582, allocations: 0.6751 MB / 372.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.5821, allocations: 12.02 kB / 372.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002049/0.5823, allocations: 39.53 kB / 373 MB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006262/0.5829, allocations: 253.5 kB / 373.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.389e-05/0.583, allocations: 8 kB / 373.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.715e-05/0.5831, allocations: 8 kB / 373.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007461/0.5839, allocations: 153.4 kB / 373.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.5839, allocations: 7.922 kB / 373.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.98e-05/0.584, allocations: 4 kB / 373.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.584, allocations: 4 kB / 373.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004123/0.5845, allocations: 67.95 kB / 373.4 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.5862, allocations: 476.6 kB / 373.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005216/0.5867, allocations: 103.2 kB / 374 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.5868, allocations: 4 kB / 374 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007401/0.5875, allocations: 226.7 kB / 374.2 MB, free: 13.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 4.278e-06/0.5876, allocations: 0 / 374.2 MB, free: 13.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.002539/0.5901, allocations: 0.6821 MB / 374.9 MB, free: 12.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002094/0.5904, allocations: 174.1 kB / 375.1 MB, free: 12.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001636/0.592, allocations: 0.5168 MB / 375.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.5922, allocations: 29.7 kB / 375.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.5924, allocations: 167.5 kB / 375.8 MB, free: 11.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.5926, allocations: 27.7 kB / 375.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.815e-05/0.5926, allocations: 4 kB / 375.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.5928, allocations: 314.8 kB / 376.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/0.5933, allocations: 67.89 kB / 376.2 MB, free: 11.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004314/0.5938, allocations: 85.66 kB / 376.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.5943, allocations: 174.8 kB / 376.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.5943, allocations: 4 kB / 376.5 MB, free: 10.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001596/0.5959, allocations: 432.2 kB / 376.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.5961, allocations: 130.7 kB / 377 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.5962, allocations: 0 / 377 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.5962, allocations: 0 / 377 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.63e-05/0.5963, allocations: 4 kB / 377 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.5963, allocations: 0 / 377 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003995/0.5967, allocations: 16 kB / 377 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003132/0.5971, allocations: 119.8 kB / 377.2 MB, free: 10.19 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.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.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.0009087/0.598, allocations: 362.3 kB / 377.5 MB, free: 9.797 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.5982, allocations: 39.58 kB / 377.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.5985, allocations: 67.14 kB / 377.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.5985, allocations: 0 / 377.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.5985, allocations: 0 / 377.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.5986, allocations: 0 / 377.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002776/0.6013, allocations: 0.8757 MB / 378.5 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.6014, allocations: 0 / 378.5 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.936e-05/0.6015, allocations: 0 / 378.5 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.377e-06/0.6015, allocations: 4 kB / 378.5 MB, free: 8.723 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.554e-05/0.6016, allocations: 23.98 kB / 378.5 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.6016, allocations: 0 / 378.5 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.6016, allocations: 0 / 378.5 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001767/0.6034, allocations: 0.5798 MB / 379.1 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008021/0.6043, allocations: 256.3 kB / 379.3 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.6045, allocations: 16.19 kB / 379.4 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.6048, allocations: 12 kB / 379.4 MB, free: 7.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/0.6051, allocations: 35.95 kB / 379.4 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002876/0.6054, allocations: 123.8 kB / 379.5 MB, free: 7.625 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001101/0.6065, allocations: 386.9 kB / 379.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6065, allocations: 0 / 379.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000705/0.6072, allocations: 44 kB / 379.9 MB, free: 7.203 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,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.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.000262/0.6075, allocations: 123 kB / 380.1 MB, free: 7.074 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.6087, allocations: 457.4 kB / 380.5 MB, free: 6.578 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.6087, allocations: 4 kB / 380.5 MB, free: 6.574 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.6095, allocations: 389.5 kB / 380.9 MB, free: 6.145 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001097/0.6106, allocations: 102 kB / 381 MB, free: 6.047 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002556/0.6132, allocations: 0.7878 MB / 381.8 MB, free: 5.227 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008351/0.6141, allocations: 0.8063 MB / 382.6 MB, free: 4.395 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.964e-05/0.6141, allocations: 11.44 kB / 382.6 MB, free: 4.383 MB / 314.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6141, allocations: 4 kB / 382.6 MB, free: 4.379 MB / 314.7 MB Notification: Performance of Templates: time 0.01295/0.6271, allocations: 3.776 MB / 386.4 MB, free: 0.5508 MB / 314.7 MB