Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7409/0.7409, allocations: 93.71 MB / 384.1 MB, free: 7.004 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 82.27 kB / 463.4 MB, free: 22.03 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1335, allocations: 68.27 MB / 0.5192 GB, free: 7.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.05509/0.1886, allocations: 53.26 MB / 0.5712 GB, free: 1.574 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3163/0.505, allocations: 21.56 MB / 0.5923 GB, free: 6.305 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002378/0.5074, allocations: 71.19 kB / 0.5923 GB, free: 6.305 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003026/0.5105, allocations: 0.8989 MB / 0.5932 GB, free: 6.301 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005808/0.5163, allocations: 1.691 MB / 0.5949 GB, free: 6.246 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003986/0.5203, allocations: 1.331 MB / 0.5962 GB, free: 6.203 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.004643/0.525, allocations: 2.561 MB / 0.5987 GB, free: 6.195 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.5261, allocations: 495.5 kB / 0.5991 GB, free: 6.074 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003094/0.5292, allocations: 1.038 MB / 0.6001 GB, free: 5.996 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002104/0.5313, allocations: 0.9437 MB / 0.6011 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004221/0.5318, allocations: 135 kB / 0.6012 GB, free: 5.754 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004888/0.5367, allocations: 1.239 MB / 0.6024 GB, free: 5.707 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006083/0.5373, allocations: 340.7 kB / 0.6027 GB, free: 5.629 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001899/0.5392, allocations: 0.9043 MB / 0.6036 GB, free: 5.32 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009157/0.5484, allocations: 2.608 MB / 0.6062 GB, free: 4.855 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.118e-05/0.5485, allocations: 0.5156 kB / 0.6062 GB, free: 4.855 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.5485, allocations: 0 / 0.6062 GB, free: 4.855 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001197/0.5486, allocations: 4 kB / 0.6062 GB, free: 4.852 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.00745/0.5561, allocations: 2.348 MB / 0.6085 GB, free: 19.66 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.5561, allocations: 12.06 kB / 0.6085 GB, free: 19.66 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004543/0.5566, allocations: 212.7 kB / 0.6087 GB, free: 19.55 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001998/0.5586, allocations: 1.174 MB / 0.6098 GB, free: 19.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.5587, allocations: 87.59 kB / 0.6099 GB, free: 19.09 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.5588, allocations: 117.3 kB / 0.61 GB, free: 19.09 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.5609, allocations: 1.207 MB / 0.6112 GB, free: 18.97 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.5609, allocations: 0 / 0.6112 GB, free: 18.97 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-05/0.561, allocations: 47.19 kB / 0.6112 GB, free: 18.97 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.5611, allocations: 27.97 kB / 0.6113 GB, free: 18.97 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.5629, allocations: 1.133 MB / 0.6124 GB, free: 18.95 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007165/0.5701, allocations: 5.044 MB / 0.6173 GB, free: 16.28 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00176/0.5719, allocations: 0.9117 MB / 0.6182 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008263/0.5727, allocations: 486.8 kB / 0.6187 GB, free: 16.21 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0057/0.5784, allocations: 5.151 MB / 0.6237 GB, free: 11.66 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.5785, allocations: 46.19 kB / 0.6237 GB, free: 11.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=103): time 2.725e-06/0.5785, allocations: 0 / 0.6237 GB, free: 11.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=103): time 0.003653/0.5822, allocations: 1.724 MB / 0.6254 GB, free: 11.17 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.5822, allocations: 62.28 kB / 0.6255 GB, free: 11.11 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.584, allocations: 1.276 MB / 0.6267 GB, free: 10.95 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.517e-05/0.5841, allocations: 45.8 kB / 0.6268 GB, free: 10.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00049/0.5846, allocations: 0.7564 MB / 0.6275 GB, free: 10.69 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.5849, allocations: 354.5 kB / 0.6278 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.5852, allocations: 177.9 kB / 0.628 GB, free: 10.44 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5853, allocations: 341 kB / 0.6283 GB, free: 10.14 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005362/0.5859, allocations: 298.1 kB / 0.6286 GB, free: 10.03 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006666/0.5865, allocations: 445.1 kB / 0.629 GB, free: 9.789 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.5878, allocations: 0.7669 MB / 0.6298 GB, free: 9.395 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.5878, allocations: 1.156 kB / 0.6298 GB, free: 9.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002296/0.5901, allocations: 1.14 MB / 0.6309 GB, free: 8.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.5902, allocations: 11.47 kB / 0.6309 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.5902, allocations: 2.375 kB / 0.6309 GB, free: 8.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006552/0.5908, allocations: 171.4 kB / 0.6311 GB, free: 8.844 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006724/0.5915, allocations: 196.6 kB / 0.6313 GB, free: 8.832 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003786/0.5953, allocations: 4.812 MB / 0.636 GB, free: 4.273 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.5964, allocations: 83.89 kB / 0.636 GB, free: 4.215 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.5966, allocations: 44.73 kB / 0.6361 GB, free: 4.203 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.0007044/0.5973, allocations: 280.5 kB / 0.6364 GB, free: 3.992 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003601/0.5977, allocations: 165.8 kB / 0.6365 GB, free: 3.902 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/0.6007, allocations: 1.647 MB / 0.6381 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.6007, allocations: 10.59 kB / 0.6381 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.6007, allocations: 2.875 kB / 0.6381 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.6008, allocations: 7.031 kB / 0.6381 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004664/0.6054, allocations: 2.632 MB / 0.6407 GB, free: 1.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.6055, allocations: 3 kB / 0.6407 GB, free: 1.828 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005612/0.606, allocations: 165.4 kB / 0.6409 GB, free: 1.797 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005782/0.6066, allocations: 174.2 kB / 0.641 GB, free: 1.691 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.052e-05/0.6067, allocations: 32.3 kB / 0.6411 GB, free: 1.672 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003999/0.6107, allocations: 4.82 MB / 0.6458 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.6107, allocations: 6.375 kB / 0.6458 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003706/0.6144, allocations: 1.631 MB / 0.6474 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.6156, allocations: 344.4 kB / 0.6477 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.6158, allocations: 23.53 kB / 0.6477 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006162/0.6164, allocations: 28.64 kB / 0.6478 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.6167, allocations: 82.95 kB / 0.6478 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.6168, allocations: 46.64 kB / 0.6479 GB, free: 11.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001612/0.6184, allocations: 0.9035 MB / 0.6488 GB, free: 11.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.435e-06/0.6184, allocations: 0 / 0.6488 GB, free: 11.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002733/0.6212, allocations: 0.5971 MB / 0.6493 GB, free: 10.91 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.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 (92): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.001552/0.6227, allocations: 0.7124 MB / 0.65 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002838/0.6256, allocations: 1.232 MB / 0.6512 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.6256, allocations: 0.5625 kB / 0.6512 GB, free: 9.836 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.6268, allocations: 0.8277 MB / 0.6521 GB, free: 9.273 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/0.6294, allocations: 0.5338 MB / 0.6526 GB, free: 8.984 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004562/0.634, allocations: 2.792 MB / 0.6553 GB, free: 7.301 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007733/0.6348, allocations: 1.264 MB / 0.6565 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001223/0.636, allocations: 293.8 kB / 0.6568 GB, free: 6.219 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.6363, allocations: 140 kB / 0.6569 GB, free: 6.18 MB / 494.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6363, allocations: 0 / 0.6569 GB, free: 6.18 MB / 494.1 MB Notification: Performance of Templates: time 0.05266/0.689, allocations: 29.27 MB / 0.6855 GB, free: 10.84 MB / 0.5137 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches