Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 112.9 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 225.6 MB / 249.3 MB, free: 3.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5796/0.5796, allocations: 94.59 MB / 399 MB, free: 15.8 MB / 334.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 95.83 kB / 0.5442 GB, free: 12.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3352, allocations: 71.83 MB / 0.6144 GB, free: 3.859 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1702/0.5054, allocations: 150.2 MB / 0.7611 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.006374/0.5118, allocations: 4.659 MB / 0.7656 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003726/0.5122, allocations: 27.81 kB / 0.7656 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008754/0.513, allocations: 290 kB / 0.7659 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001464/0.5145, allocations: 0.6758 MB / 0.7666 GB, free: 8.715 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.5156, allocations: 0.5021 MB / 0.7671 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001046/0.5167, allocations: 0.9801 MB / 0.768 GB, free: 7.227 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/0.5169, allocations: 100 kB / 0.7681 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008793/0.5178, allocations: 0.5328 MB / 0.7686 GB, free: 6.59 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006408/0.5184, allocations: 478.1 kB / 0.7691 GB, free: 6.121 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 6.084e-05/0.5185, allocations: 44 kB / 0.7691 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.5199, allocations: 0.7797 MB / 0.7699 GB, free: 5.297 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.5201, allocations: 123.4 kB / 0.77 GB, free: 5.176 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.5203, allocations: 310.2 kB / 0.7703 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.5218, allocations: 0.9728 MB / 0.7713 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.5218, allocations: 0 / 0.7713 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.343e-06/0.5218, allocations: 0 / 0.7713 GB, free: 3.895 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.264e-05/0.5218, allocations: 4 kB / 0.7713 GB, free: 3.891 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001585/0.5234, allocations: 0.9882 MB / 0.7722 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.5234, allocations: 8.031 kB / 0.7722 GB, free: 2.84 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.37e-05/0.5235, allocations: 86.7 kB / 0.7723 GB, free: 2.746 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.5236, allocations: 76.47 kB / 0.7724 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008862/0.5245, allocations: 0.5486 MB / 0.7729 GB, free: 2.086 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.5245, allocations: 33.38 kB / 0.773 GB, free: 2.051 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.5246, allocations: 44.38 kB / 0.773 GB, free: 2.008 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008511/0.5254, allocations: 0.5084 MB / 0.7735 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.5254, allocations: 0 / 0.7735 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.5255, allocations: 16 kB / 0.7735 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.5255, allocations: 12 kB / 0.7735 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008269/0.5263, allocations: 483.7 kB / 0.774 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.529, allocations: 2.179 MB / 0.7761 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008023/0.5298, allocations: 328.4 kB / 0.7764 GB, free: 14.28 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.5301, allocations: 182.1 kB / 0.7766 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002517/0.5326, allocations: 1.994 MB / 0.7786 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.5327, allocations: 39 kB / 0.7786 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=47): time 1.563e-06/0.5327, allocations: 4.094 kB / 0.7786 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47): time 0.001706/0.5344, allocations: 0.803 MB / 0.7794 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.5344, allocations: 59.78 kB / 0.7794 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.5349, allocations: 491 kB / 0.7799 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.535, allocations: 29.7 kB / 0.7799 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.5352, allocations: 268.9 kB / 0.7802 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.5353, allocations: 178.5 kB / 0.7804 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.5354, allocations: 78.12 kB / 0.7804 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.5356, allocations: 374.8 kB / 0.7808 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003277/0.5359, allocations: 128.8 kB / 0.7809 GB, free: 9.293 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/0.5362, allocations: 185 kB / 0.7811 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005882/0.5368, allocations: 344.9 kB / 0.7814 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.5368, allocations: 0 / 0.7814 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009027/0.5377, allocations: 0.5011 MB / 0.7819 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.5378, allocations: 12.12 kB / 0.7819 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.5378, allocations: 0 / 0.7819 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002809/0.538, allocations: 69.59 kB / 0.782 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.5383, allocations: 87.89 kB / 0.7821 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.5407, allocations: 2.919 MB / 0.7849 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.5409, allocations: 43.62 kB / 0.785 GB, free: 4.82 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.541, allocations: 16 kB / 0.785 GB, free: 4.805 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002056/0.5412, allocations: 185.7 kB / 0.7852 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.5413, allocations: 59.62 kB / 0.7852 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001314/0.5426, allocations: 0.715 MB / 0.7859 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.5426, allocations: 8 kB / 0.7859 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.5426, allocations: 0 / 0.7859 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.5426, allocations: 7.922 kB / 0.7859 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.5445, allocations: 1.187 MB / 0.7871 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.5445, allocations: 7.984 kB / 0.7871 GB, free: 2.531 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.5448, allocations: 75.91 kB / 0.7872 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.545, allocations: 65.72 kB / 0.7872 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.545, allocations: 27.92 kB / 0.7873 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/0.5473, allocations: 2.915 MB / 0.7901 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.5473, allocations: 8.094 kB / 0.7901 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.5486, allocations: 0.7651 MB / 0.7909 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.5487, allocations: 136.6 kB / 0.791 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.417e-05/0.5488, allocations: 19.94 kB / 0.791 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.549, allocations: 8 kB / 0.791 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.5491, allocations: 43.89 kB / 0.7911 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.5491, allocations: 19.98 kB / 0.7911 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004715/0.5496, allocations: 366.9 kB / 0.7914 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5496, allocations: 0 / 0.7914 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007918/0.5504, allocations: 195.6 kB / 0.7916 GB, free: 13.57 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001873/0.5523, allocations: 1.476 MB / 0.7931 GB, free: 12.05 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001052/0.5533, allocations: 0.5732 MB / 0.7936 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5533, allocations: 0 / 0.7936 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.554, allocations: 417.4 kB / 0.794 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008731/0.5548, allocations: 184.1 kB / 0.7942 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00664/0.5615, allocations: 4.784 MB / 0.7989 GB, free: 5.922 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.562, allocations: 0.8711 MB / 0.7997 GB, free: 5.023 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003066/0.5623, allocations: 130.2 kB / 0.7998 GB, free: 4.91 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000306/0.5626, allocations: 239.3 kB / 0.8001 GB, free: 4.676 MB / 0.6231 GB Notification: Performance of SimCode: time 5e-07/0.5626, allocations: 0 / 0.8001 GB, free: 4.676 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05285/0.6155, allocations: 16.73 MB / 0.8164 GB, free: 4.133 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.35, allocations: 0 / 0.8164 GB, free: 4.133 MB / 0.6387 GB " [Timeout remaining time 649] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.448802329992759]