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.0008479/0.0008479, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0008718/0.0008718, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.941/0.941, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.6848/0.6848, allocations: 116 MB / 375.2 MB, free: 4.203 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.305e-05/1.474e-05, allocations: 2.281 kB / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4318/0.4318, allocations: 144.9 MB / 0.6947 GB, free: 5.375 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.01121/0.443, allocations: 10.3 MB / 0.7048 GB, free: 2.719 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.444, allocations: 64.44 kB / 0.7048 GB, free: 2.68 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.4454, allocations: 0.5305 MB / 0.7054 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.447, allocations: 0.9771 MB / 0.7063 GB, free: 1.828 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.4486, allocations: 0.8531 MB / 0.7071 GB, free: 1.363 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.000944/0.4496, allocations: 1.564 MB / 0.7087 GB, free: 404 kB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000259/0.4498, allocations: 199.6 kB / 0.7089 GB, free: 276 kB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000775/0.4506, allocations: 0.8498 MB / 0.7097 GB, free: 15.76 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000498/0.4511, allocations: 0.5658 MB / 0.7102 GB, free: 15.48 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 7.397e-05/0.4512, allocations: 78.56 kB / 0.7103 GB, free: 15.48 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001395/0.4526, allocations: 1.23 MB / 0.7115 GB, free: 14.95 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.4527, allocations: 212.3 kB / 0.7117 GB, free: 14.77 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0002398/0.4529, allocations: 367 kB / 0.7121 GB, free: 14.6 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.4544, allocations: 1.661 MB / 0.7137 GB, free: 13.57 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4544, allocations: 6.797 kB / 0.7137 GB, free: 13.56 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.393e-06/0.4544, allocations: 0 / 0.7137 GB, free: 13.56 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.17e-05/0.4544, allocations: 0 / 0.7137 GB, free: 13.56 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001687/0.4561, allocations: 1.45 MB / 0.7151 GB, free: 12.45 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4561, allocations: 7.469 kB / 0.7151 GB, free: 12.45 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.875e-05/0.4562, allocations: 115 kB / 0.7152 GB, free: 12.35 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.4564, allocations: 142.4 kB / 0.7154 GB, free: 12.28 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008792/0.4573, allocations: 0.7554 MB / 0.7161 GB, free: 11.7 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.4573, allocations: 59.03 kB / 0.7162 GB, free: 11.67 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.431e-05/0.4574, allocations: 77.22 kB / 0.7162 GB, free: 11.64 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.4582, allocations: 0.7749 MB / 0.717 GB, free: 11.16 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.4582, allocations: 0 / 0.717 GB, free: 11.16 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.496e-05/0.4583, allocations: 25.66 kB / 0.717 GB, free: 11.14 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.4583, allocations: 18.09 kB / 0.717 GB, free: 11.14 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006833/0.459, allocations: 0.651 MB / 0.7177 GB, free: 10.83 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.4611, allocations: 2.113 MB / 0.7197 GB, free: 9.207 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007722/0.4618, allocations: 0.5096 MB / 0.7202 GB, free: 8.93 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.4621, allocations: 225.3 kB / 0.7205 GB, free: 8.816 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001125/0.4632, allocations: 0.8797 MB / 0.7213 GB, free: 8.156 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.4632, allocations: 38.75 kB / 0.7213 GB, free: 8.113 MB / 0.573 GB Notification: Performance of pre-optimization done (n=55): time 2.154e-06/0.4633, allocations: 4 kB / 0.7214 GB, free: 8.109 MB / 0.573 GB Notification: Performance of matching and sorting (n=56): time 0.002468/0.4657, allocations: 1.555 MB / 0.7229 GB, free: 7.18 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.4658, allocations: 59.78 kB / 0.7229 GB, free: 7.117 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007834/0.4665, allocations: 0.7578 MB / 0.7237 GB, free: 6.676 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.4666, allocations: 36.73 kB / 0.7237 GB, free: 6.637 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003002/0.4669, allocations: 485.1 kB / 0.7242 GB, free: 6.215 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 9.807e-05/0.467, allocations: 198.3 kB / 0.7244 GB, free: 6.043 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.594e-05/0.4671, allocations: 95.11 kB / 0.7244 GB, free: 5.98 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 8.521e-05/0.4672, allocations: 323.9 kB / 0.7248 GB, free: 5.664 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.4674, allocations: 159.5 kB / 0.7249 GB, free: 5.59 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.4676, allocations: 248.1 kB / 0.7251 GB, free: 5.418 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.4681, allocations: 442.8 kB / 0.7256 GB, free: 5.152 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4681, allocations: 2.906 kB / 0.7256 GB, free: 5.152 MB / 0.573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007822/0.4689, allocations: 0.6727 MB / 0.7262 GB, free: 4.789 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.4689, allocations: 8.812 kB / 0.7262 GB, free: 4.785 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.4689, allocations: 3.406 kB / 0.7262 GB, free: 4.785 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/0.4692, allocations: 113.9 kB / 0.7263 GB, free: 4.727 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4694, allocations: 111.6 kB / 0.7265 GB, free: 4.695 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/0.4708, allocations: 1.916 MB / 0.7283 GB, free: 3.016 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001694/0.471, allocations: 24.17 kB / 0.7283 GB, free: 3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.975e-05/0.471, allocations: 23.64 kB / 0.7284 GB, free: 2.992 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (54): * Single equations (assignments): 53 * 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.0002048/0.4712, allocations: 216.3 kB / 0.7286 GB, free: 2.812 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.4713, allocations: 111.3 kB / 0.7287 GB, free: 2.75 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009665/0.4723, allocations: 0.8501 MB / 0.7295 GB, free: 2.219 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.4723, allocations: 6.125 kB / 0.7295 GB, free: 2.219 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.4723, allocations: 2.219 kB / 0.7295 GB, free: 2.219 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4723, allocations: 3.984 kB / 0.7295 GB, free: 2.215 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.4737, allocations: 1.418 MB / 0.7309 GB, free: 1.234 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4737, allocations: 0 / 0.7309 GB, free: 1.234 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.4739, allocations: 89.14 kB / 0.731 GB, free: 1.215 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002153/0.4741, allocations: 125.8 kB / 0.7311 GB, free: 1.141 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.4741, allocations: 15.75 kB / 0.7311 GB, free: 1.133 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.4754, allocations: 1.925 MB / 0.733 GB, free: 15.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4754, allocations: 4.812 kB / 0.733 GB, free: 15.44 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.4765, allocations: 0.9748 MB / 0.734 GB, free: 14.85 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.4766, allocations: 143.1 kB / 0.7341 GB, free: 14.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.064e-05/0.4767, allocations: 13.47 kB / 0.7341 GB, free: 14.73 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.4768, allocations: 17.27 kB / 0.7341 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.022e-05/0.4769, allocations: 44.5 kB / 0.7342 GB, free: 14.7 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.4769, allocations: 25.34 kB / 0.7342 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.000428/0.4774, allocations: 0.5509 MB / 0.7347 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.4774, allocations: 6.75 kB / 0.7347 GB, free: 14.35 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0005634/0.4779, allocations: 342.6 kB / 0.7351 GB, free: 14.27 MB / 0.5886 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.001645/0.4796, allocations: 1.905 MB / 0.7369 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0007484/0.4803, allocations: 0.5922 MB / 0.7375 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4803, allocations: 0 / 0.7375 GB, free: 12.63 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0004072/0.4807, allocations: 409.3 kB / 0.7379 GB, free: 12.38 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008846/0.4816, allocations: 382.2 kB / 0.7383 GB, free: 12.18 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006253/0.4879, allocations: 6.614 MB / 0.7447 GB, free: 8.074 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.4881, allocations: 444.2 kB / 0.7451 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0003485/0.4885, allocations: 160.9 kB / 0.7453 GB, free: 7.73 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003562/0.4888, allocations: 400.4 kB / 0.7457 GB, free: 7.395 MB / 0.5886 GB Notification: Performance of SimCode: time 7.82e-07/0.4888, allocations: 0 / 0.7457 GB, free: 7.395 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04908/0.5379, allocations: 30.64 MB / 0.7756 GB, free: 9.621 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.602/9.14, allocations: 10.86 kB / 0.7756 GB, free: 9.613 MB / 0.6198 GB " [Timeout remaining time 651] (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/jenkins/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: 11.93856237642467]