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.826/1.826, allocations: 209.3 MB / 222.4 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.902e-05, allocations: 0 / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08722, allocations: 48.7 MB / 326.5 MB, free: 11.58 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3738/0.4611, allocations: 73.22 MB / 399.8 MB, free: 14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.4615, allocations: 74.39 kB / 399.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03008/0.4916, allocations: 2.929 MB / 402.8 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.241e-06/0.4917, allocations: 4 kB / 402.8 MB, free: 11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.4918, allocations: 0 / 402.8 MB, free: 11 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.0007675/0.4925, allocations: 362.3 kB / 403.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.139e-05/0.4927, allocations: 12.03 kB / 403.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.045e-05/0.4928, allocations: 3.906 kB / 403.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.493, allocations: 171 kB / 403.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.4931, allocations: 4 kB / 403.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.4932, allocations: 4 kB / 403.3 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.4935, allocations: 61.56 kB / 403.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.4935, allocations: 0 / 403.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.4935, allocations: 4 kB / 403.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.478e-06/0.4936, allocations: 0 / 403.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001859/0.4938, allocations: 23.98 kB / 403.4 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004392/0.4942, allocations: 181.5 kB / 403.6 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.4948, allocations: 54.59 kB / 403.6 MB, free: 9.988 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.4949, allocations: 28.86 kB / 403.6 MB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003061/0.4953, allocations: 105.1 kB / 403.8 MB, free: 9.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.4953, allocations: 40.3 kB / 403.8 MB, free: 9.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.265e-06/0.4953, allocations: 0 / 403.8 MB, free: 9.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.1288/0.6241, allocations: 5.28 MB / 409.1 MB, free: 4.477 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.6242, allocations: 51.41 kB / 409.1 MB, free: 4.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.6243, allocations: 97 kB / 409.2 MB, free: 4.312 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.742e-05/0.6244, allocations: 29.7 kB / 409.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.162e-05/0.6245, allocations: 154.5 kB / 409.4 MB, free: 4.125 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.6246, allocations: 69.72 kB / 409.5 MB, free: 4.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.6247, allocations: 0 / 409.5 MB, free: 4.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.6248, allocations: 326.8 kB / 409.8 MB, free: 3.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004055/0.6253, allocations: 168 kB / 409.9 MB, free: 3.566 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.6257, allocations: 168 kB / 410.1 MB, free: 3.402 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.6269, allocations: 227.8 kB / 410.3 MB, free: 3.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.073e-06/0.6269, allocations: 0 / 410.3 MB, free: 3.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001846/0.6288, allocations: 496.4 kB / 410.8 MB, free: 2.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.6288, allocations: 8 kB / 410.8 MB, free: 2.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.395e-06/0.6288, allocations: 4 kB / 410.8 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.6288, allocations: 0 / 410.8 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.6295, allocations: 91.83 kB / 410.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.627e-06/0.6296, allocations: 0 / 410.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003917/0.63, allocations: 39.92 kB / 411 MB, free: 2.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.968e-05/0.63, allocations: 20.16 kB / 411 MB, free: 2.531 MB / 330.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 () * 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.0001577/0.6302, allocations: 109 kB / 411.1 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.948e-05/0.6303, allocations: 15.84 kB / 411.1 MB, free: 2.402 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002229/0.6325, allocations: 0.5797 MB / 411.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.338e-06/0.6326, allocations: 0 / 411.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6326, allocations: 0 / 411.7 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.939e-06/0.6326, allocations: 3.984 kB / 411.7 MB, free: 1.812 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003619/0.6362, allocations: 0.991 MB / 412.7 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.455e-06/0.6363, allocations: 4.141 kB / 412.7 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.6369, allocations: 95.84 kB / 412.8 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.6369, allocations: 4 kB / 412.8 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.637, allocations: 19.97 kB / 412.8 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.045e-06/0.637, allocations: 0 / 412.8 MB, free: 0.625 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.019e-06/0.637, allocations: 4 kB / 412.8 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.6387, allocations: 0.5415 MB / 413.3 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.129e-05/0.6388, allocations: 89 kB / 413.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.973e-05/0.6389, allocations: 12.2 kB / 413.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004066/0.6393, allocations: 31.98 kB / 413.5 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.6393, allocations: 11.98 kB / 413.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.321e-05/0.6394, allocations: 23.97 kB / 413.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.516e-05/0.6395, allocations: 91.2 kB / 413.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.86e-07/0.6395, allocations: 0 / 413.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002014/0.6415, allocations: 0.6169 MB / 414.2 MB, free: 15.12 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 () * 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.003812/0.6453, allocations: 342.6 kB / 414.5 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009068/0.6463, allocations: 330.9 kB / 414.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.835e-06/0.6463, allocations: 3.938 kB / 414.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003658/0.6467, allocations: 139.9 kB / 415 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.6469, allocations: 8 kB / 415 MB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.649, allocations: 448.4 kB / 415.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.6494, allocations: 0.7046 MB / 416.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.6498, allocations: 63.36 kB / 416.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of SimCode: time 1.729e-06/0.6498, allocations: 0 / 416.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of Templates: time 0.03179/0.6816, allocations: 15.95 MB / 432.2 MB, free: 13.08 MB / 362.7 MB