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.00145/0.00145, allocations: 109 kB / 17.54 MB, free: 4.746 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.00139/0.00139, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.342/1.342, allocations: 225.6 MB / 249.3 MB, free: 3.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5761/0.5761, allocations: 94.59 MB / 399 MB, free: 15.78 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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.002348/0.002348, allocations: 80.06 kB / 0.5442 GB, free: 12.64 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3416, allocations: 71.83 MB / 0.6144 GB, free: 3.848 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05786/0.3995, allocations: 54.31 MB / 0.6674 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02605/0.4255, allocations: 21.82 MB / 0.6887 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.4272, allocations: 71.5 kB / 0.6888 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002226/0.4295, allocations: 0.9041 MB / 0.6897 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00472/0.4342, allocations: 1.727 MB / 0.6913 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003951/0.4381, allocations: 1.34 MB / 0.6927 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00355/0.4417, allocations: 2.563 MB / 0.6952 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.4424, allocations: 322.2 kB / 0.6955 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.4441, allocations: 1.077 MB / 0.6965 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.4453, allocations: 0.9561 MB / 0.6974 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001845/0.4455, allocations: 128 kB / 0.6976 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.449, allocations: 1.268 MB / 0.6988 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004299/0.4495, allocations: 350.3 kB / 0.6991 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0009749/0.4504, allocations: 0.901 MB / 0.7 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004451/0.4549, allocations: 2.685 MB / 0.7026 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.4549, allocations: 0 / 0.7026 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.835e-06/0.4549, allocations: 0 / 0.7026 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.353e-05/0.4549, allocations: 7.938 kB / 0.7027 GB, free: 10.41 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.004109/0.4591, allocations: 2.425 MB / 0.705 GB, free: 7.918 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.4591, allocations: 8.031 kB / 0.705 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001915/0.4593, allocations: 181.2 kB / 0.7052 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004412/0.4597, allocations: 226.5 kB / 0.7054 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.4619, allocations: 1.294 MB / 0.7067 GB, free: 6.156 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.868e-05/0.462, allocations: 90.28 kB / 0.7068 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.4621, allocations: 120 kB / 0.7069 GB, free: 5.949 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/0.4642, allocations: 1.198 MB / 0.7081 GB, free: 4.707 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-05/0.4642, allocations: 7.875 kB / 0.7081 GB, free: 4.699 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001637/0.4644, allocations: 48 kB / 0.7081 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.588e-05/0.4644, allocations: 28 kB / 0.7081 GB, free: 4.625 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002049/0.4665, allocations: 1.141 MB / 0.7092 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006788/0.4732, allocations: 5.013 MB / 0.7141 GB, free: 14.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.4746, allocations: 0.8203 MB / 0.7149 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000691/0.4753, allocations: 426.3 kB / 0.7153 GB, free: 12.76 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005447/0.4808, allocations: 5.158 MB / 0.7204 GB, free: 6.742 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.4808, allocations: 43.56 kB / 0.7204 GB, free: 6.691 MB / 0.545 GB Notification: Performance of pre-optimization done (n=103): time 2.194e-06/0.4808, allocations: 0 / 0.7204 GB, free: 6.691 MB / 0.545 GB Notification: Performance of matching and sorting (n=103): time 0.003594/0.4844, allocations: 1.723 MB / 0.7221 GB, free: 4.902 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.4844, allocations: 60.41 kB / 0.7222 GB, free: 4.832 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.486, allocations: 1.284 MB / 0.7234 GB, free: 3.543 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.083e-05/0.4861, allocations: 45.7 kB / 0.7235 GB, free: 3.492 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005993/0.4867, allocations: 0.766 MB / 0.7242 GB, free: 2.719 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003651/0.4871, allocations: 368.8 kB / 0.7246 GB, free: 2.355 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002448/0.4873, allocations: 170.6 kB / 0.7247 GB, free: 2.176 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4875, allocations: 345.9 kB / 0.7251 GB, free: 1.832 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.488, allocations: 305.8 kB / 0.7253 GB, free: 1.535 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007613/0.4888, allocations: 434 kB / 0.7258 GB, free: 1.074 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.4902, allocations: 0.7737 MB / 0.7265 GB, free: 276 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.4902, allocations: 4 kB / 0.7265 GB, free: 272 kB / 0.545 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002139/0.4923, allocations: 1.139 MB / 0.7276 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4923, allocations: 8 kB / 0.7276 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.4923, allocations: 8.281 kB / 0.7277 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005406/0.4929, allocations: 166.4 kB / 0.7278 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007307/0.4936, allocations: 195.8 kB / 0.728 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004469/0.4981, allocations: 4.817 MB / 0.7327 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005677/0.4987, allocations: 91.31 kB / 0.7328 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/0.4987, allocations: 47.92 kB / 0.7328 GB, free: 9.359 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.0004274/0.4992, allocations: 269.6 kB / 0.7331 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003545/0.4995, allocations: 174.9 kB / 0.7333 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002959/0.5025, allocations: 1.641 MB / 0.7349 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.5025, allocations: 12 kB / 0.7349 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5025, allocations: 4.188 kB / 0.7349 GB, free: 7.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5025, allocations: 7.922 kB / 0.7349 GB, free: 7.223 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004349/0.5068, allocations: 2.625 MB / 0.7374 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5069, allocations: 0 / 0.7374 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006247/0.5075, allocations: 171.9 kB / 0.7376 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004798/0.508, allocations: 166.4 kB / 0.7378 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.508, allocations: 35.98 kB / 0.7378 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004495/0.5125, allocations: 4.829 MB / 0.7425 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5125, allocations: 0 / 0.7425 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.5154, allocations: 1.619 MB / 0.7441 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004649/0.5158, allocations: 355.6 kB / 0.7444 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.516, allocations: 27.94 kB / 0.7445 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.5166, allocations: 31.92 kB / 0.7445 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.5167, allocations: 80.89 kB / 0.7446 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.684e-05/0.5168, allocations: 35.98 kB / 0.7446 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001246/0.518, allocations: 0.9054 MB / 0.7455 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.518, allocations: 0 / 0.7455 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001407/0.5194, allocations: 0.6 MB / 0.7461 GB, free: 11.17 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.004299/0.5237, allocations: 2.812 MB / 0.7488 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002108/0.5259, allocations: 1.145 MB / 0.7499 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5259, allocations: 0 / 0.7499 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.5271, allocations: 0.7904 MB / 0.7507 GB, free: 6.301 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002132/0.5293, allocations: 0.5196 MB / 0.7512 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/0.546, allocations: 10.71 MB / 0.7617 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009826/0.547, allocations: 1.254 MB / 0.7629 GB, free: 9.492 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009261/0.548, allocations: 303.9 kB / 0.7632 GB, free: 9.219 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008741/0.5488, allocations: 0.7062 MB / 0.7639 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/0.5488, allocations: 4 kB / 0.7639 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09608/0.6449, allocations: 45.85 MB / 0.8087 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.44, allocations: 6.734 kB / 0.8087 GB, free: 10.95 MB / 0.6387 GB " [Timeout remaining time 647] (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/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: 15.549490983001306]