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.001449/0.001449, allocations: 113.9 kB / 17.61 MB, free: 4.684 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.001441/0.001441, allocations: 185.9 kB / 20.78 MB, free: 1.52 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.474/1.474, allocations: 225.6 MB / 249.4 MB, free: 3.156 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.635/0.635, allocations: 94.59 MB / 399.1 MB, free: 15.75 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: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002434/0.002434, allocations: 79.88 kB / 0.5448 GB, free: 12.07 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.3661, allocations: 71.83 MB / 0.615 GB, free: 4.094 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1884/0.5545, allocations: 150.2 MB / 0.7617 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.006654/0.5611, allocations: 4.659 MB / 0.7662 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006182/0.5618, allocations: 27.88 kB / 0.7662 GB, free: 9.574 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0009348/0.5627, allocations: 294 kB / 0.7665 GB, free: 9.285 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.5646, allocations: 0.6758 MB / 0.7672 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.566, allocations: 0.4982 MB / 0.7677 GB, free: 8.105 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001313/0.5673, allocations: 0.9801 MB / 0.7686 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.5675, allocations: 94.22 kB / 0.7687 GB, free: 7.023 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.5687, allocations: 0.5368 MB / 0.7692 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006841/0.5694, allocations: 482 kB / 0.7697 GB, free: 6.012 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 8.199e-05/0.5695, allocations: 44 kB / 0.7697 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00166/0.5712, allocations: 0.7758 MB / 0.7705 GB, free: 5.191 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.5713, allocations: 119.4 kB / 0.7706 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003391/0.5717, allocations: 318.2 kB / 0.7709 GB, free: 4.762 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.5734, allocations: 0.9751 MB / 0.7719 GB, free: 3.789 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.5734, allocations: 3.984 kB / 0.7719 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.753e-06/0.5734, allocations: 4 kB / 0.7719 GB, free: 3.781 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.523e-05/0.5734, allocations: 0 / 0.7719 GB, free: 3.781 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.001781/0.5752, allocations: 0.9843 MB / 0.7728 GB, free: 2.742 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.5752, allocations: 8.031 kB / 0.7729 GB, free: 2.734 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.5754, allocations: 76.47 kB / 0.7729 GB, free: 2.66 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001/0.5764, allocations: 0.5564 MB / 0.7735 GB, free: 2.066 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.5764, allocations: 29.38 kB / 0.7735 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-05/0.5765, allocations: 48.38 kB / 0.7735 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008995/0.5774, allocations: 0.5085 MB / 0.774 GB, free: 1.461 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.5774, allocations: 4 kB / 0.774 GB, free: 1.457 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.5774, allocations: 16 kB / 0.7741 GB, free: 1.441 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.5774, allocations: 8 kB / 0.7741 GB, free: 1.434 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008375/0.5783, allocations: 483.7 kB / 0.7745 GB, free: 0.957 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.5812, allocations: 2.183 MB / 0.7767 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000817/0.582, allocations: 332.5 kB / 0.777 GB, free: 14.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.5824, allocations: 174.1 kB / 0.7771 GB, free: 14.08 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002838/0.5852, allocations: 1.998 MB / 0.7791 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.5852, allocations: 35 kB / 0.7791 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=47): time 2.104e-06/0.5852, allocations: 4 kB / 0.7791 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of matching and sorting (n=47): time 0.001794/0.587, allocations: 0.7953 MB / 0.7799 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.5871, allocations: 67.77 kB / 0.78 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006425/0.5877, allocations: 483.1 kB / 0.7804 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.5878, allocations: 33.7 kB / 0.7805 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.588, allocations: 272.9 kB / 0.7807 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000142/0.5881, allocations: 174.5 kB / 0.7809 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.5883, allocations: 82.12 kB / 0.781 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001995/0.5885, allocations: 370.8 kB / 0.7813 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002835/0.5888, allocations: 128.8 kB / 0.7814 GB, free: 9.277 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.5891, allocations: 185 kB / 0.7816 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006341/0.5897, allocations: 340.9 kB / 0.7819 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5897, allocations: 0 / 0.7819 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001024/0.5908, allocations: 0.5011 MB / 0.7824 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.5908, allocations: 8.125 kB / 0.7824 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5908, allocations: 4 kB / 0.7824 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003017/0.5911, allocations: 69.61 kB / 0.7825 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.5914, allocations: 83.89 kB / 0.7826 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.5942, allocations: 2.923 MB / 0.7854 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.5945, allocations: 43.66 kB / 0.7855 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.5945, allocations: 23.98 kB / 0.7855 GB, free: 4.785 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.0002658/0.5948, allocations: 181.7 kB / 0.7857 GB, free: 4.598 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.5949, allocations: 59.62 kB / 0.7857 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001455/0.5964, allocations: 0.7098 MB / 0.7864 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.5964, allocations: 4 kB / 0.7864 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.5964, allocations: 0 / 0.7864 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.5964, allocations: 0 / 0.7864 GB, free: 3.805 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.5985, allocations: 1.199 MB / 0.7876 GB, free: 2.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5985, allocations: 4 kB / 0.7876 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.5987, allocations: 71.91 kB / 0.7877 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002378/0.599, allocations: 65.66 kB / 0.7877 GB, free: 2.383 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.048e-05/0.599, allocations: 24.11 kB / 0.7878 GB, free: 2.359 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.6017, allocations: 2.919 MB / 0.7906 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.6017, allocations: 12.09 kB / 0.7906 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.6031, allocations: 0.7613 MB / 0.7914 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.6033, allocations: 136.6 kB / 0.7915 GB, free: 14.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.6034, allocations: 15.95 kB / 0.7915 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.6036, allocations: 12 kB / 0.7915 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.6037, allocations: 47.81 kB / 0.7916 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.6038, allocations: 16 kB / 0.7916 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000485/0.6043, allocations: 362.9 kB / 0.7919 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1e-07/0.6043, allocations: 4 kB / 0.7919 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007319/0.605, allocations: 199.6 kB / 0.7921 GB, free: 13.56 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.0004718/0.6055, allocations: 269.2 kB / 0.7924 GB, free: 13.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001162/0.6066, allocations: 0.5729 MB / 0.7929 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.617e-05/0.6066, allocations: 8.25 kB / 0.793 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0006795/0.6073, allocations: 417.1 kB / 0.7934 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001047/0.6084, allocations: 190.3 kB / 0.7935 GB, free: 12.08 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.6107, allocations: 1.145 MB / 0.7947 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.6113, allocations: 0.8748 MB / 0.7955 GB, free: 9.988 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0003937/0.6116, allocations: 121.9 kB / 0.7956 GB, free: 9.887 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.6118, allocations: 63.42 kB / 0.7957 GB, free: 9.824 MB / 0.6231 GB Notification: Performance of SimCode: time 7.52e-07/0.6118, allocations: 4 kB / 0.7957 GB, free: 9.82 MB / 0.6231 GB Notification: Performance of Templates: time 0.02158/0.6334, allocations: 10.78 MB / 0.8062 GB, free: 15.15 MB / 0.6387 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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: 6.1633411552757025]