Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 105.5 kB / 16.41 MB, free: 6.465 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.001373/0.001373, allocations: 185.5 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.26/1.26, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.1824/0.1824, allocations: 43.52 MB / 314.1 MB, free: 452 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.001381/0.001381, allocations: 69.62 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09764, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001647/0.09933, allocations: 0.5064 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1011, allocations: 1.385 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.542e-05/0.1012, allocations: 3.938 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.1012, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.334e-05/0.1012, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006774/0.1019, allocations: 219.9 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.852e-05/0.102, allocations: 15.92 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.536e-05/0.102, allocations: 4 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.591e-05/0.102, allocations: 0 / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.636e-05/0.1021, allocations: 11.92 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.1021, allocations: 0 / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004078/0.1025, allocations: 271.6 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.1025, allocations: 8 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.912e-05/0.1026, allocations: 4 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.1028, allocations: 139.6 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1028, allocations: 0 / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1028, allocations: 0 / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1028, allocations: 8 kB / 0.4899 GB, free: 9.734 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003223/0.1031, allocations: 339.3 kB / 0.4902 GB, free: 9.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1032, allocations: 15.89 kB / 0.4902 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.39e-05/0.1032, allocations: 30.75 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.1033, allocations: 0.9375 kB / 0.4903 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.831e-05/0.1034, allocations: 168.3 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.1034, allocations: 4.375 kB / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.1034, allocations: 384 / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.1035, allocations: 49.75 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.1035, allocations: 0 / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.1035, allocations: 0 / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.1035, allocations: 4 kB / 0.4905 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.126e-05/0.1036, allocations: 11.94 kB / 0.4905 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003335/0.1039, allocations: 240.9 kB / 0.4907 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.357e-05/0.104, allocations: 14.58 kB / 0.4907 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.954e-05/0.104, allocations: 8.859 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.104, allocations: 4.062 kB / 0.4907 GB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.104, allocations: 30.56 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.104, allocations: 0 / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001364/0.1042, allocations: 37.64 kB / 0.4908 GB, free: 8.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.1042, allocations: 59.39 kB / 0.4909 GB, free: 8.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.912e-05/0.1043, allocations: 89.86 kB / 0.4909 GB, free: 8.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1043, allocations: 25.95 kB / 0.491 GB, free: 8.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.1044, allocations: 96.09 kB / 0.4911 GB, free: 8.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.322e-06/0.1044, allocations: 3.953 kB / 0.4911 GB, free: 8.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.96e-05/0.1044, allocations: 13.72 kB / 0.4911 GB, free: 8.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1045, allocations: 318.8 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.2e-05/0.1045, allocations: 4 kB / 0.4914 GB, free: 7.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.464e-05/0.1046, allocations: 22.56 kB / 0.4914 GB, free: 7.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.766e-05/0.1046, allocations: 34.52 kB / 0.4914 GB, free: 7.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1046, allocations: 0 / 0.4914 GB, free: 7.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.401e-05/0.1047, allocations: 45.62 kB / 0.4915 GB, free: 7.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.1047, allocations: 4 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.1047, allocations: 4 kB / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.1048, allocations: 0 / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.638e-05/0.1048, allocations: 8.094 kB / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.1048, allocations: 7.922 kB / 0.4915 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/0.1048, allocations: 8 kB / 0.4915 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.129e-06/0.1048, allocations: 0 / 0.4915 GB, free: 7.816 MB / 382.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.55e-05/0.1049, allocations: 117.7 kB / 0.4916 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.1049, allocations: 3.938 kB / 0.4916 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.581e-05/0.105, allocations: 48.81 kB / 0.4917 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1051, allocations: 0 / 0.4917 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.1051, allocations: 0 / 0.4917 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1051, allocations: 0 / 0.4917 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.1052, allocations: 153.6 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1052, allocations: 0 / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1052, allocations: 0 / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1052, allocations: 0 / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.1052, allocations: 3.984 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1052, allocations: 7.938 kB / 0.4918 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1052, allocations: 0 / 0.4918 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.514e-05/0.1053, allocations: 143.4 kB / 0.492 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.1054, allocations: 77.11 kB / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.1054, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.105e-05/0.1055, allocations: 3.984 kB / 0.492 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.546e-06/0.1055, allocations: 0 / 0.492 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-06/0.1055, allocations: 4 kB / 0.492 GB, free: 7.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.805e-05/0.1055, allocations: 79.31 kB / 0.4921 GB, free: 7.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1055, allocations: 0 / 0.4921 GB, free: 7.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002979/0.1058, allocations: 43.94 kB / 0.4922 GB, free: 7.039 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.0004543/0.1063, allocations: 0.7045 MB / 0.4929 GB, free: 6.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.258e-05/0.1064, allocations: 16.12 kB / 0.4929 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1064, allocations: 0 / 0.4929 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.697e-05/0.1064, allocations: 29.7 kB / 0.4929 GB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.1066, allocations: 8 kB / 0.4929 GB, free: 6.246 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003762/0.107, allocations: 126.4 kB / 0.493 GB, free: 6.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1072, allocations: 0.6806 MB / 0.4937 GB, free: 5.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.314e-05/0.1072, allocations: 3.938 kB / 0.4937 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.292e-05/0.1073, allocations: 11.62 kB / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1073, allocations: 0 / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0167/0.124, allocations: 1.831 MB / 0.4955 GB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.152/7.276, allocations: 15.8 kB / 0.4955 GB, free: 3.508 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches