Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.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.001204/0.001204, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.002085/0.002085, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 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.055/1.055, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7503/0.7503, allocations: 118.6 MB / 379.7 MB, free: 1.348 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType") translateModel(ThermofluidStream.FlowControl.Tests.SpecificValveType,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.275e-06/2.275e-06, allocations: 0 / 484.8 MB, free: 8.121 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.964e-05/3.191e-05, allocations: 10.03 kB / 484.8 MB, free: 8.113 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.SpecificValveType): time 0.01057/0.0106, allocations: 10.31 MB / 495.1 MB, free: 1.094 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006251/0.01685, allocations: 3.538 MB / 498.7 MB, free: 14.66 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002024/0.01888, allocations: 77.78 kB / 498.8 MB, free: 14.62 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.02024, allocations: 0.6075 MB / 499.4 MB, free: 14.41 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.02326, allocations: 1.098 MB / 0.4887 GB, free: 13.72 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.02535, allocations: 0.6997 MB / 0.4894 GB, free: 13.34 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.02902, allocations: 2.249 MB / 0.4916 GB, free: 12.19 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000482/0.0295, allocations: 214.6 kB / 0.4918 GB, free: 12.07 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003589/0.03309, allocations: 1.565 MB / 0.4933 GB, free: 11.34 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009603/0.03405, allocations: 0.5863 MB / 0.4939 GB, free: 10.87 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.03421, allocations: 92 kB / 0.494 GB, free: 10.78 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007234/0.03493, allocations: 273.9 kB / 0.4943 GB, free: 10.54 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.0352, allocations: 343.7 kB / 0.4946 GB, free: 10.25 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005337/0.03574, allocations: 496.2 kB / 0.4951 GB, free: 9.797 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002413/0.03815, allocations: 1.436 MB / 0.4965 GB, free: 8.559 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.03815, allocations: 0 / 0.4965 GB, free: 8.559 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.03815, allocations: 0 / 0.4965 GB, free: 8.559 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.03818, allocations: 0 / 0.4965 GB, free: 8.559 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.002651/0.04083, allocations: 2.214 MB / 0.4986 GB, free: 6.496 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.04087, allocations: 8.031 kB / 0.4986 GB, free: 6.488 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004842/0.04135, allocations: 321.3 kB / 0.4989 GB, free: 6.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.04286, allocations: 1.244 MB / 0.5002 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.0429, allocations: 66.38 kB / 0.5002 GB, free: 4.918 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.802e-05/0.04299, allocations: 88.33 kB / 0.5003 GB, free: 4.832 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007003/0.04369, allocations: 0.6566 MB / 0.501 GB, free: 4.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.04371, allocations: 7.875 kB / 0.501 GB, free: 4.117 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.04375, allocations: 32 kB / 0.501 GB, free: 4.086 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.04377, allocations: 20 kB / 0.501 GB, free: 4.066 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003653/0.04413, allocations: 313.6 kB / 0.5013 GB, free: 3.762 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/0.04684, allocations: 2.654 MB / 0.5039 GB, free: 1.043 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005531/0.0474, allocations: 0.4906 MB / 0.5044 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002589/0.04766, allocations: 177.3 kB / 0.5045 GB, free: 380 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00129/0.04895, allocations: 1.019 MB / 0.5055 GB, free: 15.33 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.04897, allocations: 42.05 kB / 0.5056 GB, free: 15.28 MB / 442.7 MB Notification: Performance of pre-optimization done (n=69): time 4.378e-06/0.04898, allocations: 4 kB / 0.5056 GB, free: 15.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=69): time 0.001271/0.05025, allocations: 0.7536 MB / 0.5063 GB, free: 14.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.207e-05/0.05028, allocations: 60.06 kB / 0.5064 GB, free: 14.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001079/0.05136, allocations: 1.3 MB / 0.5076 GB, free: 13.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.959e-05/0.0514, allocations: 37.7 kB / 0.5077 GB, free: 13.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/0.05189, allocations: 0.785 MB / 0.5085 GB, free: 12.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.05203, allocations: 245.8 kB / 0.5087 GB, free: 12.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.05219, allocations: 152.1 kB / 0.5088 GB, free: 11.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.05235, allocations: 0.5043 MB / 0.5093 GB, free: 11.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.05246, allocations: 81.92 kB / 0.5094 GB, free: 11.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006917/0.05315, allocations: 450.8 kB / 0.5098 GB, free: 10.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003824/0.05354, allocations: 380.7 kB / 0.5102 GB, free: 10.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.05354, allocations: 0 / 0.5102 GB, free: 10.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008047/0.05434, allocations: 0.6281 MB / 0.5108 GB, free: 9.656 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.05437, allocations: 6.344 kB / 0.5108 GB, free: 9.652 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.05439, allocations: 4 kB / 0.5108 GB, free: 9.648 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004277/0.05481, allocations: 131.5 kB / 0.5109 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/0.05515, allocations: 135.8 kB / 0.5111 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002207/0.05736, allocations: 3.677 MB / 0.5147 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004572/0.05781, allocations: 66 kB / 0.5147 GB, free: 5.414 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.05786, allocations: 28.05 kB / 0.5148 GB, free: 5.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (75): * Single equations (assignments): 73 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003678/0.05823, allocations: 192.4 kB / 0.5149 GB, free: 5.188 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.05841, allocations: 198.8 kB / 0.5151 GB, free: 4.992 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009788/0.05939, allocations: 0.8707 MB / 0.516 GB, free: 4.086 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.05939, allocations: 8 kB / 0.516 GB, free: 4.078 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.05939, allocations: 0 / 0.516 GB, free: 4.078 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.0594, allocations: 3.984 kB / 0.516 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.06126, allocations: 1.334 MB / 0.5173 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.06126, allocations: 0 / 0.5173 GB, free: 2.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000218/0.06148, allocations: 103.8 kB / 0.5174 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003074/0.06179, allocations: 139.2 kB / 0.5175 GB, free: 2.434 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.06182, allocations: 19.98 kB / 0.5175 GB, free: 2.414 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.06349, allocations: 3.673 MB / 0.5211 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.06349, allocations: 0 / 0.5211 GB, free: 14.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008649/0.06435, allocations: 0.8756 MB / 0.522 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003598/0.06471, allocations: 260.5 kB / 0.5222 GB, free: 13.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001042/0.06482, allocations: 20 kB / 0.5223 GB, free: 13.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.06505, allocations: 12.19 kB / 0.5223 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.107e-05/0.06515, allocations: 64.48 kB / 0.5223 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.06517, allocations: 19.98 kB / 0.5223 GB, free: 13.22 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006037/0.06578, allocations: 0.7536 MB / 0.5231 GB, free: 12.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 5e-08/0.06578, allocations: 3.938 kB / 0.5231 GB, free: 12.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007203/0.0665, allocations: 331.4 kB / 0.5234 GB, free: 12.14 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.inlet.m_flow,flowResistance2.inlet.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 (59): * Single equations (assignments): 57 * 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,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001193/0.06769, allocations: 368.5 kB / 0.5237 GB, free: 11.91 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0007548/0.06845, allocations: 0.708 MB / 0.5244 GB, free: 11.17 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.06845, allocations: 0 / 0.5244 GB, free: 11.17 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.06883, allocations: 0.5519 MB / 0.525 GB, free: 10.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.07015, allocations: 0.5379 MB / 0.5255 GB, free: 10.06 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/0.07343, allocations: 2.414 MB / 0.5279 GB, free: 7.574 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.07363, allocations: 268.2 kB / 0.5281 GB, free: 7.281 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006458/0.07428, allocations: 229.6 kB / 0.5283 GB, free: 7.055 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006783/0.07496, allocations: 477.9 kB / 0.5288 GB, free: 6.586 MB / 458.7 MB Notification: Performance of SimCode: time 1.493e-06/0.07496, allocations: 0 / 0.5288 GB, free: 6.586 MB / 458.7 MB Notification: Performance of Templates: time 0.0304/0.1054, allocations: 21.09 MB / 0.5494 GB, free: 1.965 MB / 474.7 MB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.SpecificValveType_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.323340700007975]