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.001803/0.001803, allocations: 110.4 kB / 16.4 MB, free: 6.367 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.001716/0.001716, allocations: 198.7 kB / 17.34 MB, free: 5.844 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.415/1.415, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2192/0.2192, allocations: 43.51 MB / 314.1 MB, free: 456 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.0021/0.0021, allocations: 69.92 kB / 441.3 MB, free: 6.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1057, allocations: 57.8 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001615/0.1073, allocations: 0.491 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.1093, allocations: 1.393 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.305e-05/0.1094, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.559e-05/0.1094, allocations: 3.938 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.77e-05/0.1094, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.1102, allocations: 220 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.726e-05/0.1102, allocations: 15.92 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.1103, allocations: 0 / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.844e-05/0.1103, allocations: 4 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.143e-05/0.1104, allocations: 7.938 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.1104, allocations: 0 / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.1109, allocations: 271.6 kB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.058e-05/0.1109, allocations: 7.984 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.323e-05/0.1109, allocations: 8 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.1112, allocations: 139.6 kB / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1112, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1112, allocations: 0 / 0.4899 GB, free: 9.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1112, allocations: 0 / 0.4899 GB, free: 9.746 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.0004251/0.1116, allocations: 343.3 kB / 0.4902 GB, free: 9.363 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1117, allocations: 15.89 kB / 0.4902 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.1117, allocations: 34.69 kB / 0.4902 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.1117, allocations: 4.938 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.1119, allocations: 168.3 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.1119, allocations: 384 / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.1119, allocations: 4.375 kB / 0.4904 GB, free: 9.094 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.112, allocations: 37.83 kB / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1121, allocations: 0 / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1121, allocations: 0 / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.1121, allocations: 11.94 kB / 0.4905 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.59e-05/0.1121, allocations: 7.984 kB / 0.4905 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003857/0.1125, allocations: 244.8 kB / 0.4907 GB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.173e-05/0.1126, allocations: 18.61 kB / 0.4907 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.1126, allocations: 4.859 kB / 0.4907 GB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1126, allocations: 4.062 kB / 0.4907 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.1127, allocations: 34.56 kB / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/0.1127, allocations: 0 / 0.4908 GB, free: 8.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001637/0.1128, allocations: 37.64 kB / 0.4908 GB, free: 8.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.005e-05/0.1129, allocations: 55.41 kB / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.113, allocations: 93.84 kB / 0.4909 GB, free: 8.449 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.113, allocations: 25.7 kB / 0.491 GB, free: 8.418 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.724e-05/0.1131, allocations: 92.09 kB / 0.491 GB, free: 8.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.984e-06/0.1131, allocations: 8.203 kB / 0.4911 GB, free: 8.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.1131, allocations: 13.72 kB / 0.4911 GB, free: 8.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1133, allocations: 314.8 kB / 0.4914 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/0.1133, allocations: 3.984 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.948e-05/0.1133, allocations: 22.58 kB / 0.4914 GB, free: 7.945 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.156e-05/0.1134, allocations: 30.52 kB / 0.4914 GB, free: 7.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1134, allocations: 0 / 0.4914 GB, free: 7.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.484e-05/0.1135, allocations: 49.62 kB / 0.4915 GB, free: 7.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1135, allocations: 4 kB / 0.4915 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.1135, allocations: 4 kB / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1135, allocations: 0 / 0.4915 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.175e-05/0.1136, allocations: 4 kB / 0.4915 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.1136, allocations: 3.938 kB / 0.4915 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.901e-05/0.1136, allocations: 8.094 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.1136, allocations: 0 / 0.4915 GB, free: 7.828 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 0.0001014/0.1137, allocations: 125.7 kB / 0.4916 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.028e-05/0.1138, allocations: 0 / 0.4916 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.1139, allocations: 40.86 kB / 0.4917 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1139, allocations: 3.984 kB / 0.4917 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1139, allocations: 4.031 kB / 0.4917 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1139, allocations: 0 / 0.4917 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.1141, allocations: 157.6 kB / 0.4918 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1141, allocations: 0 / 0.4918 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-07/0.1141, allocations: 0 / 0.4918 GB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.1141, allocations: 4 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.1141, allocations: 0 / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1142, allocations: 4 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1142, allocations: 0 / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001226/0.1143, allocations: 147.4 kB / 0.492 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.1143, allocations: 81.05 kB / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.1144, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.328e-05/0.1144, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.08e-05/0.1144, allocations: 0 / 0.492 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.1144, allocations: 7.984 kB / 0.492 GB, free: 7.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.939e-05/0.1145, allocations: 75.28 kB / 0.4921 GB, free: 7.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1145, allocations: 0 / 0.4921 GB, free: 7.086 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00029/0.1148, allocations: 40.06 kB / 0.4922 GB, free: 7.047 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.0005801/0.1154, allocations: 0.7045 MB / 0.4928 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.793e-05/0.1155, allocations: 15.92 kB / 0.4929 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1155, allocations: 0 / 0.4929 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.1155, allocations: 33.92 kB / 0.4929 GB, free: 6.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.1157, allocations: 11.61 kB / 0.4929 GB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.1161, allocations: 126.4 kB / 0.493 GB, free: 6.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.1164, allocations: 0.669 MB / 0.4937 GB, free: 5.391 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.415e-05/0.1165, allocations: 7.938 kB / 0.4937 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.679e-05/0.1165, allocations: 15.42 kB / 0.4937 GB, free: 5.367 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1165, allocations: 3.938 kB / 0.4937 GB, free: 5.363 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02217/0.1387, allocations: 1.839 MB / 0.4955 GB, free: 3.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/7.796, allocations: 12.05 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