Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001522/0.001522, allocations: 107.6 kB / 16.45 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.001576/0.001576, 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.611/1.611, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8946/0.8946, allocations: 100.3 MB / 409.1 MB, free: 4.766 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_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.002721/0.002721, allocations: 84.14 kB / 0.5582 GB, free: 36.13 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1579, allocations: 74.42 MB / 0.6309 GB, free: 9.168 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6089/0.7668, allocations: 165.1 MB / 0.7921 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01598/0.7827, allocations: 12.99 MB / 0.8048 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001613/0.7844, allocations: 53.66 kB / 0.8048 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.7863, allocations: 0.5888 MB / 0.8054 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.003146/0.7894, allocations: 0.8924 MB / 0.8063 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002506/0.7919, allocations: 0.8232 MB / 0.8071 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002235/0.7941, allocations: 1.361 MB / 0.8084 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004275/0.7946, allocations: 212.9 kB / 0.8086 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.7957, allocations: 0.5935 MB / 0.8092 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008054/0.7965, allocations: 0.6641 MB / 0.8098 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002769/0.7968, allocations: 76.19 kB / 0.8099 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00327/0.8001, allocations: 1.411 MB / 0.8113 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.8003, allocations: 202.3 kB / 0.8115 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007609/0.8011, allocations: 0.5119 MB / 0.812 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003498/0.8046, allocations: 1.583 MB / 0.8135 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 1.563e-05/0.8046, allocations: 0 / 0.8135 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of FrontEnd: time 5.39e-06/0.8046, allocations: 0 / 0.8135 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9e-05/0.8047, allocations: 0 / 0.8135 GB, free: 11.96 MB / 0.5919 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.00297/0.8076, allocations: 1.465 MB / 0.815 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.8077, allocations: 7.531 kB / 0.815 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.8078, allocations: 113.8 kB / 0.8151 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.808, allocations: 125.7 kB / 0.8152 GB, free: 10.66 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/0.8095, allocations: 0.8071 MB / 0.816 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/0.8096, allocations: 58.03 kB / 0.816 GB, free: 10 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.8097, allocations: 65.38 kB / 0.8161 GB, free: 9.984 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.8111, allocations: 0.7356 MB / 0.8168 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.8112, allocations: 0 / 0.8168 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.622e-05/0.8112, allocations: 27.38 kB / 0.8168 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.8112, allocations: 15.72 kB / 0.8169 GB, free: 9.523 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.8125, allocations: 0.6339 MB / 0.8175 GB, free: 9.211 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/0.8171, allocations: 3.099 MB / 0.8205 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001332/0.8184, allocations: 0.5407 MB / 0.821 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000412/0.8188, allocations: 230.7 kB / 0.8212 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003077/0.8219, allocations: 2.584 MB / 0.8238 GB, free: 3.207 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.8219, allocations: 41.73 kB / 0.8238 GB, free: 3.16 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.034e-06/0.8219, allocations: 4 kB / 0.8238 GB, free: 3.156 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.004069/0.826, allocations: 1.791 MB / 0.8256 GB, free: 1.938 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.826, allocations: 61.22 kB / 0.8256 GB, free: 1.867 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009693/0.827, allocations: 0.6967 MB / 0.8263 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.8271, allocations: 36.33 kB / 0.8263 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.8274, allocations: 449.9 kB / 0.8268 GB, free: 1.039 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.8276, allocations: 199.2 kB / 0.827 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.8277, allocations: 92.86 kB / 0.827 GB, free: 0.8086 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002073/0.8279, allocations: 324.7 kB / 0.8274 GB, free: 500 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003332/0.8283, allocations: 164.7 kB / 0.8275 GB, free: 420 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000498/0.8288, allocations: 227.9 kB / 0.8277 GB, free: 268 kB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007619/0.8295, allocations: 433.8 kB / 0.8281 GB, free: 12 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.8295, allocations: 0 / 0.8281 GB, free: 12 kB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001441/0.831, allocations: 0.6516 MB / 0.8288 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.831, allocations: 4.625 kB / 0.8288 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.831, allocations: 2.969 kB / 0.8288 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005892/0.8316, allocations: 115 kB / 0.8289 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003761/0.832, allocations: 94.7 kB / 0.829 GB, free: 15.57 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002756/0.8347, allocations: 2.055 MB / 0.831 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005969/0.8353, allocations: 19.53 kB / 0.831 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.375e-05/0.8354, allocations: 26.8 kB / 0.831 GB, free: 13.71 MB / 0.6075 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.000406/0.8358, allocations: 210.7 kB / 0.8312 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.836, allocations: 97.5 kB / 0.8313 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.8379, allocations: 0.8601 MB / 0.8322 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/0.8379, allocations: 7.531 kB / 0.8322 GB, free: 12.93 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.8379, allocations: 7.922 kB / 0.8322 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.8379, allocations: 3.938 kB / 0.8322 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.841, allocations: 1.531 MB / 0.8337 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.841, allocations: 2.562 kB / 0.8337 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004608/0.8414, allocations: 87.61 kB / 0.8338 GB, free: 11.81 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005768/0.842, allocations: 122.9 kB / 0.8339 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-05/0.8421, allocations: 22.92 kB / 0.8339 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003739/0.8458, allocations: 2.044 MB / 0.8359 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.8458, allocations: 0 / 0.8359 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.8487, allocations: 0.9775 MB / 0.8369 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.8491, allocations: 159.1 kB / 0.837 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.8492, allocations: 11.03 kB / 0.837 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/0.8497, allocations: 19.77 kB / 0.837 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.8499, allocations: 52.66 kB / 0.8371 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.503e-05/0.8499, allocations: 23.14 kB / 0.8371 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001047/0.851, allocations: 0.5087 MB / 0.8376 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.851, allocations: 0 / 0.8376 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0009934/0.852, allocations: 330.2 kB / 0.8379 GB, free: 8.703 MB / 0.6075 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.004034/0.856, allocations: 1.904 MB / 0.8398 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002103/0.8581, allocations: 0.6006 MB / 0.8404 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.8581, allocations: 0 / 0.8404 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.8592, allocations: 409.4 kB / 0.8408 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.8613, allocations: 284.5 kB / 0.841 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/0.8744, allocations: 6.316 MB / 0.8472 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000981/0.8754, allocations: 1.005 MB / 0.8482 GB, free: 0.9922 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0006371/0.876, allocations: 145.9 kB / 0.8483 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.8766, allocations: 379.3 kB / 0.8487 GB, free: 484 kB / 0.6075 GB Notification: Performance of SimCode: time 1.222e-06/0.8766, allocations: 4 kB / 0.8487 GB, free: 480 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07189/0.9484, allocations: 25.91 MB / 0.874 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/13.16, allocations: 11.44 kB / 0.874 GB, free: 6.793 MB / 0.6387 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! Error: Could not read variable tanValve.inlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv. Warning: Get data of variable tanValve.inlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.18590225186199]