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.001553/0.001553, allocations: 110 kB / 16.46 MB, free: 6.453 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.001662/0.001662, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.71/1.71, allocations: 230.6 MB / 252.8 MB, free: 8.965 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 0.9777/0.9777, allocations: 94.56 MB / 403.4 MB, free: 10.14 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.002665/0.002665, allocations: 86.78 kB / 0.5499 GB, free: 38.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1972/0.1998, allocations: 73.02 MB / 0.6212 GB, free: 1.957 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.8129/1.013, allocations: 165.1 MB / 0.7824 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01922/1.032, allocations: 12.99 MB / 0.7951 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002239/1.034, allocations: 57.47 kB / 0.7952 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002133/1.036, allocations: 0.588 MB / 0.7957 GB, free: 1.465 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003738/1.04, allocations: 0.8973 MB / 0.7966 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003075/1.043, allocations: 0.8221 MB / 0.7974 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002514/1.046, allocations: 1.361 MB / 0.7987 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005053/1.046, allocations: 206.5 kB / 0.7989 GB, free: 1.352 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001532/1.048, allocations: 0.595 MB / 0.7995 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001037/1.049, allocations: 0.6645 MB / 0.8002 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001128/1.049, allocations: 74.88 kB / 0.8002 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004021/1.053, allocations: 1.41 MB / 0.8016 GB, free: 1.27 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002071/1.053, allocations: 198.1 kB / 0.8018 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005992/1.054, allocations: 0.5168 MB / 0.8023 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004162/1.058, allocations: 1.583 MB / 0.8038 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/1.058, allocations: 4.781 kB / 0.8039 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.753e-06/1.058, allocations: 0 / 0.8039 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.623e-05/1.058, allocations: 0 / 0.8039 GB, free: 0.7812 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.002956/1.061, allocations: 1.461 MB / 0.8053 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 0.000143/1.061, allocations: 10.84 kB / 0.8053 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002214/1.061, allocations: 108.8 kB / 0.8054 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/1.061, allocations: 134.2 kB / 0.8055 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/1.063, allocations: 0.7958 MB / 0.8063 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.033e-05/1.063, allocations: 53.31 kB / 0.8064 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/1.063, allocations: 68.75 kB / 0.8064 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/1.065, allocations: 0.7315 MB / 0.8071 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/1.065, allocations: 0 / 0.8071 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003423/1.065, allocations: 28.69 kB / 0.8072 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/1.065, allocations: 21.16 kB / 0.8072 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/1.066, allocations: 0.6288 MB / 0.8078 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0048/1.071, allocations: 3.113 MB / 0.8108 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/1.072, allocations: 0.5332 MB / 0.8114 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/1.073, allocations: 224.5 kB / 0.8116 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003496/1.076, allocations: 2.596 MB / 0.8141 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/1.076, allocations: 37.84 kB / 0.8141 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.204e-06/1.076, allocations: 0 / 0.8141 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.004251/1.081, allocations: 1.79 MB / 0.8159 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.705e-05/1.081, allocations: 59.14 kB / 0.8159 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/1.082, allocations: 0.7036 MB / 0.8166 GB, free: 8.883 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.673e-05/1.082, allocations: 36.73 kB / 0.8167 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003957/1.082, allocations: 451.2 kB / 0.8171 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/1.082, allocations: 200.7 kB / 0.8173 GB, free: 8.34 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/1.083, allocations: 93.14 kB / 0.8174 GB, free: 8.289 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002308/1.083, allocations: 326 kB / 0.8177 GB, free: 7.973 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/1.083, allocations: 164.9 kB / 0.8178 GB, free: 7.914 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/1.084, allocations: 234.8 kB / 0.8181 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009677/1.085, allocations: 427.4 kB / 0.8185 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.085, allocations: 0 / 0.8185 GB, free: 7.57 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001524/1.086, allocations: 0.6501 MB / 0.8191 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/1.086, allocations: 7.531 kB / 0.8191 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/1.086, allocations: 2.5 kB / 0.8191 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/1.087, allocations: 110.5 kB / 0.8192 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004214/1.087, allocations: 110 kB / 0.8193 GB, free: 7.242 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/1.09, allocations: 2.043 MB / 0.8213 GB, free: 5.508 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003627/1.09, allocations: 21.11 kB / 0.8213 GB, free: 5.492 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/1.091, allocations: 19.5 kB / 0.8214 GB, free: 5.488 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.0003943/1.091, allocations: 208.3 kB / 0.8216 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/1.091, allocations: 96.17 kB / 0.8217 GB, free: 5.262 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/1.093, allocations: 0.8638 MB / 0.8225 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/1.093, allocations: 4.938 kB / 0.8225 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/1.093, allocations: 6.562 kB / 0.8225 GB, free: 4.715 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/1.093, allocations: 11.92 kB / 0.8225 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/1.096, allocations: 1.528 MB / 0.824 GB, free: 3.637 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.096, allocations: 0 / 0.824 GB, free: 3.637 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004709/1.097, allocations: 91.22 kB / 0.8241 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003899/1.097, allocations: 120.5 kB / 0.8242 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/1.097, allocations: 23.48 kB / 0.8242 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002675/1.1, allocations: 2.042 MB / 0.8262 GB, free: 1.711 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.1, allocations: 9.297 kB / 0.8262 GB, free: 1.707 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/1.102, allocations: 0.9806 MB / 0.8272 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/1.102, allocations: 164.3 kB / 0.8274 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.706e-05/1.102, allocations: 12.59 kB / 0.8274 GB, free: 0.9414 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/1.102, allocations: 15.94 kB / 0.8274 GB, free: 0.9336 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/1.103, allocations: 48.83 kB / 0.8274 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/1.103, allocations: 16.69 kB / 0.8274 GB, free: 0.9023 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007727/1.103, allocations: 0.5152 MB / 0.8279 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.103, allocations: 0 / 0.8279 GB, free: 0.6094 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001235/1.105, allocations: 331.6 kB / 0.8283 GB, free: 0.5234 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.003497/1.108, allocations: 1.898 MB / 0.8301 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001565/1.11, allocations: 0.5886 MB / 0.8307 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/1.11, allocations: 0 / 0.8307 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000852/1.111, allocations: 423.2 kB / 0.8311 GB, free: 14.66 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/1.112, allocations: 279.7 kB / 0.8314 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01219/1.124, allocations: 6.315 MB / 0.8375 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007346/1.125, allocations: 1.001 MB / 0.8385 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0007677/1.126, allocations: 149.9 kB / 0.8386 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005672/1.126, allocations: 379.3 kB / 0.839 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of SimCode: time 1.803e-06/1.126, allocations: 4 kB / 0.839 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07769/1.204, allocations: 25.9 MB / 0.8643 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.63, allocations: 7.984 kB / 0.8643 GB, free: 15.58 MB / 0.6387 GB " [Timeout remaining time 645] (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: 19.11944648899953]