Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004397/0.0004399, allocations: 12 kB / 314.3 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2764, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0006069/0.2771, allocations: 232.2 kB / 369.4 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002189/0.2793, allocations: 1.328 MB / 370.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.292e-05/0.2793, allocations: 0 / 370.7 MB, free: 9.141 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.2794, allocations: 4 kB / 370.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 2.863e-05/0.2794, allocations: 0 / 370.7 MB, free: 9.137 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006864/0.2801, allocations: 151.6 kB / 370.9 MB, free: 8.988 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.327e-05/0.2801, allocations: 4 kB / 370.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.783e-05/0.2802, allocations: 0 / 370.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.561e-05/0.2802, allocations: 0 / 370.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.075e-05/0.2803, allocations: 7.984 kB / 370.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.2803, allocations: 0 / 370.9 MB, free: 8.977 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004888/0.2808, allocations: 255.6 kB / 371.1 MB, free: 8.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.2808, allocations: 4 kB / 371.1 MB, free: 8.723 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.847e-05/0.2809, allocations: 29.7 kB / 371.2 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001795/0.2811, allocations: 83.81 kB / 371.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2811, allocations: 4 kB / 371.3 MB, free: 8.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.217e-06/0.2811, allocations: 3.938 kB / 371.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.515e-06/0.2811, allocations: 0 / 371.3 MB, free: 8.598 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003917/0.2815, allocations: 331.3 kB / 371.6 MB, free: 8.227 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2816, allocations: 8.031 kB / 371.6 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.504e-05/0.2816, allocations: 4 kB / 371.6 MB, free: 8.215 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001438/0.2818, allocations: 167.1 kB / 371.8 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.2818, allocations: 4 kB / 371.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.43e-05/0.2818, allocations: 0 / 371.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.468e-05/0.2819, allocations: 37.64 kB / 371.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.2819, allocations: 0 / 371.8 MB, free: 7.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.282, allocations: 3.953 kB / 371.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-06/0.282, allocations: 0 / 371.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.533e-05/0.282, allocations: 4 kB / 371.8 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.2822, allocations: 145.7 kB / 372 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.808e-05/0.2822, allocations: 26.61 kB / 372 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.856e-06/0.2823, allocations: 0 / 372 MB, free: 7.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.2823, allocations: 38.48 kB / 372 MB, free: 7.684 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.767e-06/0.2823, allocations: 0 / 372 MB, free: 7.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.2825, allocations: 37.75 kB / 372.1 MB, free: 7.641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.2825, allocations: 55.36 kB / 372.1 MB, free: 7.574 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.328e-05/0.2826, allocations: 98.08 kB / 372.2 MB, free: 7.469 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.2827, allocations: 29.73 kB / 372.2 MB, free: 7.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/0.2828, allocations: 150.6 kB / 372.4 MB, free: 7.285 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.145e-05/0.2828, allocations: 3.938 kB / 372.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-06/0.2828, allocations: 0 / 372.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.283, allocations: 310.8 kB / 372.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.423e-05/0.283, allocations: 0 / 372.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.412e-05/0.283, allocations: 11.92 kB / 372.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.829e-05/0.2831, allocations: 0 / 372.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-06/0.2831, allocations: 4.062 kB / 372.7 MB, free: 6.953 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.559e-05/0.2832, allocations: 37.7 kB / 372.7 MB, free: 6.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2832, allocations: 4 kB / 372.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.752e-06/0.2832, allocations: 0 / 372.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.2833, allocations: 0 / 372.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.773e-05/0.2833, allocations: 4 kB / 372.8 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.921e-06/0.2833, allocations: 3.938 kB / 372.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.098e-05/0.2834, allocations: 3.953 kB / 372.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.975e-06/0.2834, allocations: 3.984 kB / 372.8 MB, free: 6.891 MB / 298.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 (1): * Single equations (assignments): 1 * 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 9.395e-05/0.2835, allocations: 113.9 kB / 372.9 MB, free: 6.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.2835, allocations: 3.906 kB / 372.9 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001428/0.2837, allocations: 44.77 kB / 372.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.056e-06/0.2837, allocations: 3.984 kB / 372.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.762e-06/0.2837, allocations: 0 / 372.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.108e-06/0.2837, allocations: 0 / 372.9 MB, free: 6.715 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.2839, allocations: 149.6 kB / 373.1 MB, free: 6.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.2839, allocations: 4.031 kB / 373.1 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.355e-06/0.2839, allocations: 0 / 373.1 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.097e-06/0.2839, allocations: 3.984 kB / 373.1 MB, free: 6.512 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.586e-06/0.2839, allocations: 4 kB / 373.1 MB, free: 6.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.873e-06/0.2839, allocations: 3.984 kB / 373.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-06/0.284, allocations: 0 / 373.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.2841, allocations: 65.03 kB / 373.2 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.963e-05/0.2841, allocations: 81.14 kB / 373.2 MB, free: 6.324 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.2842, allocations: 7.984 kB / 373.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.776e-05/0.2842, allocations: 4 kB / 373.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.2843, allocations: 0 / 373.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.2843, allocations: 0 / 373.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.182e-05/0.2843, allocations: 79.28 kB / 373.3 MB, free: 6.234 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.37e-07/0.2844, allocations: 0 / 373.3 MB, free: 6.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003279/0.2847, allocations: 36 kB / 373.4 MB, free: 6.199 MB / 298.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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003553/0.2851, allocations: 148 kB / 373.5 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.3e-05/0.2852, allocations: 4 kB / 373.5 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.957e-06/0.2852, allocations: 0 / 373.5 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.813e-05/0.2852, allocations: 29.7 kB / 373.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.2854, allocations: 7.891 kB / 373.5 MB, free: 6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.2857, allocations: 124.3 kB / 373.7 MB, free: 5.848 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.286, allocations: 0.677 MB / 374.3 MB, free: 5.145 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.2861, allocations: 11.56 kB / 374.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of SimCode: time 1.442e-06/0.2861, allocations: 0 / 374.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of Templates: time 0.003001/0.2891, allocations: 0.9855 MB / 375.3 MB, free: 4.148 MB / 298.7 MB