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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) 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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 110.3 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 194 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6943/0.6943, allocations: 91.18 MB / 381.9 MB, free: 7.629 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 79.88 kB / 460.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1287, allocations: 67.68 MB / 0.5158 GB, free: 5.605 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3939/0.5227, allocations: 163.1 MB / 0.6751 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01546/0.5383, allocations: 12.96 MB / 0.6877 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001345/0.5397, allocations: 51.62 kB / 0.6878 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.5414, allocations: 0.5248 MB / 0.6883 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.5436, allocations: 0.8029 MB / 0.6891 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002175/0.5458, allocations: 0.736 MB / 0.6898 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001859/0.5477, allocations: 1.339 MB / 0.6911 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004982/0.5482, allocations: 310.3 kB / 0.6914 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009483/0.5492, allocations: 0.5444 MB / 0.6919 GB, free: 48 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000874/0.55, allocations: 0.6769 MB / 0.6926 GB, free: 15.37 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.5502, allocations: 80 kB / 0.6927 GB, free: 15.29 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0036/0.5538, allocations: 1.4 MB / 0.694 GB, free: 13.89 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003671/0.5542, allocations: 195.1 kB / 0.6942 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005567/0.5547, allocations: 0.5128 MB / 0.6947 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001974/0.5567, allocations: 1.138 MB / 0.6958 GB, free: 12.04 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5567, allocations: 0 / 0.6958 GB, free: 12.04 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.267e-06/0.5567, allocations: 0 / 0.6958 GB, free: 12.04 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.533e-05/0.5568, allocations: 4 kB / 0.6958 GB, free: 12.04 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002831/0.5596, allocations: 1.424 MB / 0.6972 GB, free: 10.56 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.5597, allocations: 8.031 kB / 0.6972 GB, free: 10.55 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.5599, allocations: 123.5 kB / 0.6974 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.5611, allocations: 0.7095 MB / 0.698 GB, free: 9.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/0.5611, allocations: 56.78 kB / 0.6981 GB, free: 9.629 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-05/0.5612, allocations: 68 kB / 0.6982 GB, free: 9.562 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.5625, allocations: 0.7353 MB / 0.6989 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.5625, allocations: 0 / 0.6989 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.274e-05/0.5625, allocations: 24 kB / 0.6989 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.711e-05/0.5626, allocations: 20 kB / 0.6989 GB, free: 8.77 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.5637, allocations: 0.6363 MB / 0.6995 GB, free: 8.137 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.5674, allocations: 3.108 MB / 0.7026 GB, free: 4.723 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.5686, allocations: 0.583 MB / 0.7032 GB, free: 4.129 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/0.569, allocations: 260.2 kB / 0.7034 GB, free: 3.875 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00245/0.5715, allocations: 2.588 MB / 0.7059 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.486e-05/0.5716, allocations: 39.12 kB / 0.706 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of pre-optimization done (n=55): time 2.445e-06/0.5716, allocations: 0 / 0.706 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of matching and sorting (n=56): time 0.0035/0.5751, allocations: 1.773 MB / 0.7077 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.5752, allocations: 59.97 kB / 0.7078 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008307/0.576, allocations: 0.6888 MB / 0.7084 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.576, allocations: 37.7 kB / 0.7085 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002849/0.5763, allocations: 432.3 kB / 0.7089 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.5765, allocations: 189.2 kB / 0.7091 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.5767, allocations: 90.25 kB / 0.7091 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.5768, allocations: 330 kB / 0.7095 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003998/0.5772, allocations: 161 kB / 0.7096 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.5776, allocations: 227.2 kB / 0.7098 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000716/0.5783, allocations: 436.5 kB / 0.7102 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.5783, allocations: 0 / 0.7102 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001247/0.5796, allocations: 0.6508 MB / 0.7109 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.5796, allocations: 4.781 kB / 0.7109 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5796, allocations: 6.625 kB / 0.7109 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004117/0.58, allocations: 117.7 kB / 0.711 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.5804, allocations: 99.83 kB / 0.7111 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.5827, allocations: 2.047 MB / 0.7131 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.5831, allocations: 39.97 kB / 0.7131 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.637e-05/0.5831, allocations: 24.98 kB / 0.7132 GB, free: 9.129 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (51): * Single equations (assignments): 50 * 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.0003402/0.5835, allocations: 205.7 kB / 0.7134 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.5836, allocations: 98.78 kB / 0.7134 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.5852, allocations: 0.8632 MB / 0.7143 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.5852, allocations: 4 kB / 0.7143 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.5852, allocations: 11.92 kB / 0.7143 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.5853, allocations: 0 / 0.7143 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.5876, allocations: 1.538 MB / 0.7158 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.5876, allocations: 96 / 0.7158 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003212/0.5879, allocations: 93.02 kB / 0.7159 GB, free: 6.246 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004002/0.5883, allocations: 120.7 kB / 0.716 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.5884, allocations: 20 kB / 0.716 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002112/0.5905, allocations: 2.046 MB / 0.718 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.5905, allocations: 4.578 kB / 0.718 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.5921, allocations: 0.9753 MB / 0.719 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.5923, allocations: 156 kB / 0.7191 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.487e-05/0.5924, allocations: 13.12 kB / 0.7191 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003695/0.5928, allocations: 39.94 kB / 0.7192 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.5929, allocations: 48.5 kB / 0.7192 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.5929, allocations: 23.92 kB / 0.7193 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006417/0.5936, allocations: 0.5029 MB / 0.7197 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5936, allocations: 0 / 0.7197 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008643/0.5945, allocations: 335.8 kB / 0.7201 GB, free: 1.797 MB / 0.5606 GB 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.000829/0.5953, allocations: 489.2 kB / 0.7205 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001363/0.5967, allocations: 0.6311 MB / 0.7211 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5967, allocations: 2.062 kB / 0.7212 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007/0.5974, allocations: 441.5 kB / 0.7216 GB, free: 240 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.5987, allocations: 267.5 kB / 0.7218 GB, free: 4 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002956/0.6016, allocations: 1.97 MB / 0.7238 GB, free: 13.99 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.6022, allocations: 1.008 MB / 0.7247 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.6024, allocations: 83.41 kB / 0.7248 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of SimCode: time 6.11e-07/0.6024, allocations: 0 / 0.7248 GB, free: 12.88 MB / 0.5762 GB Notification: Performance of Templates: time 0.2363/0.8387, allocations: 18.88 MB / 0.7433 GB, free: 180.4 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (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) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches