Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.001886/0.001886, allocations: 81.42 kB / 19.43 MB, free: 1.965 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.002279/0.002279, allocations: 161.6 kB / 22.74 MB, free: 4.773 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.513/1.513, allocations: 177.1 MB / 203.1 MB, free: 9.047 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.8322/0.8322, allocations: 80.19 MB / 339.7 MB, free: 10.72 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 430.5 MB, free: 76 kB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.31e-05/3.509e-05, allocations: 5.266 kB / 430.5 MB, free: 72 kB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.4029/0.4029, allocations: 144.8 MB / 0.5618 GB, free: 13.77 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.4187, allocations: 10.28 MB / 0.5719 GB, free: 6.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.4202, allocations: 59.78 kB / 0.5719 GB, free: 6.734 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.422, allocations: 0.5204 MB / 0.5724 GB, free: 6.316 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003065/0.4251, allocations: 0.967 MB / 0.5734 GB, free: 5.512 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00263/0.4277, allocations: 0.8364 MB / 0.5742 GB, free: 4.875 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001923/0.4297, allocations: 1.531 MB / 0.5757 GB, free: 3.93 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004091/0.4301, allocations: 203.2 kB / 0.5759 GB, free: 3.797 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.4313, allocations: 0.8398 MB / 0.5767 GB, free: 3.293 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008141/0.4321, allocations: 0.5594 MB / 0.5772 GB, free: 3.016 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001125/0.4323, allocations: 77.69 kB / 0.5773 GB, free: 3.016 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.435, allocations: 1.237 MB / 0.5785 GB, free: 2.246 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002308/0.4352, allocations: 199 kB / 0.5787 GB, free: 2.051 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004791/0.4357, allocations: 363.1 kB / 0.5791 GB, free: 1.695 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00278/0.4385, allocations: 1.631 MB / 0.5807 GB, free: 60 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4385, allocations: 0 / 0.5807 GB, free: 60 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4385, allocations: 0 / 0.5807 GB, free: 60 kB / 462.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.4385, allocations: 0 / 0.5807 GB, free: 60 kB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002783/0.4413, allocations: 1.434 MB / 0.5821 GB, free: 14.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4413, allocations: 9.469 kB / 0.5821 GB, free: 14.58 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004133/0.4417, allocations: 208 kB / 0.5823 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001487/0.4432, allocations: 0.7786 MB / 0.583 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.401e-05/0.4433, allocations: 57.94 kB / 0.5831 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.4434, allocations: 68 kB / 0.5831 GB, free: 13.45 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.4448, allocations: 0.7651 MB / 0.5839 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.4448, allocations: 0 / 0.5839 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.988e-05/0.4448, allocations: 36 kB / 0.5839 GB, free: 12.62 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.4449, allocations: 16 kB / 0.5839 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.4461, allocations: 0.6519 MB / 0.5846 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00351/0.4496, allocations: 2.044 MB / 0.5866 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.4509, allocations: 0.5242 MB / 0.5871 GB, free: 9.34 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.4514, allocations: 228.2 kB / 0.5873 GB, free: 9.113 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001849/0.4532, allocations: 0.909 MB / 0.5882 GB, free: 8.188 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.4533, allocations: 39.06 kB / 0.5882 GB, free: 8.141 MB / 478.1 MB Notification: Performance of pre-optimization done (n=55): time 1.924e-06/0.4533, allocations: 0 / 0.5882 GB, free: 8.141 MB / 478.1 MB Notification: Performance of matching and sorting (n=56): time 0.003863/0.4571, allocations: 1.596 MB / 0.5898 GB, free: 6.504 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.4572, allocations: 55.91 kB / 0.5898 GB, free: 6.438 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009462/0.4581, allocations: 0.6927 MB / 0.5905 GB, free: 5.734 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.615e-05/0.4582, allocations: 33.7 kB / 0.5905 GB, free: 5.695 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004305/0.4586, allocations: 484.5 kB / 0.591 GB, free: 5.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.4588, allocations: 202.2 kB / 0.5912 GB, free: 5.016 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001819/0.459, allocations: 102.3 kB / 0.5913 GB, free: 4.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.4591, allocations: 325.9 kB / 0.5916 GB, free: 4.586 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003734/0.4595, allocations: 165.2 kB / 0.5918 GB, free: 4.426 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004597/0.46, allocations: 254.7 kB / 0.592 GB, free: 4.148 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008705/0.4608, allocations: 453.5 kB / 0.5924 GB, free: 3.68 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4608, allocations: 0 / 0.5924 GB, free: 3.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001527/0.4624, allocations: 0.7005 MB / 0.5931 GB, free: 2.969 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.4624, allocations: 8 kB / 0.5931 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4624, allocations: 0 / 0.5931 GB, free: 2.961 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004726/0.4629, allocations: 120.9 kB / 0.5933 GB, free: 2.84 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004122/0.4633, allocations: 99.88 kB / 0.5933 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002564/0.4658, allocations: 1.912 MB / 0.5952 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000361/0.4662, allocations: 20.02 kB / 0.5952 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.4663, allocations: 24 kB / 0.5953 GB, free: 0.6914 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003466/0.4666, allocations: 209.8 kB / 0.5955 GB, free: 488 kB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.4669, allocations: 127.3 kB / 0.5956 GB, free: 360 kB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001788/0.4687, allocations: 0.8681 MB / 0.5964 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.994e-06/0.4687, allocations: 4 kB / 0.5964 GB, free: 15.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.4687, allocations: 4 kB / 0.5964 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.4687, allocations: 3.984 kB / 0.5964 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002532/0.4712, allocations: 1.342 MB / 0.5977 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4712, allocations: 0 / 0.5977 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003547/0.4716, allocations: 87.89 kB / 0.5978 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003976/0.472, allocations: 124.7 kB / 0.5979 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.357e-05/0.472, allocations: 19.98 kB / 0.598 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002486/0.4745, allocations: 1.896 MB / 0.5998 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.4745, allocations: 7.969 kB / 0.5998 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.4765, allocations: 1.021 MB / 0.6008 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.4767, allocations: 83.3 kB / 0.6009 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.884e-05/0.4768, allocations: 19.98 kB / 0.6009 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.4771, allocations: 12 kB / 0.6009 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.4772, allocations: 48.41 kB / 0.601 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.4772, allocations: 23.98 kB / 0.601 GB, free: 10.61 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007044/0.478, allocations: 0.4912 MB / 0.6015 GB, free: 10.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.478, allocations: 0 / 0.6015 GB, free: 10.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001091/0.479, allocations: 351.5 kB / 0.6018 GB, free: 9.773 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.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 (48): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008659/0.4799, allocations: 497.8 kB / 0.6023 GB, free: 9.289 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.4813, allocations: 0.599 MB / 0.6029 GB, free: 8.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.4813, allocations: 4 kB / 0.6029 GB, free: 8.676 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000842/0.4822, allocations: 417 kB / 0.6033 GB, free: 8.258 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001501/0.4837, allocations: 339.5 kB / 0.6036 GB, free: 7.969 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003499/0.4871, allocations: 1.688 MB / 0.6053 GB, free: 6.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.4876, allocations: 429.7 kB / 0.6057 GB, free: 5.781 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004923/0.4881, allocations: 146.9 kB / 0.6058 GB, free: 5.652 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.4883, allocations: 76.47 kB / 0.6059 GB, free: 5.578 MB / 494.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4883, allocations: 4 kB / 0.6059 GB, free: 5.574 MB / 494.1 MB Notification: Performance of Templates: time 0.03515/0.5235, allocations: 18.4 MB / 0.6238 GB, free: 3.484 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.477260235697031]