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.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.855/1.855, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004368, allocations: 12 kB / 282.5 MB, free: 9.785 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.086/0.08646, allocations: 48.72 MB / 331.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.000581/0.08709, allocations: 224.6 kB / 331.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.0892, allocations: 1.318 MB / 332.7 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.434e-05/0.08925, allocations: 0 / 332.7 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.72e-06/0.08927, allocations: 3.938 kB / 332.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.42e-05/0.08932, allocations: 0 / 332.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.09, allocations: 143.6 kB / 332.9 MB, free: 7.277 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.24e-05/0.09005, allocations: 8 kB / 332.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.255e-05/0.09009, allocations: 0 / 332.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.821e-05/0.09012, allocations: 0 / 332.9 MB, free: 7.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.332e-05/0.09017, allocations: 11.92 kB / 332.9 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.0902, allocations: 0 / 332.9 MB, free: 7.258 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004974/0.0907, allocations: 255.6 kB / 333.1 MB, free: 7.008 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.09073, allocations: 0 / 333.1 MB, free: 7.008 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.099e-05/0.09078, allocations: 29.7 kB / 333.2 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001726/0.09096, allocations: 83.81 kB / 333.3 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.698e-06/0.09097, allocations: 0 / 333.3 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.187e-06/0.09099, allocations: 8 kB / 333.3 MB, free: 6.883 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.557e-06/0.09101, allocations: 0 / 333.3 MB, free: 6.883 MB / 282.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.0003926/0.09141, allocations: 327.4 kB / 333.6 MB, free: 6.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.09146, allocations: 8.031 kB / 333.6 MB, free: 6.508 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.0915, allocations: 0 / 333.6 MB, free: 6.508 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.09166, allocations: 171 kB / 333.8 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.09169, allocations: 0 / 333.8 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.226e-05/0.09171, allocations: 0 / 333.8 MB, free: 6.301 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.09182, allocations: 33.7 kB / 333.8 MB, free: 6.262 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.038e-06/0.09184, allocations: 4 kB / 333.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.09186, allocations: 0 / 333.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.392e-06/0.09188, allocations: 0 / 333.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.762e-05/0.09191, allocations: 7.938 kB / 333.8 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.0921, allocations: 149.6 kB / 333.9 MB, free: 6.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.708e-05/0.09216, allocations: 22.61 kB / 334 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.526e-06/0.09218, allocations: 0 / 334 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.09222, allocations: 34.56 kB / 334 MB, free: 5.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.825e-06/0.09223, allocations: 0 / 334 MB, free: 5.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.09239, allocations: 41.69 kB / 334 MB, free: 5.934 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.09245, allocations: 51.41 kB / 334.1 MB, free: 5.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.518e-05/0.09254, allocations: 97.86 kB / 334.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.09258, allocations: 25.7 kB / 334.2 MB, free: 5.734 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/0.09266, allocations: 150.6 kB / 334.4 MB, free: 5.586 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.0927, allocations: 4.156 kB / 334.4 MB, free: 5.582 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-06/0.09271, allocations: 4 kB / 334.4 MB, free: 5.578 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.09288, allocations: 322.7 kB / 334.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.263e-05/0.09291, allocations: 0 / 334.7 MB, free: 5.254 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.923e-06/0.09293, allocations: 4 kB / 334.7 MB, free: 5.25 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.872e-05/0.09296, allocations: 3.984 kB / 334.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.09297, allocations: 0 / 334.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.714e-05/0.09306, allocations: 37.64 kB / 334.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.09309, allocations: 7.438 kB / 334.7 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.09311, allocations: 4.094 kB / 334.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.09313, allocations: 0 / 334.7 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.111e-05/0.0932, allocations: 4 kB / 334.7 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.09322, allocations: 0 / 334.7 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.29e-05/0.09325, allocations: 8 kB / 334.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.478e-06/0.09327, allocations: 0 / 334.7 MB, free: 5.184 MB / 282.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.734e-05/0.09337, allocations: 117.8 kB / 334.9 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.0934, allocations: 0 / 334.9 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001392/0.09354, allocations: 40.83 kB / 334.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.943e-06/0.09356, allocations: 0 / 334.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.825e-06/0.09358, allocations: 3.984 kB / 334.9 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.444e-06/0.09359, allocations: 0 / 334.9 MB, free: 5.008 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.09374, allocations: 157.6 kB / 335.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.922e-06/0.09376, allocations: 0 / 335.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.24e-06/0.09377, allocations: 0 / 335.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.714e-06/0.09378, allocations: 0 / 335.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.0938, allocations: 12 kB / 335.1 MB, free: 4.793 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.09381, allocations: 4 kB / 335.1 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.09382, allocations: 0 / 335.1 MB, free: 4.789 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.09393, allocations: 57.14 kB / 335.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.488e-05/0.094, allocations: 81.06 kB / 335.2 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.09402, allocations: 0 / 335.2 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.985e-05/0.09411, allocations: 7.984 kB / 335.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.924e-05/0.09415, allocations: 4.031 kB / 335.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.613e-06/0.09416, allocations: 0 / 335.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.214e-05/0.09422, allocations: 79.28 kB / 335.3 MB, free: 4.527 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.79e-07/0.09423, allocations: 0 / 335.3 MB, free: 4.527 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003366/0.09458, allocations: 36 kB / 335.3 MB, free: 4.492 MB / 282.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.0003388/0.09493, allocations: 147.4 kB / 335.5 MB, free: 4.336 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.17e-05/0.09502, allocations: 7.938 kB / 335.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.103e-06/0.09504, allocations: 4.156 kB / 335.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-05/0.09509, allocations: 29.7 kB / 335.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.09522, allocations: 3.609 kB / 335.5 MB, free: 4.289 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002467/0.09548, allocations: 116.4 kB / 335.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.09585, allocations: 0.6809 MB / 336.3 MB, free: 3.434 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.7e-05/0.09588, allocations: 7.438 kB / 336.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of SimCode: time 1.315e-06/0.09589, allocations: 0 / 336.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of Templates: time 0.002918/0.09882, allocations: 0.9952 MB / 337.3 MB, free: 2.43 MB / 282.7 MB