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.001121/0.001121, 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.001159/0.001159, allocations: 165.9 kB / 22.45 MB, free: 2.113 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 1.027/1.027, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7116/0.7116, allocations: 80.17 MB / 339.4 MB, free: 7.523 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 0 / 0.4924 GB, free: 6.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.342e-05/3.66e-05, allocations: 6.219 kB / 0.4924 GB, free: 6.656 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.2047/0.2047, allocations: 144.8 MB / 0.6338 GB, free: 7.109 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.5203/0.725, allocations: 10.26 MB / 0.6438 GB, free: 4.031 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001321/0.7263, allocations: 62 kB / 0.6439 GB, free: 4.031 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.7281, allocations: 0.5241 MB / 0.6444 GB, free: 4.031 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002588/0.7306, allocations: 0.9708 MB / 0.6453 GB, free: 4.016 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.7331, allocations: 0.8293 MB / 0.6462 GB, free: 3.996 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00212/0.7352, allocations: 1.54 MB / 0.6477 GB, free: 3.941 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003448/0.7355, allocations: 192.4 kB / 0.6478 GB, free: 3.906 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.7368, allocations: 0.8425 MB / 0.6487 GB, free: 3.812 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006639/0.7374, allocations: 0.5695 MB / 0.6492 GB, free: 3.75 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001655/0.7376, allocations: 76.41 kB / 0.6493 GB, free: 3.75 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002557/0.7401, allocations: 1.228 MB / 0.6505 GB, free: 3.672 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001541/0.7403, allocations: 202.9 kB / 0.6507 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004879/0.7408, allocations: 363.1 kB / 0.651 GB, free: 3.57 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.002606/0.7434, allocations: 1.632 MB / 0.6526 GB, free: 3.375 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.7434, allocations: 0.5 kB / 0.6526 GB, free: 3.375 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.107e-06/0.7434, allocations: 1.5 kB / 0.6526 GB, free: 3.375 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.406e-05/0.7434, allocations: 0 / 0.6526 GB, free: 3.375 MB / 0.5417 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.002138/0.7455, allocations: 1.428 MB / 0.654 GB, free: 2.617 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.26e-05/0.7456, allocations: 10.97 kB / 0.654 GB, free: 2.617 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.932e-05/0.7457, allocations: 114.9 kB / 0.6541 GB, free: 2.578 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000192/0.7459, allocations: 138.5 kB / 0.6543 GB, free: 2.508 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.747, allocations: 0.7327 MB / 0.655 GB, free: 2.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/0.747, allocations: 52.97 kB / 0.655 GB, free: 2.23 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.7472, allocations: 79.5 kB / 0.6551 GB, free: 2.223 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009595/0.7481, allocations: 0.7642 MB / 0.6559 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.7482, allocations: 3.188 kB / 0.6559 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.7482, allocations: 27.72 kB / 0.6559 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.7482, allocations: 17.69 kB / 0.6559 GB, free: 2.121 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009153/0.7491, allocations: 0.6523 MB / 0.6566 GB, free: 2.117 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.7516, allocations: 2.121 MB / 0.6586 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009432/0.7526, allocations: 0.5289 MB / 0.6591 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.7529, allocations: 231.7 kB / 0.6594 GB, free: 1.367 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001265/0.7542, allocations: 0.9103 MB / 0.6602 GB, free: 1.098 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.7542, allocations: 37.59 kB / 0.6603 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=55): time 4.609e-06/0.7542, allocations: 1.094 kB / 0.6603 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of matching and sorting (n=56): time 0.002607/0.7568, allocations: 1.572 MB / 0.6618 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.7568, allocations: 58.78 kB / 0.6619 GB, free: 0.5898 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006246/0.7575, allocations: 0.743 MB / 0.6626 GB, free: 464 kB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.7575, allocations: 32.45 kB / 0.6626 GB, free: 432 kB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003043/0.7578, allocations: 470.8 kB / 0.6631 GB, free: 252 kB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 8.271e-05/0.7579, allocations: 201.4 kB / 0.6633 GB, free: 120 kB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.256e-05/0.758, allocations: 97.42 kB / 0.6634 GB, free: 100 kB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003098/0.7583, allocations: 327.8 kB / 0.6637 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.7585, allocations: 164.2 kB / 0.6638 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.7587, allocations: 254.8 kB / 0.6641 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005355/0.7593, allocations: 453.7 kB / 0.6645 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.7593, allocations: 2.906 kB / 0.6645 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008326/0.7601, allocations: 0.6779 MB / 0.6652 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.7601, allocations: 10.45 kB / 0.6652 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.7601, allocations: 3.656 kB / 0.6652 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002937/0.7604, allocations: 106.8 kB / 0.6653 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.7606, allocations: 106.1 kB / 0.6654 GB, free: 15.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.7623, allocations: 1.92 MB / 0.6673 GB, free: 14.28 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.7625, allocations: 17.06 kB / 0.6673 GB, free: 14.28 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.7625, allocations: 23.81 kB / 0.6673 GB, free: 14.28 MB / 0.5573 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.0002328/0.7628, allocations: 210.3 kB / 0.6675 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.7629, allocations: 108.5 kB / 0.6676 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.7639, allocations: 0.8721 MB / 0.6685 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.7639, allocations: 13.06 kB / 0.6685 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.764, allocations: 0 / 0.6685 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.764, allocations: 3.609 kB / 0.6685 GB, free: 13.95 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.7657, allocations: 1.439 MB / 0.6699 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.7657, allocations: 0 / 0.6699 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.7659, allocations: 91.02 kB / 0.67 GB, free: 13.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002279/0.7661, allocations: 120 kB / 0.6701 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.7661, allocations: 20.95 kB / 0.6701 GB, free: 13.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001534/0.7677, allocations: 1.92 MB / 0.672 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7677, allocations: 2.688 kB / 0.672 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.7688, allocations: 0.9879 MB / 0.6729 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.357e-05/0.7689, allocations: 82.61 kB / 0.673 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.817e-05/0.769, allocations: 16.42 kB / 0.673 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.7691, allocations: 22.2 kB / 0.6731 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.72e-05/0.7692, allocations: 47.77 kB / 0.6731 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.7692, allocations: 20.25 kB / 0.6731 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000467/0.7697, allocations: 0.5341 MB / 0.6736 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.1e-08/0.7697, allocations: 0 / 0.6736 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008/0.7705, allocations: 353.7 kB / 0.674 GB, free: 11.92 MB / 0.5573 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.00198/0.7725, allocations: 1.928 MB / 0.6759 GB, free: 11.08 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0009354/0.7734, allocations: 0.5989 MB / 0.6765 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.7734, allocations: 4.656 kB / 0.6765 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.7739, allocations: 408.1 kB / 0.6768 GB, free: 10.82 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.7751, allocations: 368.6 kB / 0.6772 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007764/0.7828, allocations: 6.573 MB / 0.6836 GB, free: 8.582 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.7832, allocations: 436.6 kB / 0.684 GB, free: 8.473 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006061/0.7838, allocations: 151.1 kB / 0.6842 GB, free: 8.422 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005188/0.7843, allocations: 401 kB / 0.6846 GB, free: 8.41 MB / 0.5573 GB Notification: Performance of SimCode: time 1.643e-06/0.7843, allocations: 0 / 0.6846 GB, free: 8.41 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0622/0.8465, allocations: 30.45 MB / 0.7143 GB, free: 13.21 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.479/10.33, allocations: 3.125 kB / 0.7143 GB, free: 13.21 MB / 0.573 GB " [Timeout remaining time 650] (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/jenkins/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: 13.61629599519074]