Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives") Notification: Performance of loadModel(ModelicaTest): time 1.875/1.875, allocations: 209.3 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004317/0.0004315, allocations: 8 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08976, allocations: 48.71 MB / 331.3 MB, free: 8.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.4122, allocations: 73.31 MB / 404.6 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.4124, allocations: 67.97 kB / 404.7 MB, free: 11.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01359/0.426, allocations: 2.941 MB / 407.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.452e-06/0.4261, allocations: 0 / 407.6 MB, free: 8.852 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.24e-06/0.4261, allocations: 0 / 407.6 MB, free: 8.852 MB / 330.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.0004567/0.4266, allocations: 375.1 kB / 408 MB, free: 8.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4266, allocations: 8.031 kB / 408 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.167e-05/0.4267, allocations: 0 / 408 MB, free: 8.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001643/0.4268, allocations: 171 kB / 408.1 MB, free: 8.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.219e-05/0.4269, allocations: 4 kB / 408.1 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.4269, allocations: 7.938 kB / 408.2 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001375/0.4271, allocations: 57.61 kB / 408.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.4271, allocations: 3.906 kB / 408.2 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.4271, allocations: 4 kB / 408.2 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.892e-06/0.4271, allocations: 0 / 408.2 MB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.526e-05/0.4272, allocations: 23.98 kB / 408.2 MB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.4275, allocations: 185.5 kB / 408.4 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002442/0.4277, allocations: 54.56 kB / 408.5 MB, free: 7.824 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002831/0.428, allocations: 109.1 kB / 408.6 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.4281, allocations: 34.56 kB / 408.6 MB, free: 7.656 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 5.43e-06/0.4281, allocations: 3.984 kB / 408.6 MB, free: 7.652 MB / 330.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.129/0.5571, allocations: 6.093 MB / 414.7 MB, free: 1.527 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.5572, allocations: 51.41 kB / 414.8 MB, free: 1.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.5573, allocations: 97 kB / 414.9 MB, free: 1.363 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.5574, allocations: 25.7 kB / 414.9 MB, free: 1.332 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.908e-05/0.5575, allocations: 154.6 kB / 415 MB, free: 1.18 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.5576, allocations: 63.02 kB / 415.1 MB, free: 1.117 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.5577, allocations: 4 kB / 415.1 MB, free: 1.113 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.5578, allocations: 322.8 kB / 415.4 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006628/0.5585, allocations: 227.8 kB / 415.6 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.5598, allocations: 219.9 kB / 415.9 MB, free: 360 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003092/0.5629, allocations: 279.8 kB / 416.1 MB, free: 80 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.582e-06/0.563, allocations: 0 / 416.1 MB, free: 80 kB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.005138/0.5681, allocations: 0.5756 MB / 416.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.5682, allocations: 7.594 kB / 416.7 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.5683, allocations: 3.984 kB / 416.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.5683, allocations: 4 kB / 416.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.5697, allocations: 92.31 kB / 416.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.5697, allocations: 0 / 416.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007579/0.5705, allocations: 27.97 kB / 416.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.5708, allocations: 31.92 kB / 416.9 MB, free: 15.33 MB / 346.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.0003492/0.5711, allocations: 113.8 kB / 417 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.5713, allocations: 11.84 kB / 417 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/0.5773, allocations: 0.6844 MB / 417.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.5773, allocations: 4 kB / 417.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.877e-06/0.5774, allocations: 0 / 417.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.5774, allocations: 7.984 kB / 417.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008591/0.586, allocations: 1.082 MB / 418.8 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.5861, allocations: 0 / 418.8 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.5873, allocations: 100.2 kB / 418.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-05/0.5873, allocations: 4 kB / 418.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001255/0.5875, allocations: 23.97 kB / 418.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-05/0.5875, allocations: 4 kB / 418.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.877e-06/0.5875, allocations: 0 / 418.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004649/0.5922, allocations: 0.6391 MB / 419.5 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.5924, allocations: 89 kB / 419.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.5925, allocations: 4 kB / 419.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008401/0.5934, allocations: 31.94 kB / 419.7 MB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.5935, allocations: 11.98 kB / 419.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001333/0.5937, allocations: 27.97 kB / 419.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001188/0.5938, allocations: 79.28 kB / 419.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.114e-06/0.5939, allocations: 4 kB / 419.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004573/0.5985, allocations: 0.6285 MB / 420.4 MB, free: 11.62 MB / 346.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.008785/0.6073, allocations: 346.6 kB / 420.7 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003038/0.6104, allocations: 423.7 kB / 421.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.419e-06/0.6105, allocations: 0 / 421.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.6118, allocations: 196.1 kB / 421.3 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.6124, allocations: 7.953 kB / 421.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004665/0.6171, allocations: 0.5555 MB / 421.9 MB, free: 10.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006752/0.6178, allocations: 0.6968 MB / 422.6 MB, free: 9.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007401/0.6185, allocations: 67.34 kB / 422.7 MB, free: 9.254 MB / 346.7 MB Notification: Performance of SimCode: time 2.633e-06/0.6186, allocations: 0 / 422.7 MB, free: 9.254 MB / 346.7 MB Notification: Performance of Templates: time 0.05638/0.675, allocations: 16.46 MB / 439.1 MB, free: 8.805 MB / 362.7 MB