Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.054/2.054, allocations: 209.2 MB / 225.4 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006012/0.0006015, allocations: 15.98 kB / 283.1 MB, free: 9.66 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3599, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1344/0.4943, allocations: 72.89 MB / 404.7 MB, free: 5.582 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.4946, allocations: 67.97 kB / 404.8 MB, free: 5.516 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003911/0.4986, allocations: 0.9043 MB / 405.7 MB, free: 4.605 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.4986, allocations: 0 / 405.7 MB, free: 4.605 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.4986, allocations: 0 / 405.7 MB, free: 4.605 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003429/0.499, allocations: 339.4 kB / 406 MB, free: 4.227 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.499, allocations: 12.03 kB / 406 MB, free: 4.215 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.4991, allocations: 0 / 406 MB, free: 4.215 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4992, allocations: 166.9 kB / 406.2 MB, free: 4.012 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.4993, allocations: 11.89 kB / 406.2 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.4993, allocations: 15.97 kB / 406.2 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00016/0.4995, allocations: 53.62 kB / 406.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.4995, allocations: 224 / 406.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.4995, allocations: 0 / 406.2 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.4996, allocations: 7.938 kB / 406.3 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.4997, allocations: 55.94 kB / 406.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002191/0.4999, allocations: 165.7 kB / 406.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001806/0.5001, allocations: 74.55 kB / 406.5 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003941/0.5005, allocations: 259.3 kB / 406.8 MB, free: 3.262 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.5006, allocations: 30.56 kB / 406.8 MB, free: 3.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.5006, allocations: 0 / 406.8 MB, free: 3.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003302/0.5009, allocations: 105.8 kB / 406.9 MB, free: 3.113 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.501, allocations: 51.41 kB / 407 MB, free: 3.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.148e-05/0.5011, allocations: 89.86 kB / 407.1 MB, free: 2.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.5011, allocations: 29.7 kB / 407.1 MB, free: 2.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.692e-05/0.5012, allocations: 150.6 kB / 407.2 MB, free: 2.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.757e-05/0.5012, allocations: 35.45 kB / 407.3 MB, free: 2.734 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-06/0.5013, allocations: 4 kB / 407.3 MB, free: 2.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.5014, allocations: 319 kB / 407.6 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.424e-05/0.5015, allocations: 15.98 kB / 407.6 MB, free: 2.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.9e-05/0.5015, allocations: 16.38 kB / 407.6 MB, free: 2.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.053e-05/0.5016, allocations: 28.05 kB / 407.7 MB, free: 2.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.5016, allocations: 0 / 407.7 MB, free: 2.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001866/0.5018, allocations: 77.64 kB / 407.7 MB, free: 2.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.5018, allocations: 8.625 kB / 407.7 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5019, allocations: 0 / 407.7 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.5019, allocations: 0 / 407.7 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.502, allocations: 15.94 kB / 407.8 MB, free: 2.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.5021, allocations: 0 / 407.8 MB, free: 2.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.692e-05/0.5021, allocations: 19.89 kB / 407.8 MB, free: 2.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.477e-06/0.5021, allocations: 0 / 407.8 MB, free: 2.227 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 () * 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 0.0001002/0.5022, allocations: 113.8 kB / 407.9 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.689e-05/0.5023, allocations: 3.953 kB / 407.9 MB, free: 2.102 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.5025, allocations: 101.5 kB / 408 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.5026, allocations: 0 / 408 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.5026, allocations: 4 kB / 408 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.5026, allocations: 4 kB / 408 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.5028, allocations: 177.5 kB / 408.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.5028, allocations: 0 / 408.2 MB, free: 1.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.5029, allocations: 12 kB / 408.2 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5029, allocations: 3.938 kB / 408.2 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.503, allocations: 11.95 kB / 408.2 MB, free: 1.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.503, allocations: 7.922 kB / 408.2 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.503, allocations: 0 / 408.2 MB, free: 1.734 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.5032, allocations: 101.2 kB / 408.3 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.5033, allocations: 89.02 kB / 408.4 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.684e-05/0.5033, allocations: 3.938 kB / 408.4 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.726e-05/0.5034, allocations: 11.94 kB / 408.4 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/0.5034, allocations: 4 kB / 408.4 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.5034, allocations: 4 kB / 408.4 MB, free: 1.488 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.633e-05/0.5034, allocations: 75.28 kB / 408.5 MB, free: 1.414 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5035, allocations: 0 / 408.5 MB, free: 1.414 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.5038, allocations: 23.94 kB / 408.5 MB, free: 1.391 MB / 330.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.0001876/0.504, allocations: 115.3 kB / 408.6 MB, free: 1.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.5042, allocations: 51.92 kB / 408.7 MB, free: 1.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5042, allocations: 0 / 408.7 MB, free: 1.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.868e-05/0.5043, allocations: 35.92 kB / 408.7 MB, free: 1.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.5044, allocations: 0 / 408.7 MB, free: 1.184 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004296/0.5048, allocations: 172.9 kB / 408.9 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.5052, allocations: 0.6848 MB / 409.6 MB, free: 276 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.224e-05/0.5052, allocations: 15.42 kB / 409.6 MB, free: 260 kB / 330.7 MB Notification: Performance of SimCode: time 3.026e-06/0.5052, allocations: 0 / 409.6 MB, free: 260 kB / 330.7 MB Notification: Performance of Templates: time 0.003051/0.5083, allocations: 0.8223 MB / 410.4 MB, free: 15.43 MB / 346.7 MB