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.007183/0.007183, allocations: 101.6 kB / 15.88 MB, free: 5.867 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.001759/0.001759, allocations: 191.6 kB / 16.79 MB, free: 5.809 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.355/1.355, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6376/0.6376, allocations: 89.51 MB / 380.1 MB, free: 11.21 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 81.77 kB / 458.2 MB, free: 23.95 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1053, allocations: 67.3 MB / 0.5132 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3708/0.4761, allocations: 162.6 MB / 0.672 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01325/0.4894, allocations: 12.95 MB / 0.6846 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.4905, allocations: 20.59 kB / 0.6846 GB, free: 0.582 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.4919, allocations: 0.5058 MB / 0.6851 GB, free: 184 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001918/0.4938, allocations: 0.7678 MB / 0.6859 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001754/0.4956, allocations: 0.7011 MB / 0.6866 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001285/0.4969, allocations: 1.401 MB / 0.6879 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003677/0.4973, allocations: 277.9 kB / 0.6882 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006001/0.4979, allocations: 467.5 kB / 0.6886 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006318/0.4985, allocations: 0.6402 MB / 0.6893 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.502e-05/0.4986, allocations: 54.72 kB / 0.6893 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.5011, allocations: 1.37 MB / 0.6906 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.5012, allocations: 163.7 kB / 0.6908 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003832/0.5016, allocations: 467.8 kB / 0.6912 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.5028, allocations: 1.038 MB / 0.6923 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.5028, allocations: 0 / 0.6923 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.32e-07/0.5028, allocations: 0 / 0.6923 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.387e-06/0.5028, allocations: 0 / 0.6923 GB, free: 11.68 MB / 0.4981 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.002103/0.5049, allocations: 1.302 MB / 0.6935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.505, allocations: 10 kB / 0.6935 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001738/0.5051, allocations: 112.8 kB / 0.6937 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007153/0.5059, allocations: 0.5538 MB / 0.6942 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.422e-05/0.5059, allocations: 54.38 kB / 0.6942 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.003e-05/0.506, allocations: 72.31 kB / 0.6943 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.5072, allocations: 0.7356 MB / 0.695 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.5072, allocations: 4 kB / 0.695 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.5073, allocations: 24 kB / 0.6951 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.5073, allocations: 16 kB / 0.6951 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.5083, allocations: 0.6363 MB / 0.6957 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003171/0.5115, allocations: 3.077 MB / 0.6987 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.5127, allocations: 0.5675 MB / 0.6993 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004039/0.5131, allocations: 259.9 kB / 0.6995 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002252/0.5153, allocations: 2.588 MB / 0.702 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.5154, allocations: 39.12 kB / 0.7021 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=55): time 3.186e-06/0.5154, allocations: 3.984 kB / 0.7021 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=56): time 0.003329/0.5187, allocations: 1.739 MB / 0.7038 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.5188, allocations: 59.91 kB / 0.7038 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006281/0.5194, allocations: 0.5706 MB / 0.7044 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.5195, allocations: 37.7 kB / 0.7044 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.5197, allocations: 380.3 kB / 0.7048 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.5198, allocations: 193.1 kB / 0.705 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.52, allocations: 98.16 kB / 0.7051 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5201, allocations: 374.8 kB / 0.7054 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.5204, allocations: 165 kB / 0.7056 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.5208, allocations: 235.2 kB / 0.7058 GB, free: 13.15 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007258/0.5216, allocations: 431.8 kB / 0.7062 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5216, allocations: 0 / 0.7062 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001178/0.5228, allocations: 0.6316 MB / 0.7068 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.5228, allocations: 4 kB / 0.7068 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.5228, allocations: 0 / 0.7068 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.5232, allocations: 116.8 kB / 0.7069 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.5236, allocations: 95.89 kB / 0.707 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/0.5256, allocations: 1.9 MB / 0.7089 GB, free: 9.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004352/0.526, allocations: 36.06 kB / 0.7089 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.5261, allocations: 23.98 kB / 0.7089 GB, free: 9.766 MB / 0.5137 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.0002855/0.5264, allocations: 205.6 kB / 0.7091 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.5265, allocations: 67.16 kB / 0.7092 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001573/0.5281, allocations: 0.8585 MB / 0.71 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.5281, allocations: 4 kB / 0.71 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.5281, allocations: 7.938 kB / 0.7101 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.5281, allocations: 112 / 0.7101 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.5304, allocations: 1.508 MB / 0.7115 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.5304, allocations: 0 / 0.7115 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000333/0.5308, allocations: 87.89 kB / 0.7116 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/0.5312, allocations: 116.8 kB / 0.7117 GB, free: 6.809 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.918e-05/0.5312, allocations: 23.94 kB / 0.7117 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/0.5331, allocations: 1.903 MB / 0.7136 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5331, allocations: 0 / 0.7136 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.5347, allocations: 0.9599 MB / 0.7145 GB, free: 3.754 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.5349, allocations: 148.2 kB / 0.7147 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.035e-05/0.535, allocations: 12 kB / 0.7147 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/0.5353, allocations: 35.97 kB / 0.7147 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.5354, allocations: 48.44 kB / 0.7148 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.769e-05/0.5355, allocations: 19.98 kB / 0.7148 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004938/0.536, allocations: 439.1 kB / 0.7152 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.536, allocations: 0 / 0.7152 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0009046/0.5369, allocations: 327.8 kB / 0.7155 GB, free: 2.734 MB / 0.5137 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.0006642/0.5376, allocations: 483.5 kB / 0.716 GB, free: 2.254 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001183/0.5388, allocations: 0.6269 MB / 0.7166 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5388, allocations: 0 / 0.7166 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006995/0.5395, allocations: 438.1 kB / 0.717 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001165/0.5407, allocations: 228 kB / 0.7172 GB, free: 0.957 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002416/0.5431, allocations: 1.798 MB / 0.719 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.5436, allocations: 0.9576 MB / 0.7199 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001877/0.5437, allocations: 75.41 kB / 0.72 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of SimCode: time 8.92e-07/0.5438, allocations: 0 / 0.72 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of Templates: time 0.01994/0.5637, allocations: 17.21 MB / 0.7368 GB, free: 12.88 MB / 0.545 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