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.001291/0.001291, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001472/0.001472, allocations: 215 kB / 20.13 MB, free: 2.949 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.471/1.471, allocations: 230.6 MB / 253.5 MB, free: 15.13 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.6172/0.6172, allocations: 94.56 MB / 404.1 MB, free: 10.96 MB / 334.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.002712/0.002712, allocations: 75.89 kB / 0.5506 GB, free: 5.422 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4033/0.406, allocations: 73.03 MB / 0.6219 GB, free: 8.492 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.186/0.592, allocations: 150.1 MB / 0.7685 GB, free: 5.578 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.00684/0.5988, allocations: 4.643 MB / 0.773 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009786/0.5998, allocations: 39.62 kB / 0.773 GB, free: 0.8828 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.6009, allocations: 290 kB / 0.7733 GB, free: 0.5977 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.002334/0.6033, allocations: 0.6836 MB / 0.774 GB, free: 15.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.6047, allocations: 0.4905 MB / 0.7744 GB, free: 15.42 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001643/0.6063, allocations: 0.9917 MB / 0.7754 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.6066, allocations: 104 kB / 0.7755 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.6081, allocations: 0.5446 MB / 0.776 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000642/0.6087, allocations: 470.1 kB / 0.7765 GB, free: 13.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.631e-05/0.6088, allocations: 40 kB / 0.7765 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.6105, allocations: 0.7876 MB / 0.7773 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.6106, allocations: 119.4 kB / 0.7774 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003229/0.6109, allocations: 314.2 kB / 0.7777 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001564/0.6125, allocations: 0.9767 MB / 0.7787 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.6125, allocations: 0 / 0.7787 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.414e-06/0.6125, allocations: 4 kB / 0.7787 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.6125, allocations: 0 / 0.7787 GB, free: 11.07 MB / 0.6075 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.001683/0.6142, allocations: 0.9843 MB / 0.7796 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.6142, allocations: 12.03 kB / 0.7796 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.451e-05/0.6143, allocations: 13.19 kB / 0.7797 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.831e-05/0.6144, allocations: 86.7 kB / 0.7797 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.6145, allocations: 84.42 kB / 0.7798 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000878/0.6154, allocations: 0.5487 MB / 0.7804 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.6154, allocations: 29.38 kB / 0.7804 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.331e-05/0.6155, allocations: 48.12 kB / 0.7804 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008243/0.6163, allocations: 0.4968 MB / 0.7809 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.6163, allocations: 3.938 kB / 0.7809 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.149e-05/0.6164, allocations: 16 kB / 0.7809 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.6164, allocations: 16 kB / 0.781 GB, free: 8.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007804/0.6172, allocations: 483.7 kB / 0.7814 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/0.6199, allocations: 2.167 MB / 0.7835 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.6207, allocations: 340.4 kB / 0.7839 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.621, allocations: 178.1 kB / 0.784 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002609/0.6236, allocations: 2.002 MB / 0.786 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.6236, allocations: 39 kB / 0.786 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=47): time 2.174e-06/0.6236, allocations: 0 / 0.786 GB, free: 2.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47): time 0.00172/0.6254, allocations: 0.7953 MB / 0.7868 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.6254, allocations: 55.84 kB / 0.7868 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005975/0.626, allocations: 487 kB / 0.7873 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.6261, allocations: 33.7 kB / 0.7873 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.6263, allocations: 265 kB / 0.7876 GB, free: 1.234 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/0.6264, allocations: 174.5 kB / 0.7878 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.6266, allocations: 82.12 kB / 0.7878 GB, free: 0.9727 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001785/0.6267, allocations: 374.8 kB / 0.7882 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.627, allocations: 128.8 kB / 0.7883 GB, free: 484 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003134/0.6273, allocations: 189 kB / 0.7885 GB, free: 284 kB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006403/0.628, allocations: 345 kB / 0.7888 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.628, allocations: 3.938 kB / 0.7888 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009932/0.629, allocations: 0.4972 MB / 0.7893 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.629, allocations: 11.98 kB / 0.7893 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.629, allocations: 3.938 kB / 0.7893 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003009/0.6293, allocations: 65.61 kB / 0.7894 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.6296, allocations: 91.89 kB / 0.7895 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.6321, allocations: 2.915 MB / 0.7923 GB, free: 12.04 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.6323, allocations: 43.59 kB / 0.7924 GB, free: 11.99 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.6324, allocations: 24.25 kB / 0.7924 GB, free: 11.97 MB / 0.6231 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.0002523/0.6326, allocations: 173.8 kB / 0.7926 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.6328, allocations: 71.5 kB / 0.7926 GB, free: 11.72 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001347/0.6341, allocations: 0.7066 MB / 0.7933 GB, free: 10.99 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6341, allocations: 8 kB / 0.7933 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.6341, allocations: 0 / 0.7933 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.6341, allocations: 7.922 kB / 0.7933 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.6361, allocations: 1.183 MB / 0.7945 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.6361, allocations: 0 / 0.7945 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.6363, allocations: 83.83 kB / 0.7946 GB, free: 9.637 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.6366, allocations: 73.73 kB / 0.7946 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.613e-05/0.6366, allocations: 19.94 kB / 0.7947 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.6391, allocations: 2.923 MB / 0.7975 GB, free: 6.34 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.6391, allocations: 4.031 kB / 0.7975 GB, free: 6.336 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00137/0.6405, allocations: 0.7614 MB / 0.7983 GB, free: 5.543 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.6407, allocations: 140.6 kB / 0.7984 GB, free: 5.387 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/0.6407, allocations: 8 kB / 0.7984 GB, free: 5.379 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.6409, allocations: 15.98 kB / 0.7984 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.261e-05/0.641, allocations: 47.89 kB / 0.7985 GB, free: 5.316 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.6411, allocations: 16 kB / 0.7985 GB, free: 5.301 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0004434/0.6415, allocations: 366.8 kB / 0.7988 GB, free: 4.945 MB / 0.6231 GB Notification: Performance of sort global known variables: time 8e-08/0.6415, allocations: 0 / 0.7988 GB, free: 4.945 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00071/0.6422, allocations: 199.6 kB / 0.799 GB, free: 4.75 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.002012/0.6442, allocations: 1.479 MB / 0.8005 GB, free: 3.23 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001155/0.6454, allocations: 0.5613 MB / 0.801 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6454, allocations: 0 / 0.801 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006462/0.646, allocations: 429 kB / 0.8014 GB, free: 2.199 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009815/0.647, allocations: 183.3 kB / 0.8016 GB, free: 2.031 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007305/0.6543, allocations: 4.766 MB / 0.8063 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.6549, allocations: 0.875 MB / 0.8071 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.000393/0.6553, allocations: 121.4 kB / 0.8072 GB, free: 12.1 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.6556, allocations: 239.3 kB / 0.8074 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of SimCode: time 8.62e-07/0.6556, allocations: 0 / 0.8074 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04735/0.703, allocations: 16.78 MB / 0.8238 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.99, allocations: 8 kB / 0.8238 GB, free: 11.38 MB / 0.6544 GB " [Timeout remaining time 648] (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: 15.704152899968904]