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.0008544/0.0008544, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009268/0.0009268, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8527/0.8527, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.2351/0.2351, allocations: 32.79 MB / 293.5 MB, free: 1.23 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.768e-06/1.101e-05, allocations: 3.547 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0009133/0.0009243, allocations: 0.5221 MB / 440.1 MB, free: 3.758 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002703/0.001195, allocations: 147.5 kB / 440.2 MB, free: 3.613 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.001219, allocations: 0 / 440.2 MB, free: 3.613 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.001233, allocations: 0 / 440.2 MB, free: 3.613 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.001439, allocations: 39.75 kB / 440.3 MB, free: 3.574 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.797e-06/0.001443, allocations: 0 / 440.3 MB, free: 3.574 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.84e-05/0.001501, allocations: 23.92 kB / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.857e-05/0.00154, allocations: 0 / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.711e-05/0.001567, allocations: 11.94 kB / 440.3 MB, free: 3.539 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.78e-05/0.001614, allocations: 15.92 kB / 440.3 MB, free: 3.523 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.001627, allocations: 7.984 kB / 440.3 MB, free: 3.516 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.139e-05/0.001708, allocations: 51.88 kB / 440.4 MB, free: 3.465 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.001719, allocations: 4 kB / 440.4 MB, free: 3.461 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.181e-05/0.001731, allocations: 3.938 kB / 440.4 MB, free: 3.457 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 9.249e-05/0.001823, allocations: 47.86 kB / 440.4 MB, free: 3.41 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.001825, allocations: 0 / 440.4 MB, free: 3.41 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.001826, allocations: 4 kB / 440.4 MB, free: 3.406 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.546e-06/0.001829, allocations: 0 / 440.4 MB, free: 3.406 MB / 410.7 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.0004754/0.002305, allocations: 264.5 kB / 440.7 MB, free: 3.117 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.002339, allocations: 12.03 kB / 440.7 MB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.177e-05/0.002371, allocations: 42.62 kB / 440.8 MB, free: 3.055 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.053e-05/0.002391, allocations: 4.938 kB / 440.8 MB, free: 3.051 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.921e-05/0.002461, allocations: 109.7 kB / 440.9 MB, free: 2.918 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.00247, allocations: 4.375 kB / 440.9 MB, free: 2.914 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.258e-06/0.00248, allocations: 8.375 kB / 440.9 MB, free: 2.906 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.00258, allocations: 54.19 kB / 440.9 MB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.002586, allocations: 192 / 440.9 MB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.002595, allocations: 4.375 kB / 440.9 MB, free: 2.844 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.002601, allocations: 8.062 kB / 440.9 MB, free: 2.836 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.792e-05/0.002679, allocations: 55.94 kB / 441 MB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.002797, allocations: 136.7 kB / 441.1 MB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.002907, allocations: 74.55 kB / 441.2 MB, free: 2.523 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.668e-05/0.002944, allocations: 29.12 kB / 441.2 MB, free: 2.492 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001727/0.003117, allocations: 27.92 kB / 441.3 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.003135, allocations: 30.56 kB / 441.3 MB, free: 2.426 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 7.81e-07/0.003136, allocations: 0 / 441.3 MB, free: 2.426 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001749/0.003311, allocations: 101.6 kB / 441.4 MB, free: 2.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.00334, allocations: 59.34 kB / 441.4 MB, free: 2.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.792e-05/0.003388, allocations: 93.86 kB / 441.5 MB, free: 2.148 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.003399, allocations: 29.7 kB / 441.6 MB, free: 2.113 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.788e-05/0.003417, allocations: 80.14 kB / 441.6 MB, free: 2.031 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.00345, allocations: 39.67 kB / 441.7 MB, free: 1.992 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.003477, allocations: 21.72 kB / 441.7 MB, free: 1.965 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.836e-05/0.003546, allocations: 318.8 kB / 442 MB, free: 1.645 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.278e-05/0.003568, allocations: 16 kB / 442 MB, free: 1.629 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.218e-05/0.003591, allocations: 19.98 kB / 442.1 MB, free: 1.609 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.876e-05/0.003649, allocations: 53.3 kB / 442.1 MB, free: 1.555 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.003651, allocations: 0 / 442.1 MB, free: 1.555 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.02e-05/0.003731, allocations: 93.69 kB / 442.2 MB, free: 1.457 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.003741, allocations: 8 kB / 442.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.003745, allocations: 0 / 442.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.003755, allocations: 0 / 442.2 MB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.276e-05/0.003827, allocations: 19.94 kB / 442.2 MB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.003832, allocations: 0 / 442.2 MB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.343e-05/0.003846, allocations: 4 kB / 442.2 MB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.003851, allocations: 7.922 kB / 442.2 MB, free: 1.418 MB / 410.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 (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 4.938e-05/0.003901, allocations: 113.8 kB / 442.3 MB, free: 1.297 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.072e-06/0.003907, allocations: 7.953 kB / 442.4 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/0.00403, allocations: 109.6 kB / 442.5 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.004032, allocations: 0 / 442.5 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.004037, allocations: 7.938 kB / 442.5 MB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-06/0.00404, allocations: 0 / 442.5 MB, free: 1.164 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.255e-05/0.004112, allocations: 136.7 kB / 442.6 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.004113, allocations: 4 kB / 442.6 MB, free: 0.9844 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.004146, allocations: 19.92 kB / 442.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.004147, allocations: 0 / 442.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.261e-06/0.004153, allocations: 0 / 442.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.004154, allocations: 0 / 442.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.004156, allocations: 7.938 kB / 442.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.846e-05/0.004244, allocations: 121.1 kB / 442.8 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-06/0.00425, allocations: 7.984 kB / 442.8 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.207e-06/0.00426, allocations: 0 / 442.8 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.047e-05/0.00427, allocations: 4 kB / 442.8 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.502e-05/0.004285, allocations: 7.922 kB / 442.8 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.004289, allocations: 8 kB / 442.8 MB, free: 0.793 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.209e-05/0.004312, allocations: 75.28 kB / 442.9 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.004312, allocations: 0 / 442.9 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001345/0.004446, allocations: 15.94 kB / 442.9 MB, free: 0.7031 MB / 410.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 (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.0002715/0.004718, allocations: 0.658 MB / 443.5 MB, free: 16 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1523/0.157, allocations: 51.45 kB / 443.6 MB, free: 46.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.157, allocations: 2.906 kB / 443.6 MB, free: 46.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.93e-05/0.157, allocations: 23.66 kB / 443.6 MB, free: 46.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001182/0.1571, allocations: 9.125 kB / 443.6 MB, free: 46.01 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.1575, allocations: 173 kB / 443.8 MB, free: 45.87 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.784e-05/0.1575, allocations: 68.77 kB / 443.8 MB, free: 45.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.039e-05/0.1575, allocations: 9.391 kB / 443.9 MB, free: 45.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.915e-05/0.1576, allocations: 17.66 kB / 443.9 MB, free: 45.8 MB / 410.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1576, allocations: 0 / 443.9 MB, free: 45.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.17, allocations: 2.208 MB / 446.1 MB, free: 44.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.272, allocations: 7.672 kB / 446.1 MB, free: 44.97 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/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: 9.27536853402853]