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.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadModel(ModelicaTest): time 1.926/1.926, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004345, allocations: 12 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2927, allocations: 48.7 MB / 331.2 MB, free: 6.473 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.000636/0.2934, allocations: 294.2 kB / 331.5 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003225/0.2937, allocations: 117.8 kB / 331.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.033e-05/0.2938, allocations: 0 / 331.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.504e-05/0.2938, allocations: 2.281 kB / 331.6 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.294, allocations: 29.86 kB / 331.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.354e-06/0.294, allocations: 0 / 331.6 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 4.207e-05/0.2941, allocations: 17.16 kB / 331.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.2941, allocations: 1.906 kB / 331.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.26e-05/0.2942, allocations: 11.7 kB / 331.7 MB, free: 6.266 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.028e-05/0.2942, allocations: 20.11 kB / 331.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.2942, allocations: 2.75 kB / 331.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.2944, allocations: 43.16 kB / 331.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.537e-06/0.2944, allocations: 4.625 kB / 331.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.362e-05/0.2944, allocations: 27.08 kB / 331.7 MB, free: 6.215 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.706e-05/0.2945, allocations: 32.7 kB / 331.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.138e-06/0.2945, allocations: 0 / 331.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.911e-06/0.2945, allocations: 0 / 331.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.982e-06/0.2946, allocations: 0 / 331.8 MB, free: 6.211 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002166/0.2948, allocations: 327.3 kB / 332.1 MB, free: 5.855 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2948, allocations: 14.19 kB / 332.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.326e-05/0.2949, allocations: 1.375 kB / 332.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.784e-05/0.295, allocations: 174.2 kB / 332.3 MB, free: 5.645 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.295, allocations: 5.328 kB / 332.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.295, allocations: 12.06 kB / 332.3 MB, free: 5.633 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.2952, allocations: 54.34 kB / 332.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.2952, allocations: 3.938 kB / 332.4 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2952, allocations: 0 / 332.4 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.938e-06/0.2952, allocations: 1.375 kB / 332.4 MB, free: 5.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.2954, allocations: 58.89 kB / 332.4 MB, free: 5.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001561/0.2955, allocations: 168.8 kB / 332.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001671/0.2957, allocations: 81.81 kB / 332.7 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003228/0.2961, allocations: 253.6 kB / 332.9 MB, free: 5.047 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.2961, allocations: 34.56 kB / 332.9 MB, free: 5.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 2.232e-06/0.2961, allocations: 1.875 kB / 332.9 MB, free: 5.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002754/0.2964, allocations: 103.2 kB / 333 MB, free: 4.945 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.329e-05/0.2964, allocations: 56.59 kB / 333.1 MB, free: 4.879 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.96e-05/0.2965, allocations: 92.97 kB / 333.2 MB, free: 4.781 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.117e-05/0.2965, allocations: 27.33 kB / 333.2 MB, free: 4.75 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.191e-05/0.2965, allocations: 150.6 kB / 333.4 MB, free: 4.602 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.2966, allocations: 38.56 kB / 333.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.624e-06/0.2966, allocations: 1.156 kB / 333.4 MB, free: 4.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.255e-05/0.2967, allocations: 313.2 kB / 333.7 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.939e-05/0.2967, allocations: 24.55 kB / 333.7 MB, free: 4.246 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.818e-05/0.2968, allocations: 16.45 kB / 333.8 MB, free: 4.242 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.984e-05/0.2969, allocations: 20.27 kB / 333.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.416e-06/0.2969, allocations: 0 / 333.8 MB, free: 4.234 MB / 266.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002043/0.2971, allocations: 91.48 kB / 333.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.2971, allocations: 6.203 kB / 333.9 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.2972, allocations: 4 kB / 333.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2972, allocations: 1.062 kB / 333.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.2973, allocations: 15.09 kB / 333.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.888e-06/0.2973, allocations: 1.031 kB / 333.9 MB, free: 4.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.624e-05/0.2974, allocations: 10.61 kB / 333.9 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.2974, allocations: 5.359 kB / 333.9 MB, free: 4.16 MB / 266.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 (10): * Single equations (assignments): 10 * 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 6.452e-05/0.2975, allocations: 117 kB / 334 MB, free: 4.039 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.67e-05/0.2975, allocations: 7.484 kB / 334 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.2978, allocations: 102.5 kB / 334.1 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.852e-06/0.2978, allocations: 2.062 kB / 334.1 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.435e-06/0.2978, allocations: 0 / 334.1 MB, free: 3.969 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.926e-06/0.2978, allocations: 8.5 kB / 334.1 MB, free: 3.961 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.2979, allocations: 174.2 kB / 334.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-06/0.298, allocations: 0 / 334.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.157e-05/0.2981, allocations: 15.86 kB / 334.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2981, allocations: 1.25 kB / 334.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2981, allocations: 4.609 kB / 334.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.36e-06/0.2981, allocations: 1.062 kB / 334.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.126e-06/0.2981, allocations: 0 / 334.3 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001717/0.2983, allocations: 115.1 kB / 334.4 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.323e-05/0.2983, allocations: 83.52 kB / 334.5 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.2984, allocations: 0.5938 kB / 334.5 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.827e-05/0.2984, allocations: 9.703 kB / 334.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.088e-05/0.2984, allocations: 5.781 kB / 334.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.2985, allocations: 1.594 kB / 334.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.146e-05/0.2985, allocations: 77.23 kB / 334.6 MB, free: 3.488 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.28e-07/0.2985, allocations: 0 / 334.6 MB, free: 3.488 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002874/0.2988, allocations: 24.58 kB / 334.6 MB, free: 3.477 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (10): * Single equations (assignments): 10 * 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.0001333/0.299, allocations: 111.6 kB / 334.7 MB, free: 3.383 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001713/0.2991, allocations: 55 kB / 334.8 MB, free: 3.367 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.372e-06/0.2992, allocations: 0 / 334.8 MB, free: 3.367 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.436e-05/0.2992, allocations: 31 kB / 334.8 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001151/0.2994, allocations: 1.922 kB / 334.8 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000372/0.2997, allocations: 180.2 kB / 335 MB, free: 3.188 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.2999, allocations: 0.6872 MB / 335.7 MB, free: 2.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.2999, allocations: 13.08 kB / 335.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of SimCode: time 1.317e-06/0.2999, allocations: 0 / 335.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of Templates: time 0.002693/0.3026, allocations: 0.8161 MB / 336.5 MB, free: 2.418 MB / 266.7 MB