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.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.948/1.948, allocations: 209.4 MB / 217.3 MB, free: 4.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.79e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.264, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1123/0.3764, allocations: 73.38 MB / 393.4 MB, free: 7.062 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.3766, allocations: 67.97 kB / 393.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0387/0.4153, allocations: 8.161 MB / 401.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.379e-06/0.4154, allocations: 0 / 401.6 MB, free: 14.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.827e-06/0.4154, allocations: 0 / 401.6 MB, free: 14.82 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003898/0.4158, allocations: 346.5 kB / 402 MB, free: 14.44 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.4159, allocations: 8.031 kB / 402 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.255e-05/0.4159, allocations: 4 kB / 402 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.4161, allocations: 163.1 kB / 402.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.4161, allocations: 7.891 kB / 402.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.4161, allocations: 3.938 kB / 402.1 MB, free: 14.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.611e-05/0.4162, allocations: 4 kB / 402.1 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.72e-05/0.4163, allocations: 33.7 kB / 402.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.502e-06/0.4163, allocations: 0 / 402.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.825e-06/0.4163, allocations: 0 / 402.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.992e-06/0.4163, allocations: 4 kB / 402.2 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003553/0.4167, allocations: 225.4 kB / 402.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.196e-05/0.4168, allocations: 18.58 kB / 402.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.861e-05/0.4168, allocations: 8.797 kB / 402.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.4168, allocations: 4.062 kB / 402.4 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.4169, allocations: 30.56 kB / 402.5 MB, free: 13.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.102e-06/0.4169, allocations: 4 kB / 402.5 MB, free: 13.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001809/0.4171, allocations: 29.7 kB / 402.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.4171, allocations: 59.39 kB / 402.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.098e-05/0.4172, allocations: 89 kB / 402.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.4172, allocations: 25.7 kB / 402.7 MB, free: 13.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.4173, allocations: 158.5 kB / 402.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.99e-06/0.4174, allocations: 3.906 kB / 402.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-06/0.4174, allocations: 3.938 kB / 402.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.4176, allocations: 319 kB / 403.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.4176, allocations: 0 / 403.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.285e-05/0.4176, allocations: 22.56 kB / 403.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.99e-05/0.4177, allocations: 11.89 kB / 403.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4177, allocations: 0 / 403.2 MB, free: 13.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001238/0.4178, allocations: 45.7 kB / 403.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.4179, allocations: 12.7 kB / 403.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.4179, allocations: 0 / 403.2 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.4179, allocations: 4 kB / 403.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.956e-05/0.418, allocations: 4 kB / 403.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.421e-06/0.418, allocations: 4 kB / 403.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.295e-05/0.418, allocations: 0 / 403.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.418, allocations: 0 / 403.2 MB, free: 13 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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 prepare postOptimizeDAE: time 8.986e-05/0.4181, allocations: 112 kB / 403.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.512e-05/0.4182, allocations: 8.172 kB / 403.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.4183, allocations: 41.44 kB / 403.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.265e-06/0.4184, allocations: 0 / 403.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.352e-06/0.4184, allocations: 4 kB / 403.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4184, allocations: 3.938 kB / 403.4 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001664/0.4186, allocations: 126.2 kB / 403.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.557e-06/0.4186, allocations: 3.984 kB / 403.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.375e-06/0.4186, allocations: 0 / 403.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.023e-06/0.4186, allocations: 7.984 kB / 403.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.922e-06/0.4186, allocations: 11.94 kB / 403.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.795e-06/0.4186, allocations: 0 / 403.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.332e-06/0.4187, allocations: 0 / 403.5 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.4188, allocations: 123.6 kB / 403.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.4189, allocations: 81.09 kB / 403.7 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.4189, allocations: 3.953 kB / 403.7 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.819e-05/0.419, allocations: 0 / 403.7 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.424e-05/0.419, allocations: 8.031 kB / 403.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.557e-06/0.419, allocations: 0 / 403.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.693e-05/0.4191, allocations: 79.28 kB / 403.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.4191, allocations: 0 / 403.8 MB, free: 12.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005023/0.4196, allocations: 51.88 kB / 403.9 MB, free: 12.27 MB / 346.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 (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.0003545/0.42, allocations: 147.2 kB / 404 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.4201, allocations: 33.86 kB / 404.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.78e-06/0.4201, allocations: 8.062 kB / 404.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.456e-05/0.4202, allocations: 29.7 kB / 404.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.4204, allocations: 4 kB / 404.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002157/0.4206, allocations: 81.62 kB / 404.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.421, allocations: 0.6768 MB / 404.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.421, allocations: 11.44 kB / 404.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.386e-06/0.421, allocations: 0 / 404.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of Templates: time 0.003085/0.4241, allocations: 1.011 MB / 405.9 MB, free: 10.19 MB / 346.7 MB