Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.097/2.097, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004302, allocations: 19.94 kB / 314.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.284, allocations: 54.85 MB / 369.3 MB, free: 12.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1165/0.4006, allocations: 79.53 MB / 448.8 MB, free: 13.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.4008, allocations: 67.95 kB / 448.9 MB, free: 13.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00708/0.4079, allocations: 1.792 MB / 450.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.509e-06/0.408, allocations: 0 / 450.7 MB, free: 11.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.408, allocations: 0 / 450.7 MB, free: 11.23 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004024/0.4084, allocations: 367.1 kB / 451 MB, free: 10.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.4085, allocations: 12.03 kB / 451 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.049e-05/0.4085, allocations: 3.906 kB / 451 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.4086, allocations: 167 kB / 451.2 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.4087, allocations: 7.938 kB / 451.2 MB, free: 10.6 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.4087, allocations: 8 kB / 451.2 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/0.4089, allocations: 53.61 kB / 451.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.4089, allocations: 4 kB / 451.3 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.4089, allocations: 3.953 kB / 451.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.397e-06/0.4089, allocations: 7.938 kB / 451.3 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.266e-05/0.409, allocations: 23.98 kB / 451.3 MB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002176/0.4093, allocations: 173.5 kB / 451.5 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002332/0.4095, allocations: 58.56 kB / 451.5 MB, free: 10.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002639/0.4098, allocations: 113.3 kB / 451.6 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.4098, allocations: 34.5 kB / 451.7 MB, free: 10.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.309e-06/0.4099, allocations: 0 / 451.7 MB, free: 10.04 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.04175/0.4516, allocations: 2.816 MB / 454.5 MB, free: 7.188 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.4517, allocations: 55.36 kB / 454.5 MB, free: 7.121 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.864e-05/0.4518, allocations: 96.98 kB / 454.6 MB, free: 7.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.925e-05/0.4519, allocations: 29.7 kB / 454.7 MB, free: 6.984 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.533e-05/0.452, allocations: 154.6 kB / 454.8 MB, free: 6.832 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.312e-05/0.4521, allocations: 59.11 kB / 454.9 MB, free: 6.773 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.4521, allocations: 4 kB / 454.9 MB, free: 6.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.4523, allocations: 318.8 kB / 455.2 MB, free: 6.449 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005604/0.4529, allocations: 187.9 kB / 455.4 MB, free: 6.266 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005366/0.4534, allocations: 191.9 kB / 455.6 MB, free: 6.078 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000794/0.4542, allocations: 215.9 kB / 455.8 MB, free: 5.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.311e-06/0.4542, allocations: 7.938 kB / 455.8 MB, free: 5.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001493/0.4557, allocations: 495.7 kB / 456.3 MB, free: 5.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.4558, allocations: 4 kB / 456.3 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.27e-06/0.4558, allocations: 3.953 kB / 456.3 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.4558, allocations: 8 kB / 456.3 MB, free: 5.355 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.4563, allocations: 71.94 kB / 456.3 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.577e-06/0.4563, allocations: 4 kB / 456.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.4566, allocations: 31.97 kB / 456.4 MB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/0.4567, allocations: 15.98 kB / 456.4 MB, free: 5.234 MB / 378.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.0001694/0.4569, allocations: 121.8 kB / 456.5 MB, free: 5.105 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.958e-05/0.4569, allocations: 7.906 kB / 456.5 MB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.4587, allocations: 0.5644 MB / 457.1 MB, free: 4.516 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.324e-06/0.4588, allocations: 4 kB / 457.1 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.516e-06/0.4588, allocations: 0 / 457.1 MB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.4588, allocations: 7.938 kB / 457.1 MB, free: 4.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.4617, allocations: 0.9443 MB / 458 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.934e-06/0.4617, allocations: 4 kB / 458.1 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.4621, allocations: 67.95 kB / 458.1 MB, free: 3.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.304e-06/0.4621, allocations: 4 kB / 458.1 MB, free: 3.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.405e-05/0.4622, allocations: 24.17 kB / 458.1 MB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.342e-06/0.4622, allocations: 3.938 kB / 458.1 MB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.796e-06/0.4622, allocations: 7.938 kB / 458.2 MB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.4635, allocations: 0.5479 MB / 458.7 MB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.4636, allocations: 89 kB / 458.8 MB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.757e-05/0.4637, allocations: 8 kB / 458.8 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.464, allocations: 20.23 kB / 458.8 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/0.464, allocations: 23.92 kB / 458.8 MB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.598e-05/0.4641, allocations: 23.98 kB / 458.9 MB, free: 2.578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.108e-05/0.4642, allocations: 87.27 kB / 459 MB, free: 2.492 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.168e-06/0.4642, allocations: 0 / 459 MB, free: 2.492 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001103/0.4653, allocations: 343.6 kB / 459.3 MB, free: 2.156 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * 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.001663/0.467, allocations: 278.8 kB / 459.6 MB, free: 1.875 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.4681, allocations: 367.7 kB / 459.9 MB, free: 1.516 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.431e-06/0.4681, allocations: 4 kB / 459.9 MB, free: 1.512 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004933/0.4686, allocations: 164.2 kB / 460.1 MB, free: 1.352 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.4688, allocations: 11.98 kB / 460.1 MB, free: 1.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.4705, allocations: 0.4934 MB / 460.6 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.4709, allocations: 0.7045 MB / 461.3 MB, free: 64 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.4711, allocations: 47.41 kB / 461.3 MB, free: 16 kB / 378.7 MB Notification: Performance of SimCode: time 3.677e-06/0.4712, allocations: 0 / 461.3 MB, free: 16 kB / 378.7 MB Notification: Performance of Templates: time 0.01383/0.485, allocations: 7.431 MB / 468.8 MB, free: 8.613 MB / 394.7 MB