Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.001333/0.001333, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001456/0.001456, allocations: 219.7 kB / 23.04 MB, free: 5.074 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.392/1.392, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.7243/0.7243, allocations: 94.56 MB / 407.8 MB, free: 9.188 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.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="cs",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.00242/0.00242, allocations: 81.73 kB / 0.5557 GB, free: 38.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1151, allocations: 73.06 MB / 0.6271 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4523/0.5675, allocations: 150.3 MB / 0.7738 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005531/0.573, allocations: 4.658 MB / 0.7784 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006398/0.5736, allocations: 46.41 kB / 0.7784 GB, free: 1.898 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007919/0.5744, allocations: 302.1 kB / 0.7787 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001966/0.5764, allocations: 0.6793 MB / 0.7794 GB, free: 1.859 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.5778, allocations: 0.5179 MB / 0.7799 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001343/0.5791, allocations: 0.9937 MB / 0.7808 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.5794, allocations: 103.3 kB / 0.7809 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001243/0.5806, allocations: 0.5418 MB / 0.7815 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007433/0.5814, allocations: 479.7 kB / 0.7819 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.5815, allocations: 43.38 kB / 0.782 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.5833, allocations: 0.7954 MB / 0.7827 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.5835, allocations: 117.4 kB / 0.7828 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003803/0.5838, allocations: 316.9 kB / 0.7832 GB, free: 1.773 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002014/0.5859, allocations: 0.9748 MB / 0.7841 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.5859, allocations: 0 / 0.7841 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5859, allocations: 0 / 0.7841 GB, free: 1.699 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.958e-05/0.5859, allocations: 0 / 0.7841 GB, free: 1.699 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001661/0.5875, allocations: 0.914 MB / 0.785 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.5876, allocations: 9.625 kB / 0.785 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.958e-05/0.5876, allocations: 10.81 kB / 0.785 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.284e-05/0.5877, allocations: 83.73 kB / 0.7851 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/0.5878, allocations: 80.45 kB / 0.7852 GB, free: 17.08 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008507/0.5887, allocations: 483.3 kB / 0.7856 GB, free: 16.86 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.083e-05/0.5887, allocations: 33.5 kB / 0.7857 GB, free: 16.86 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.906e-05/0.5888, allocations: 43.31 kB / 0.7857 GB, free: 16.86 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.5895, allocations: 0.5147 MB / 0.7862 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.5895, allocations: 0 / 0.7862 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.5895, allocations: 17.88 kB / 0.7862 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.5896, allocations: 11.12 kB / 0.7862 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006697/0.5902, allocations: 499.3 kB / 0.7867 GB, free: 16.76 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.5927, allocations: 2.141 MB / 0.7888 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007062/0.5934, allocations: 334.8 kB / 0.7891 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.5937, allocations: 182.8 kB / 0.7893 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001861/0.5955, allocations: 0.9302 MB / 0.7902 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.5956, allocations: 37.72 kB / 0.7902 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.014e-06/0.5956, allocations: 0 / 0.7902 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001482/0.597, allocations: 0.6466 MB / 0.7909 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.5971, allocations: 64.11 kB / 0.7909 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005002/0.5976, allocations: 481.1 kB / 0.7914 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.12e-05/0.5977, allocations: 41.86 kB / 0.7914 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.5978, allocations: 269.8 kB / 0.7917 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.5979, allocations: 171.2 kB / 0.7919 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.5981, allocations: 82.17 kB / 0.7919 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001871/0.5983, allocations: 367.6 kB / 0.7923 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.5985, allocations: 129.8 kB / 0.7924 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/0.5988, allocations: 186.4 kB / 0.7926 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.5993, allocations: 341.3 kB / 0.7929 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.5993, allocations: 3.625 kB / 0.7929 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009974/0.6003, allocations: 0.4992 MB / 0.7934 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.6003, allocations: 4.875 kB / 0.7934 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.6004, allocations: 1.203 kB / 0.7934 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003443/0.6007, allocations: 80.95 kB / 0.7935 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.601, allocations: 83.69 kB / 0.7936 GB, free: 14.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002637/0.6036, allocations: 2.717 MB / 0.7962 GB, free: 11.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.604, allocations: 41.45 kB / 0.7963 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.604, allocations: 19.91 kB / 0.7963 GB, free: 11.54 MB / 0.5919 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.000267/0.6043, allocations: 173.1 kB / 0.7964 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.6044, allocations: 65.45 kB / 0.7965 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/0.6056, allocations: 0.6973 MB / 0.7972 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.6056, allocations: 10.81 kB / 0.7972 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.6056, allocations: 0 / 0.7972 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6056, allocations: 7.203 kB / 0.7972 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.6073, allocations: 1.165 MB / 0.7983 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.6073, allocations: 0 / 0.7983 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002344/0.6075, allocations: 73.92 kB / 0.7984 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002147/0.6077, allocations: 69.34 kB / 0.7985 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.6078, allocations: 21.53 kB / 0.7985 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.61, allocations: 2.723 MB / 0.8012 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.61, allocations: 0 / 0.8012 GB, free: 8.414 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.6111, allocations: 0.774 MB / 0.8019 GB, free: 8.172 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.6112, allocations: 64 kB / 0.802 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.6113, allocations: 18.22 kB / 0.802 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.6115, allocations: 8.812 kB / 0.802 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.6116, allocations: 44.08 kB / 0.802 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.874e-05/0.6116, allocations: 16.88 kB / 0.8021 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003661/0.612, allocations: 363.6 kB / 0.8024 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.612, allocations: 2.156 kB / 0.8024 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006127/0.6126, allocations: 196.7 kB / 0.8026 GB, free: 8.016 MB / 0.5919 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.00173/0.6143, allocations: 1.483 MB / 0.804 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009458/0.6153, allocations: 0.5673 MB / 0.8046 GB, free: 6.969 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.6153, allocations: 4.25 kB / 0.8046 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005467/0.6158, allocations: 426.9 kB / 0.805 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/0.6168, allocations: 177.6 kB / 0.8052 GB, free: 6.707 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006656/0.6234, allocations: 4.767 MB / 0.8098 GB, free: 4.812 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/0.6239, allocations: 0.8751 MB / 0.8107 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003948/0.6243, allocations: 129.3 kB / 0.8108 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.6246, allocations: 234.5 kB / 0.811 GB, free: 4.059 MB / 0.5919 GB Notification: Performance of SimCode: time 1.062e-06/0.6246, allocations: 0 / 0.811 GB, free: 4.059 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04796/0.6725, allocations: 17.08 MB / 0.8277 GB, free: 13.28 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/13.11, allocations: 14 kB / 0.8277 GB, free: 13.27 MB / 0.6075 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.55217098002322]