Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 119.4 kB / 17.09 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002411/0.002411, allocations: 193.3 kB / 18.01 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.591/2.591, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4063/0.4063, allocations: 43.53 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002482/0.002482, allocations: 63.91 kB / 442.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1886, allocations: 57.8 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.003128/0.1918, allocations: 0.4902 MB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003654/0.1955, allocations: 1.39 MB / 0.4904 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.636e-05/0.1956, allocations: 4 kB / 0.4904 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.915e-05/0.1957, allocations: 0 / 0.4904 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.226e-05/0.1958, allocations: 0 / 0.4904 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.1972, allocations: 219.9 kB / 0.4906 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.527e-05/0.1973, allocations: 4 kB / 0.4906 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.791e-05/0.1974, allocations: 8 kB / 0.4906 GB, free: 9.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.03e-05/0.1974, allocations: 3.984 kB / 0.4906 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.356e-05/0.1975, allocations: 11.92 kB / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.1976, allocations: 0 / 0.4906 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008665/0.1984, allocations: 275.6 kB / 0.4909 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.433e-05/0.1985, allocations: 3.984 kB / 0.4909 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.579e-05/0.1985, allocations: 8 kB / 0.4909 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004341/0.199, allocations: 135.7 kB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.083e-05/0.199, allocations: 3.984 kB / 0.491 GB, free: 9.246 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.199, allocations: 0 / 0.491 GB, free: 9.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.199, allocations: 0 / 0.491 GB, free: 9.246 MB / 382.1 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.0006947/0.1998, allocations: 346.8 kB / 0.4913 GB, free: 8.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.1998, allocations: 11.89 kB / 0.4913 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.775e-05/0.1999, allocations: 8.938 kB / 0.4914 GB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.2001, allocations: 164.4 kB / 0.4915 GB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.2002, allocations: 4.312 kB / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.2002, allocations: 384 / 0.4915 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.2004, allocations: 37.95 kB / 0.4916 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.2004, allocations: 0 / 0.4916 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.2004, allocations: 3.984 kB / 0.4916 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.2005, allocations: 0 / 0.4916 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.49e-05/0.2005, allocations: 4 kB / 0.4916 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002848/0.2008, allocations: 149.7 kB / 0.4917 GB, free: 8.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.602e-05/0.2009, allocations: 18.61 kB / 0.4917 GB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.738e-05/0.201, allocations: 8.844 kB / 0.4917 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.201, allocations: 0 / 0.4917 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.263e-05/0.2011, allocations: 42.5 kB / 0.4918 GB, free: 8.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.625e-06/0.2011, allocations: 0 / 0.4918 GB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002411/0.2014, allocations: 29.8 kB / 0.4918 GB, free: 8.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.2014, allocations: 63.44 kB / 0.4919 GB, free: 8.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.2016, allocations: 89.86 kB / 0.4919 GB, free: 8.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.2016, allocations: 25.7 kB / 0.492 GB, free: 8.066 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.2017, allocations: 88.12 kB / 0.4921 GB, free: 7.977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/0.2018, allocations: 3.906 kB / 0.4921 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/0.2018, allocations: 9.719 kB / 0.4921 GB, free: 7.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.202, allocations: 314.8 kB / 0.4924 GB, free: 7.641 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.166e-05/0.2021, allocations: 8.125 kB / 0.4924 GB, free: 7.633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.841e-05/0.2021, allocations: 4 kB / 0.4924 GB, free: 7.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.202e-05/0.2021, allocations: 12.8 kB / 0.4924 GB, free: 7.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.2022, allocations: 0 / 0.4924 GB, free: 7.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001134/0.2023, allocations: 37.69 kB / 0.4924 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.2023, allocations: 7.938 kB / 0.4924 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.2023, allocations: 0 / 0.4924 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.2024, allocations: 0 / 0.4924 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.2025, allocations: 4.094 kB / 0.4924 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2025, allocations: 4 kB / 0.4924 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.2026, allocations: 0 / 0.4924 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2026, allocations: 3.938 kB / 0.4924 GB, free: 7.551 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001459/0.2027, allocations: 117.8 kB / 0.4926 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.2028, allocations: 3.938 kB / 0.4926 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.203, allocations: 48.75 kB / 0.4926 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.203, allocations: 0 / 0.4926 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.203, allocations: 0 / 0.4926 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.203, allocations: 3.984 kB / 0.4926 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.2033, allocations: 153.7 kB / 0.4928 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/0.2033, allocations: 0 / 0.4928 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.643e-06/0.2033, allocations: 0 / 0.4928 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.2033, allocations: 7.875 kB / 0.4928 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.2034, allocations: 4 kB / 0.4928 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2034, allocations: 0 / 0.4928 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2034, allocations: 0 / 0.4928 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001464/0.2035, allocations: 69.09 kB / 0.4928 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.601e-05/0.2036, allocations: 81.05 kB / 0.4929 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.2037, allocations: 0 / 0.4929 GB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.2038, allocations: 4 kB / 0.4929 GB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.2038, allocations: 3.984 kB / 0.4929 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.697e-06/0.2039, allocations: 0 / 0.4929 GB, free: 6.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.2039, allocations: 83.31 kB / 0.493 GB, free: 6.875 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.204, allocations: 0 / 0.493 GB, free: 6.875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004952/0.2045, allocations: 32 kB / 0.493 GB, free: 6.844 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004742/0.2049, allocations: 143.2 kB / 0.4932 GB, free: 6.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.2051, allocations: 4 kB / 0.4932 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2051, allocations: 0 / 0.4932 GB, free: 6.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.338e-05/0.2052, allocations: 29.7 kB / 0.4932 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.2054, allocations: 224 / 0.4932 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003814/0.2058, allocations: 130.5 kB / 0.4933 GB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003846/0.2062, allocations: 0.669 MB / 0.494 GB, free: 5.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.2062, allocations: 7.438 kB / 0.494 GB, free: 5.789 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2063, allocations: 4 kB / 0.494 GB, free: 5.785 MB / 382.1 MB Notification: Performance of Templates: time 0.004023/0.2103, allocations: 0.9012 MB / 0.4949 GB, free: 4.883 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches