Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.459/2.459, allocations: 234.9 MB / 251.1 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006307/0.0006308, allocations: 8 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3503, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.146/0.4963, allocations: 79.68 MB / 449.5 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.4967, allocations: 67.97 kB / 449.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01455/0.5112, allocations: 2.978 MB / 452.5 MB, free: 7.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5113, allocations: 0 / 452.5 MB, free: 7.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.5113, allocations: 0 / 452.5 MB, free: 7.91 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.0004497/0.5118, allocations: 375.1 kB / 452.9 MB, free: 7.496 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.5118, allocations: 8.031 kB / 452.9 MB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.5119, allocations: 3.906 kB / 452.9 MB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.512, allocations: 167.1 kB / 453.1 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.512, allocations: 0 / 453.1 MB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.5121, allocations: 12 kB / 453.1 MB, free: 7.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001635/0.5123, allocations: 53.61 kB / 453.1 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5123, allocations: 0 / 453.1 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.5123, allocations: 11.95 kB / 453.1 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.5123, allocations: 0 / 453.1 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.521e-05/0.5124, allocations: 23.98 kB / 453.2 MB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002149/0.5127, allocations: 173.5 kB / 453.3 MB, free: 6.957 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.513, allocations: 60.78 kB / 453.4 MB, free: 6.891 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003455/0.5133, allocations: 113.1 kB / 453.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.5134, allocations: 34.56 kB / 453.5 MB, free: 6.719 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.603e-06/0.5134, allocations: 0 / 453.5 MB, free: 6.719 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.248/0.7614, allocations: 6.079 MB / 459.6 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.7615, allocations: 55.36 kB / 459.7 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.7616, allocations: 102.3 kB / 459.8 MB, free: 432 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.283e-05/0.7617, allocations: 29.7 kB / 459.8 MB, free: 396 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/0.7617, allocations: 150.6 kB / 459.9 MB, free: 244 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.7619, allocations: 67.08 kB / 460 MB, free: 176 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.985e-05/0.7619, allocations: 4 kB / 460 MB, free: 172 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.7621, allocations: 318.8 kB / 460.3 MB, free: 15.85 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008087/0.7629, allocations: 219.9 kB / 460.5 MB, free: 15.63 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.7637, allocations: 219.9 kB / 460.8 MB, free: 15.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001864/0.7656, allocations: 279.8 kB / 461 MB, free: 15.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.7656, allocations: 0 / 461 MB, free: 15.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002899/0.7685, allocations: 0.5936 MB / 461.6 MB, free: 14.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.742e-05/0.7686, allocations: 7.953 kB / 461.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.7686, allocations: 4 kB / 461.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.7687, allocations: 0 / 461.6 MB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008942/0.7696, allocations: 87.91 kB / 461.7 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.7696, allocations: 4 kB / 461.7 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005756/0.7702, allocations: 23.97 kB / 461.7 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.689e-05/0.7703, allocations: 23.97 kB / 461.8 MB, free: 14.4 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.0001952/0.7705, allocations: 121.8 kB / 461.9 MB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.814e-05/0.7706, allocations: 11.91 kB / 461.9 MB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003402/0.774, allocations: 0.6775 MB / 462.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.774, allocations: 0 / 462.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.774, allocations: 0 / 462.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.7741, allocations: 7.938 kB / 462.6 MB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005386/0.7795, allocations: 1.089 MB / 463.7 MB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.7795, allocations: 4 kB / 463.7 MB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007806/0.7803, allocations: 87.91 kB / 463.8 MB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.7803, allocations: 192 / 463.8 MB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.7804, allocations: 27.97 kB / 463.8 MB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.468e-06/0.7804, allocations: 7.938 kB / 463.8 MB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.7804, allocations: 0 / 463.8 MB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.7831, allocations: 0.5627 MB / 464.4 MB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.339e-05/0.7832, allocations: 92.94 kB / 464.5 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.084e-05/0.7833, allocations: 8 kB / 464.5 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005354/0.7838, allocations: 23.98 kB / 464.5 MB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.7839, allocations: 15.98 kB / 464.5 MB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-05/0.784, allocations: 23.97 kB / 464.5 MB, free: 11.49 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.791e-05/0.7841, allocations: 87.27 kB / 464.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.7841, allocations: 0 / 464.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002473/0.7866, allocations: 0.6246 MB / 465.2 MB, free: 10.78 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.005148/0.7918, allocations: 346.6 kB / 465.6 MB, free: 10.43 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.7936, allocations: 430.2 kB / 466 MB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.7937, allocations: 0 / 466 MB, free: 10.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007772/0.7944, allocations: 204.2 kB / 466.2 MB, free: 9.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.7947, allocations: 8 kB / 466.2 MB, free: 9.809 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.798, allocations: 0.5475 MB / 466.7 MB, free: 9.211 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.7983, allocations: 0.7006 MB / 467.4 MB, free: 8.48 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004255/0.7987, allocations: 67.34 kB / 467.5 MB, free: 8.414 MB / 394.7 MB Notification: Performance of SimCode: time 1.713e-06/0.7987, allocations: 0 / 467.5 MB, free: 8.414 MB / 394.7 MB Notification: Performance of Templates: time 0.3311/1.13, allocations: 16.45 MB / 484 MB, free: 92.58 MB / 394.7 MB