Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 111.5 kB / 16.41 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 222.9 MB / 245.1 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8757/0.8757, allocations: 93.73 MB / 390.9 MB, free: 4.625 MB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002332/0.002332, allocations: 83.08 kB / 0.5285 GB, free: 40.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1667, allocations: 68.27 MB / 0.5952 GB, free: 8.125 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05776/0.2245, allocations: 53.27 MB / 0.6472 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.03207/0.2566, allocations: 21.57 MB / 0.6682 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002536/0.2592, allocations: 75.5 kB / 0.6683 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.003059/0.2623, allocations: 0.8925 MB / 0.6692 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005865/0.2683, allocations: 1.7 MB / 0.6708 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004783/0.2731, allocations: 1.327 MB / 0.6721 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004864/0.2779, allocations: 2.563 MB / 0.6746 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009841/0.2789, allocations: 498 kB / 0.6751 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.2816, allocations: 1.046 MB / 0.6761 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.2832, allocations: 0.9367 MB / 0.6771 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002558/0.2835, allocations: 128 kB / 0.6772 GB, free: 3.797 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005373/0.2889, allocations: 1.249 MB / 0.6784 GB, free: 2.547 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004357/0.2893, allocations: 338.4 kB / 0.6787 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.2905, allocations: 0.901 MB / 0.6796 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.007231/0.2977, allocations: 2.689 MB / 0.6822 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.2978, allocations: 0 / 0.6822 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2978, allocations: 4 kB / 0.6822 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.413e-05/0.2978, allocations: 0 / 0.6822 GB, free: 14.61 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.005499/0.3033, allocations: 2.421 MB / 0.6846 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.3034, allocations: 12.03 kB / 0.6846 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/0.3036, allocations: 169.2 kB / 0.6848 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003911/0.304, allocations: 230.5 kB / 0.685 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.3068, allocations: 1.306 MB / 0.6863 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.3069, allocations: 86.28 kB / 0.6863 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.3072, allocations: 120 kB / 0.6865 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002643/0.3098, allocations: 1.202 MB / 0.6876 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.754e-05/0.3099, allocations: 3.938 kB / 0.6876 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.31, allocations: 52 kB / 0.6877 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/0.31, allocations: 28 kB / 0.6877 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002221/0.3123, allocations: 1.141 MB / 0.6888 GB, free: 7.672 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008289/0.3206, allocations: 5.005 MB / 0.6937 GB, free: 2.215 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.3224, allocations: 0.8945 MB / 0.6946 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009241/0.3233, allocations: 486.3 kB / 0.695 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008048/0.3314, allocations: 5.154 MB / 0.7001 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.224e-05/0.3315, allocations: 43.56 kB / 0.7001 GB, free: 10.77 MB / 0.545 GB Notification: Performance of pre-optimization done (n=103): time 5.551e-06/0.3315, allocations: 4 kB / 0.7001 GB, free: 10.76 MB / 0.545 GB Notification: Performance of matching and sorting (n=103): time 0.004478/0.336, allocations: 1.735 MB / 0.7018 GB, free: 8.961 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.3361, allocations: 64.41 kB / 0.7019 GB, free: 8.887 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002117/0.3382, allocations: 1.276 MB / 0.7031 GB, free: 7.605 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.3383, allocations: 45.7 kB / 0.7032 GB, free: 7.555 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/0.3392, allocations: 0.7621 MB / 0.7039 GB, free: 6.785 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.000404/0.3396, allocations: 372.8 kB / 0.7043 GB, free: 6.418 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/0.34, allocations: 178.6 kB / 0.7044 GB, free: 6.234 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002676/0.3402, allocations: 337.9 kB / 0.7048 GB, free: 5.898 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/0.3409, allocations: 305.9 kB / 0.7051 GB, free: 5.602 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008332/0.3417, allocations: 432.2 kB / 0.7055 GB, free: 5.145 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.3432, allocations: 0.7737 MB / 0.7062 GB, free: 4.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3432, allocations: 3.938 kB / 0.7062 GB, free: 4.336 MB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002391/0.3456, allocations: 1.151 MB / 0.7073 GB, free: 3.168 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3456, allocations: 4 kB / 0.7074 GB, free: 3.164 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3456, allocations: 4 kB / 0.7074 GB, free: 3.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007256/0.3464, allocations: 170.7 kB / 0.7075 GB, free: 2.984 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007821/0.3472, allocations: 187.7 kB / 0.7077 GB, free: 2.801 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00511/0.3523, allocations: 4.826 MB / 0.7124 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009954/0.3533, allocations: 99.34 kB / 0.7125 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3534, allocations: 43.98 kB / 0.7125 GB, free: 13.42 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006375/0.3541, allocations: 275.1 kB / 0.7128 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003577/0.3544, allocations: 170.9 kB / 0.713 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003285/0.3577, allocations: 1.638 MB / 0.7146 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.3577, allocations: 12 kB / 0.7146 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3578, allocations: 0 / 0.7146 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.3578, allocations: 11.92 kB / 0.7146 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.3624, allocations: 2.629 MB / 0.7172 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.3624, allocations: 4 kB / 0.7172 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/0.363, allocations: 163.8 kB / 0.7173 GB, free: 8.395 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006267/0.3636, allocations: 170.5 kB / 0.7175 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.572e-05/0.3637, allocations: 35.92 kB / 0.7175 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004752/0.3685, allocations: 4.825 MB / 0.7222 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3685, allocations: 4.031 kB / 0.7222 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.3719, allocations: 1.631 MB / 0.7238 GB, free: 1.254 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007105/0.3726, allocations: 355.6 kB / 0.7242 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/0.3728, allocations: 24 kB / 0.7242 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000561/0.3733, allocations: 31.92 kB / 0.7242 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.3735, allocations: 84.83 kB / 0.7243 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.852e-05/0.3736, allocations: 43.97 kB / 0.7243 GB, free: 0.707 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001382/0.375, allocations: 0.9015 MB / 0.7252 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.375, allocations: 0 / 0.7252 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001949/0.377, allocations: 0.6 MB / 0.7258 GB, free: 15.21 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * 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 (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004498/0.3815, allocations: 2.816 MB / 0.7286 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002736/0.3842, allocations: 1.188 MB / 0.7297 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.3843, allocations: 4 kB / 0.7297 GB, free: 11.11 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.3858, allocations: 0.8295 MB / 0.7305 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.3885, allocations: 0.5278 MB / 0.7311 GB, free: 9.746 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02037/0.4089, allocations: 10.71 MB / 0.7415 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.4101, allocations: 1.257 MB / 0.7427 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001143/0.4112, allocations: 297.7 kB / 0.743 GB, free: 13.17 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009601/0.4122, allocations: 0.7023 MB / 0.7437 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of SimCode: time 1.403e-06/0.4122, allocations: 0 / 0.7437 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4665/0.8787, allocations: 45.51 MB / 0.7882 GB, free: 132.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.34, allocations: 12.23 kB / 0.7882 GB, free: 132.8 MB / 0.5919 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv --start-time 0 --stop-time 20 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv failed! Error: Could not read variable source1.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv. Warning: Get data of variable source1.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv failed! Error: Could not read variable source2.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv. Warning: Get data of variable source2.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.363871822017245]