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.001683/0.001683, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.001753/0.001753, allocations: 155.4 kB / 23.01 MB, free: 4.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.438/1.438, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.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.7869/0.7869, allocations: 74.91 MB / 334.7 MB, free: 15.53 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: 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_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_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [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.002584/0.002584, allocations: 89.88 kB / 496.4 MB, free: 29.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1363, allocations: 73.02 MB / 0.556 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1793/0.3156, allocations: 129.2 MB / 0.6822 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.006282/0.3219, allocations: 4.235 MB / 0.6864 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004193/0.3223, allocations: 39.62 kB / 0.6864 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0008794/0.3232, allocations: 266.2 kB / 0.6867 GB, free: 9.34 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001522/0.3247, allocations: 0.6642 MB / 0.6873 GB, free: 8.672 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.326, allocations: 0.5177 MB / 0.6878 GB, free: 8.152 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001143/0.3271, allocations: 0.9839 MB / 0.6888 GB, free: 7.164 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.3274, allocations: 110.5 kB / 0.6889 GB, free: 7.051 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.3285, allocations: 0.5407 MB / 0.6894 GB, free: 6.508 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.3291, allocations: 446 kB / 0.6898 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 9.405e-05/0.3292, allocations: 44 kB / 0.6899 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001421/0.3307, allocations: 0.6474 MB / 0.6905 GB, free: 5.379 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.3308, allocations: 119.4 kB / 0.6906 GB, free: 5.262 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.3311, allocations: 258.7 kB / 0.6909 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.3325, allocations: 0.9455 MB / 0.6918 GB, free: 4.059 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3325, allocations: 3.938 kB / 0.6918 GB, free: 4.055 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3325, allocations: 0 / 0.6918 GB, free: 4.055 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.3325, allocations: 4 kB / 0.6918 GB, free: 4.051 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.00164/0.3341, allocations: 0.9207 MB / 0.6927 GB, free: 3.098 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.3342, allocations: 8.031 kB / 0.6927 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.3346, allocations: 100.4 kB / 0.6928 GB, free: 2.992 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009816/0.3356, allocations: 480 kB / 0.6933 GB, free: 2.496 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.805e-05/0.3356, allocations: 37.31 kB / 0.6933 GB, free: 2.461 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.45e-05/0.3357, allocations: 40.38 kB / 0.6933 GB, free: 2.422 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008547/0.3366, allocations: 0.5086 MB / 0.6938 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3366, allocations: 3.984 kB / 0.6938 GB, free: 1.891 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.3366, allocations: 20 kB / 0.6939 GB, free: 1.871 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.3367, allocations: 12 kB / 0.6939 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008293/0.3375, allocations: 495.6 kB / 0.6943 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2985/0.636, allocations: 1.424 MB / 0.6957 GB, free: 143.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.637, allocations: 336.7 kB / 0.6961 GB, free: 143.1 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003396/0.6374, allocations: 185.7 kB / 0.6962 GB, free: 143.1 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002211/0.6396, allocations: 0.8471 MB / 0.6971 GB, free: 142.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.965e-05/0.6396, allocations: 38.66 kB / 0.6971 GB, free: 142.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.094e-06/0.6396, allocations: 0 / 0.6971 GB, free: 142.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001529/0.6411, allocations: 0.6351 MB / 0.6977 GB, free: 142.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.6412, allocations: 57 kB / 0.6978 GB, free: 142.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004319/0.6416, allocations: 412.8 kB / 0.6982 GB, free: 142.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.6416, allocations: 35.52 kB / 0.6982 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.6418, allocations: 287.4 kB / 0.6985 GB, free: 142.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.6419, allocations: 168.5 kB / 0.6986 GB, free: 142 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.642, allocations: 85.05 kB / 0.6987 GB, free: 141.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.106e-05/0.6421, allocations: 359.4 kB / 0.6991 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.6423, allocations: 131.9 kB / 0.6992 GB, free: 141.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.6426, allocations: 187 kB / 0.6994 GB, free: 141.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005416/0.6432, allocations: 347.2 kB / 0.6997 GB, free: 141.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.6432, allocations: 0 / 0.6997 GB, free: 141.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007584/0.6439, allocations: 500 kB / 0.7002 GB, free: 141 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.6439, allocations: 2.875 kB / 0.7002 GB, free: 141 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.644, allocations: 2.906 kB / 0.7002 GB, free: 141 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002552/0.6442, allocations: 71.61 kB / 0.7002 GB, free: 141 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003088/0.6445, allocations: 87.75 kB / 0.7003 GB, free: 141 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001501/0.646, allocations: 2.668 MB / 0.7029 GB, free: 138.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002209/0.6462, allocations: 34.72 kB / 0.703 GB, free: 138.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.404e-05/0.6463, allocations: 15.56 kB / 0.703 GB, free: 138.4 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.0001688/0.6464, allocations: 176.1 kB / 0.7031 GB, free: 138.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.374e-05/0.6465, allocations: 59.77 kB / 0.7032 GB, free: 138.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.6476, allocations: 0.6753 MB / 0.7039 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.6476, allocations: 3.906 kB / 0.7039 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.6476, allocations: 2.812 kB / 0.7039 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.6476, allocations: 2.25 kB / 0.7039 GB, free: 137.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001434/0.6491, allocations: 0.9875 MB / 0.7048 GB, free: 137.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.6491, allocations: 3.688 kB / 0.7048 GB, free: 137.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.6493, allocations: 68.16 kB / 0.7049 GB, free: 137.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001958/0.6495, allocations: 70.52 kB / 0.705 GB, free: 137.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.08e-05/0.6496, allocations: 11.59 kB / 0.705 GB, free: 137.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001428/0.651, allocations: 2.673 MB / 0.7076 GB, free: 134.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.651, allocations: 0 / 0.7076 GB, free: 134.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009684/0.652, allocations: 0.7337 MB / 0.7083 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.652, allocations: 55.91 kB / 0.7084 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.6521, allocations: 11.47 kB / 0.7084 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.6523, allocations: 10.97 kB / 0.7084 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.826e-05/0.6524, allocations: 38.78 kB / 0.7084 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.6524, allocations: 17.2 kB / 0.7084 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003069/0.6527, allocations: 311.7 kB / 0.7087 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6527, allocations: 3 kB / 0.7087 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005949/0.6533, allocations: 190.8 kB / 0.7089 GB, free: 134 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 (39): * Single equations (assignments): 37 * 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.0003495/0.6536, allocations: 263.3 kB / 0.7092 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000872/0.6545, allocations: 0.5621 MB / 0.7097 GB, free: 133.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6545, allocations: 0 / 0.7097 GB, free: 133.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005263/0.655, allocations: 417.9 kB / 0.7101 GB, free: 133.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007191/0.6558, allocations: 130.5 kB / 0.7102 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.6577, allocations: 1.121 MB / 0.7113 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003078/0.658, allocations: 273 kB / 0.7116 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003149/0.6583, allocations: 101.8 kB / 0.7117 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.6584, allocations: 56.97 kB / 0.7118 GB, free: 132.4 MB / 0.5919 GB Notification: Performance of SimCode: time 4.41e-07/0.6584, allocations: 0 / 0.7118 GB, free: 132.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.01611/0.6745, allocations: 9.167 MB / 0.7207 GB, free: 128.2 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -s ida -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] 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: 6.357070395955816]