Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.002031/0.002031, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.00204/0.00204, allocations: 213.3 kB / 22.24 MB, free: 4.855 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.805/1.805, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.122/1.122, allocations: 94.62 MB / 407.1 MB, free: 8.91 MB / 318.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/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(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream 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: ThermofluidStream requested package Complex of version 4.0.0. Complex 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.002789/0.002789, allocations: 89.72 kB / 0.5549 GB, free: 38.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2498, allocations: 73.05 MB / 0.6263 GB, free: 208 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.9893/1.239, allocations: 143 MB / 0.7659 GB, free: 3.102 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02368/1.263, allocations: 11.87 MB / 0.7775 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00293/1.266, allocations: 57.47 kB / 0.7775 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002975/1.269, allocations: 0.51 MB / 0.778 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005288/1.274, allocations: 0.8853 MB / 0.7789 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004121/1.278, allocations: 0.8046 MB / 0.7797 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003413/1.281, allocations: 1.369 MB / 0.781 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005792/1.282, allocations: 199.5 kB / 0.7812 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001257/1.283, allocations: 0.5843 MB / 0.7818 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/1.284, allocations: 0.6241 MB / 0.7824 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000158/1.285, allocations: 77.56 kB / 0.7825 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003687/1.288, allocations: 1.215 MB / 0.7837 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000266/1.289, allocations: 196.8 kB / 0.7838 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000637/1.289, allocations: 427.1 kB / 0.7843 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002986/1.292, allocations: 1.572 MB / 0.7858 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.979e-06/1.292, allocations: 3.469 kB / 0.7858 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.406e-06/1.292, allocations: 0 / 0.7858 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.475e-05/1.292, allocations: 0.9062 kB / 0.7858 GB, free: 2.547 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003104/1.295, allocations: 1.389 MB / 0.7872 GB, free: 17.8 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/1.295, allocations: 8.469 kB / 0.7872 GB, free: 17.8 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/1.295, allocations: 115 kB / 0.7873 GB, free: 17.76 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/1.296, allocations: 133.8 kB / 0.7874 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/1.297, allocations: 0.7059 MB / 0.7881 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.499e-05/1.297, allocations: 52.84 kB / 0.7881 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/1.297, allocations: 69.19 kB / 0.7882 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/1.299, allocations: 0.7438 MB / 0.7889 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/1.299, allocations: 0 / 0.7889 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.493e-05/1.299, allocations: 29.69 kB / 0.789 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.348e-05/1.299, allocations: 17.75 kB / 0.789 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/1.3, allocations: 0.6473 MB / 0.7896 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/1.304, allocations: 1.854 MB / 0.7914 GB, free: 16.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/1.305, allocations: 0.5245 MB / 0.7919 GB, free: 16.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004725/1.305, allocations: 232.7 kB / 0.7922 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002023/1.307, allocations: 0.9075 MB / 0.793 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/1.307, allocations: 41.89 kB / 0.7931 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.004e-06/1.307, allocations: 0 / 0.7931 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003731/1.311, allocations: 1.557 MB / 0.7946 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.199e-05/1.311, allocations: 60.72 kB / 0.7947 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009646/1.312, allocations: 0.698 MB / 0.7953 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.109e-05/1.312, allocations: 34.95 kB / 0.7954 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/1.313, allocations: 453.8 kB / 0.7958 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000142/1.313, allocations: 196.7 kB / 0.796 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/1.313, allocations: 90.92 kB / 0.7961 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001886/1.313, allocations: 327.6 kB / 0.7964 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/1.313, allocations: 163.3 kB / 0.7965 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004615/1.314, allocations: 230.9 kB / 0.7968 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008985/1.315, allocations: 427.7 kB / 0.7972 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.315, allocations: 6.656 kB / 0.7972 GB, free: 15.15 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001547/1.316, allocations: 0.65 MB / 0.7978 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/1.316, allocations: 3.469 kB / 0.7978 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/1.316, allocations: 6.078 kB / 0.7978 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004835/1.317, allocations: 117.1 kB / 0.7979 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/1.317, allocations: 100.6 kB / 0.798 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002741/1.32, allocations: 1.929 MB / 0.7999 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003447/1.32, allocations: 16.42 kB / 0.7999 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/1.32, allocations: 20.59 kB / 0.7999 GB, free: 13.78 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003843/1.321, allocations: 203.7 kB / 0.8001 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/1.321, allocations: 104 kB / 0.8002 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/1.323, allocations: 0.8703 MB / 0.8011 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/1.323, allocations: 5.469 kB / 0.8011 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.323, allocations: 4.281 kB / 0.8011 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/1.323, allocations: 8.109 kB / 0.8011 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/1.325, allocations: 1.406 MB / 0.8025 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/1.325, allocations: 2.344 kB / 0.8025 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/1.326, allocations: 92.44 kB / 0.8026 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003863/1.326, allocations: 119.2 kB / 0.8027 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/1.326, allocations: 21.12 kB / 0.8027 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003051/1.329, allocations: 1.925 MB / 0.8046 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.329, allocations: 1.031 kB / 0.8046 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002149/1.331, allocations: 0.9803 MB / 0.8055 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/1.332, allocations: 85.64 kB / 0.8056 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/1.332, allocations: 21.47 kB / 0.8056 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/1.332, allocations: 12.41 kB / 0.8057 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/1.332, allocations: 52.61 kB / 0.8057 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/1.332, allocations: 20.62 kB / 0.8057 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007461/1.333, allocations: 0.51 MB / 0.8062 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/1.333, allocations: 0 / 0.8062 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001211/1.334, allocations: 333.7 kB / 0.8065 GB, free: 10.91 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003507/1.338, allocations: 1.904 MB / 0.8084 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001542/1.339, allocations: 0.584 MB / 0.809 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.339, allocations: 0 / 0.809 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008355/1.34, allocations: 422.5 kB / 0.8094 GB, free: 9.34 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/1.342, allocations: 272.8 kB / 0.8096 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/1.353, allocations: 6.328 MB / 0.8158 GB, free: 6.012 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006449/1.354, allocations: 419.1 kB / 0.8162 GB, free: 5.895 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00062/1.355, allocations: 150 kB / 0.8164 GB, free: 5.84 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005821/1.355, allocations: 382.1 kB / 0.8167 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of SimCode: time 1.773e-06/1.355, allocations: 1 kB / 0.8167 GB, free: 5.555 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09655/1.452, allocations: 27.62 MB / 0.8437 GB, free: 3.762 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/16.84, allocations: 9.109 kB / 0.8437 GB, free: 3.758 MB / 0.6075 GB " [Timeout remaining time 643] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable tanValve.inlet.m_flow in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable tanValve.inlet.m_flow from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.013006115797907]