Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2173/0.2173, allocations: 44.9 MB / 358.8 MB, free: 6.289 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 63.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3302, allocations: 65.47 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001766/0.332, allocations: 0.529 MB / 0.5575 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004786/0.3325, allocations: 169.8 kB / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.3325, allocations: 1.375 kB / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.957e-05/0.3325, allocations: 0 / 0.5577 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002662/0.3328, allocations: 49.23 kB / 0.5577 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.998e-06/0.3328, allocations: 0 / 0.5577 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.283e-05/0.3329, allocations: 21.34 kB / 0.5578 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.805e-05/0.3329, allocations: 1.438 kB / 0.5578 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.391e-05/0.3329, allocations: 11.56 kB / 0.5578 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.203e-05/0.333, allocations: 16.2 kB / 0.5578 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.333, allocations: 1.469 kB / 0.5578 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.3331, allocations: 47.55 kB / 0.5578 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.3331, allocations: 5.359 kB / 0.5578 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.671e-05/0.3332, allocations: 21.27 kB / 0.5579 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000107/0.3333, allocations: 45.53 kB / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3333, allocations: 0 / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3333, allocations: 0 / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3333, allocations: 0 / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003569/0.3336, allocations: 266.4 kB / 0.5582 GB, free: 6.566 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3337, allocations: 12.03 kB / 0.5582 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.3337, allocations: 30.75 kB / 0.5582 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.644e-05/0.3337, allocations: 4.938 kB / 0.5582 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.3339, allocations: 106.5 kB / 0.5583 GB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.3339, allocations: 12.38 kB / 0.5583 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.3339, allocations: 384 / 0.5583 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.334, allocations: 58.19 kB / 0.5584 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.334, allocations: 3.938 kB / 0.5584 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.334, allocations: 4 kB / 0.5584 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.3341, allocations: 7.984 kB / 0.5584 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.3342, allocations: 51.89 kB / 0.5584 GB, free: 6.242 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001943/0.3344, allocations: 152.6 kB / 0.5586 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.3345, allocations: 82.58 kB / 0.5587 GB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.057e-05/0.3346, allocations: 24.86 kB / 0.5587 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002437/0.3348, allocations: 23.97 kB / 0.5587 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.3348, allocations: 30.56 kB / 0.5587 GB, free: 5.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.3348, allocations: 0 / 0.5587 GB, free: 5.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002385/0.3351, allocations: 109.7 kB / 0.5588 GB, free: 5.758 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.3351, allocations: 55.41 kB / 0.5589 GB, free: 5.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.05e-05/0.3352, allocations: 93.86 kB / 0.559 GB, free: 5.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.3352, allocations: 25.7 kB / 0.559 GB, free: 5.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.918e-05/0.3352, allocations: 80.14 kB / 0.5591 GB, free: 5.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.3353, allocations: 35.69 kB / 0.5591 GB, free: 5.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.042e-05/0.3353, allocations: 25.72 kB / 0.5591 GB, free: 5.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3355, allocations: 314.8 kB / 0.5594 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.457e-05/0.3355, allocations: 15.94 kB / 0.5595 GB, free: 5.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.437e-05/0.3355, allocations: 32.05 kB / 0.5595 GB, free: 5.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.318e-05/0.3356, allocations: 45.42 kB / 0.5595 GB, free: 5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3356, allocations: 0 / 0.5595 GB, free: 5 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001416/0.3358, allocations: 97.5 kB / 0.5596 GB, free: 4.898 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3358, allocations: 7.938 kB / 0.5596 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3358, allocations: 0 / 0.5596 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3358, allocations: 0 / 0.5596 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.3359, allocations: 16 kB / 0.5596 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3359, allocations: 0 / 0.5596 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.511e-05/0.3359, allocations: 0 / 0.5596 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.3359, allocations: 12 kB / 0.5597 GB, free: 4.863 MB / 398.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 (10): * Single equations (assignments): 10 * 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 9.634e-05/0.336, allocations: 117.7 kB / 0.5598 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.3361, allocations: 11.89 kB / 0.5598 GB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001995/0.3363, allocations: 97.52 kB / 0.5599 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3363, allocations: 4 kB / 0.5599 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3363, allocations: 0 / 0.5599 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3363, allocations: 0 / 0.5599 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3364, allocations: 148.7 kB / 0.56 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3364, allocations: 0 / 0.56 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.855e-05/0.3365, allocations: 16 kB / 0.56 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3365, allocations: 3.938 kB / 0.56 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.3365, allocations: 8 kB / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3365, allocations: 0 / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3365, allocations: 0 / 0.56 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001577/0.3367, allocations: 121 kB / 0.5602 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-06/0.3367, allocations: 0 / 0.5602 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/0.3367, allocations: 11.94 kB / 0.5602 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.483e-05/0.3367, allocations: 4.281 kB / 0.5602 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.3367, allocations: 3.984 kB / 0.5602 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.3367, allocations: 4 kB / 0.5602 GB, free: 4.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.3368, allocations: 79.22 kB / 0.5603 GB, free: 4.164 MB / 398.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3368, allocations: 0 / 0.5603 GB, free: 4.164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002061/0.337, allocations: 19.98 kB / 0.5603 GB, free: 4.145 MB / 398.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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0005104/0.3375, allocations: 0.6669 MB / 0.5609 GB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.3376, allocations: 47.98 kB / 0.561 GB, free: 3.402 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3376, allocations: 0 / 0.561 GB, free: 3.402 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.434e-05/0.3377, allocations: 27.92 kB / 0.561 GB, free: 3.375 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001434/0.3378, allocations: 10.23 kB / 0.561 GB, free: 3.367 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004621/0.3383, allocations: 166.6 kB / 0.5612 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.3386, allocations: 0.6846 MB / 0.5618 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.523e-05/0.3386, allocations: 15.7 kB / 0.5619 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.3387, allocations: 15.44 kB / 0.5619 GB, free: 2.422 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3387, allocations: 0 / 0.5619 GB, free: 2.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.3658, allocations: 1.692 MB / 0.5635 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.3, allocations: 11.05 kB / 0.5635 GB, free: 0.8477 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable x2_a in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3 in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3 from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3_a in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3_a from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x2err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x2err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! Error: Could not read variable x3err in file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv. Warning: Get data of variable x3err from file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.223815418001323]