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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.967/1.967, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.216e-05/1.222e-05, allocations: 0 / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2674, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3756, allocations: 72.14 MB / 392.1 MB, free: 8.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.3759, allocations: 59.97 kB / 392.2 MB, free: 8.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00349/0.3794, allocations: 0.9022 MB / 393.1 MB, free: 7.359 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3794, allocations: 0 / 393.1 MB, free: 7.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.3794, allocations: 4 kB / 393.1 MB, free: 7.355 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.0003027/0.3797, allocations: 333.8 kB / 393.4 MB, free: 6.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3798, allocations: 8.25 kB / 393.4 MB, free: 6.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.244e-05/0.3798, allocations: 8 kB / 393.4 MB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.38, allocations: 178.8 kB / 393.6 MB, free: 6.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.38, allocations: 3.953 kB / 393.6 MB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.476e-05/0.3801, allocations: 4 kB / 393.6 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001351/0.3802, allocations: 47.95 kB / 393.7 MB, free: 6.703 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.3803, allocations: 49.62 kB / 393.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.359e-06/0.3803, allocations: 0 / 393.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.522e-06/0.3804, allocations: 0 / 393.7 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.3804, allocations: 4 kB / 393.7 MB, free: 6.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001914/0.3806, allocations: 150.1 kB / 393.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001372/0.3807, allocations: 66.56 kB / 393.9 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.818e-05/0.3808, allocations: 28.86 kB / 394 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000374/0.3812, allocations: 251.3 kB / 394.2 MB, free: 6.055 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.3812, allocations: 34.56 kB / 394.2 MB, free: 6.012 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.152e-06/0.3813, allocations: 0 / 394.2 MB, free: 6.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003212/0.3816, allocations: 81.89 kB / 394.3 MB, free: 5.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.3816, allocations: 55.41 kB / 394.4 MB, free: 5.859 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.146e-05/0.3817, allocations: 89 kB / 394.5 MB, free: 5.766 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.3818, allocations: 25.7 kB / 394.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.874e-05/0.3818, allocations: 150.6 kB / 394.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.226e-05/0.3819, allocations: 35.45 kB / 394.7 MB, free: 5.551 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-06/0.3819, allocations: 0 / 394.7 MB, free: 5.551 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3821, allocations: 310.8 kB / 395 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.972e-05/0.3821, allocations: 16.11 kB / 395 MB, free: 5.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.221e-05/0.3822, allocations: 27.94 kB / 395 MB, free: 5.195 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.3823, allocations: 24.2 kB / 395 MB, free: 5.172 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.336e-06/0.3823, allocations: 0 / 395 MB, free: 5.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002563/0.3826, allocations: 81.61 kB / 395.1 MB, free: 5.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3826, allocations: 8.734 kB / 395.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.917e-06/0.3827, allocations: 0 / 395.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3827, allocations: 0 / 395.1 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3828, allocations: 16 kB / 395.2 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.122e-06/0.3828, allocations: 7.984 kB / 395.2 MB, free: 5.055 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.328e-05/0.3829, allocations: 3.906 kB / 395.2 MB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-06/0.3829, allocations: 4 kB / 395.2 MB, free: 5.047 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 (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 8.777e-05/0.383, allocations: 105 kB / 395.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.383, allocations: 0 / 395.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003059/0.3833, allocations: 105.9 kB / 395.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.979e-06/0.3834, allocations: 0 / 395.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.317e-06/0.3834, allocations: 0 / 395.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.221e-06/0.3834, allocations: 0 / 395.4 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.3835, allocations: 150.1 kB / 395.5 MB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.241e-06/0.3836, allocations: 4 kB / 395.5 MB, free: 4.641 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.202e-05/0.3837, allocations: 23.92 kB / 395.5 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.461e-06/0.3837, allocations: 0 / 395.5 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.302e-06/0.3837, allocations: 0 / 395.5 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.852e-06/0.3837, allocations: 4 kB / 395.5 MB, free: 4.613 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.953e-06/0.3837, allocations: 3.953 kB / 395.6 MB, free: 4.609 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.384, allocations: 109.2 kB / 395.7 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.124e-05/0.3841, allocations: 77.11 kB / 395.7 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3841, allocations: 4 kB / 395.7 MB, free: 4.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.458e-05/0.3841, allocations: 3.984 kB / 395.7 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.178e-05/0.3842, allocations: 8 kB / 395.8 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.3842, allocations: 7.953 kB / 395.8 MB, free: 4.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.128e-05/0.3843, allocations: 75.28 kB / 395.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.3843, allocations: 0 / 395.8 MB, free: 4.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002737/0.3845, allocations: 19.94 kB / 395.9 MB, free: 4.273 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 () * 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.0001762/0.3847, allocations: 111.3 kB / 396 MB, free: 4.156 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001385/0.3849, allocations: 47.94 kB / 396 MB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.69e-06/0.3849, allocations: 0 / 396 MB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.872e-05/0.385, allocations: 31.92 kB / 396 MB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001177/0.3851, allocations: 0 / 396 MB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003223/0.3854, allocations: 118.6 kB / 396.2 MB, free: 3.934 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.3858, allocations: 0.6845 MB / 396.8 MB, free: 3.223 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.891e-05/0.3858, allocations: 11.44 kB / 396.8 MB, free: 3.211 MB / 330.7 MB Notification: Performance of SimCode: time 1.402e-06/0.3859, allocations: 7.938 kB / 396.9 MB, free: 3.203 MB / 330.7 MB Notification: Performance of Templates: time 0.002647/0.3885, allocations: 0.8233 MB / 397.7 MB, free: 2.383 MB / 330.7 MB