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.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,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.TestRegRoot2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 2.307/2.307, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004451, allocations: 12 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2769, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.12/0.397, allocations: 79.69 MB / 449 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.3973, allocations: 63.97 kB / 449 MB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0133/0.4106, allocations: 2.97 MB / 452 MB, free: 7.859 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.72e-06/0.4106, allocations: 0 / 452 MB, free: 7.859 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.4107, allocations: 0 / 452 MB, free: 7.859 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.0004265/0.4111, allocations: 375.1 kB / 452.4 MB, free: 7.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.4111, allocations: 8.031 kB / 452.4 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.554e-05/0.4112, allocations: 7.906 kB / 452.4 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.4113, allocations: 167 kB / 452.5 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.4114, allocations: 4 kB / 452.5 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.4114, allocations: 8 kB / 452.5 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.4115, allocations: 49.62 kB / 452.6 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.4116, allocations: 4 kB / 452.6 MB, free: 7.156 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.4116, allocations: 7.953 kB / 452.6 MB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.4116, allocations: 0 / 452.6 MB, free: 7.148 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.567e-05/0.4117, allocations: 27.97 kB / 452.6 MB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002197/0.4119, allocations: 173.5 kB / 452.8 MB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.4122, allocations: 62.55 kB / 452.9 MB, free: 6.832 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002762/0.4125, allocations: 105.1 kB / 453 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.4126, allocations: 38.56 kB / 453 MB, free: 6.664 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 2.137e-06/0.4126, allocations: 0 / 453 MB, free: 6.664 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.1299/0.5424, allocations: 6.078 MB / 459.1 MB, free: 0.5469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.5425, allocations: 59.36 kB / 459.1 MB, free: 488 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.695e-05/0.5427, allocations: 96.98 kB / 459.2 MB, free: 384 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.5427, allocations: 29.7 kB / 459.3 MB, free: 348 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.687e-05/0.5428, allocations: 154.5 kB / 459.4 MB, free: 192 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.5429, allocations: 63.09 kB / 459.5 MB, free: 128 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/0.543, allocations: 4 kB / 459.5 MB, free: 124 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.5432, allocations: 322.8 kB / 459.8 MB, free: 15.8 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006209/0.5438, allocations: 211.9 kB / 460 MB, free: 15.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/0.5444, allocations: 224.9 kB / 460.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.5459, allocations: 276.5 kB / 460.5 MB, free: 15.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.75e-06/0.5459, allocations: 0 / 460.5 MB, free: 15.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002293/0.5482, allocations: 0.5884 MB / 461.1 MB, free: 14.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.5483, allocations: 4 kB / 461.1 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.97e-06/0.5483, allocations: 3.953 kB / 461.1 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.5483, allocations: 4 kB / 461.1 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006449/0.549, allocations: 96.3 kB / 461.2 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.549, allocations: 0 / 461.2 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003614/0.5494, allocations: 23.98 kB / 461.2 MB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.178e-05/0.5494, allocations: 24.22 kB / 461.2 MB, free: 14.36 MB / 394.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.0001792/0.5496, allocations: 121.8 kB / 461.4 MB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.5497, allocations: 15.84 kB / 461.4 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002653/0.5524, allocations: 0.6883 MB / 462.1 MB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.692e-06/0.5524, allocations: 4 kB / 462.1 MB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.428e-06/0.5524, allocations: 0 / 462.1 MB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.101e-06/0.5524, allocations: 3.953 kB / 462.1 MB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004012/0.5565, allocations: 1.081 MB / 463.1 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.723e-06/0.5565, allocations: 4 kB / 463.2 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005415/0.5571, allocations: 83.84 kB / 463.2 MB, free: 12.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.714e-06/0.5571, allocations: 8.188 kB / 463.2 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.5572, allocations: 23.97 kB / 463.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.5572, allocations: 4 kB / 463.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.11e-06/0.5572, allocations: 0 / 463.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/0.5593, allocations: 0.643 MB / 463.9 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.227e-05/0.5594, allocations: 85.02 kB / 464 MB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.78e-05/0.5595, allocations: 8 kB / 464 MB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.5599, allocations: 31.97 kB / 464 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.5599, allocations: 11.98 kB / 464 MB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.844e-05/0.56, allocations: 23.97 kB / 464.1 MB, free: 11.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.242e-05/0.5601, allocations: 87.22 kB / 464.2 MB, free: 11.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5601, allocations: 0 / 464.2 MB, free: 11.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001979/0.5621, allocations: 0.6246 MB / 464.8 MB, free: 10.62 MB / 394.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.003976/0.5661, allocations: 346.7 kB / 465.1 MB, free: 10.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.5674, allocations: 423.6 kB / 465.5 MB, free: 9.863 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.5675, allocations: 0 / 465.5 MB, free: 9.863 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.568, allocations: 196.1 kB / 465.7 MB, free: 9.672 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.5683, allocations: 8 kB / 465.7 MB, free: 9.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.5706, allocations: 0.5511 MB / 466.3 MB, free: 9.062 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/0.571, allocations: 0.7007 MB / 467 MB, free: 8.332 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003251/0.5713, allocations: 67.34 kB / 467 MB, free: 8.266 MB / 394.7 MB Notification: Performance of SimCode: time 2.098e-06/0.5713, allocations: 0 / 467 MB, free: 8.266 MB / 394.7 MB Notification: Performance of Templates: time 0.2779/0.8492, allocations: 16.45 MB / 483.5 MB, free: 92.66 MB / 394.7 MB