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.001687/0.001687, allocations: 108.5 kB / 16.36 MB, free: 6.285 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.001898/0.001898, allocations: 192.5 kB / 17.29 MB, free: 5.863 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6937/0.6937, allocations: 89.49 MB / 380.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 75.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1131, allocations: 67.3 MB / 0.5146 GB, free: 7.207 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.3466/0.4598, allocations: 164.2 MB / 0.675 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01303/0.4728, allocations: 12.86 MB / 0.6875 GB, free: 6.145 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007318/0.4736, allocations: 15.94 kB / 0.6875 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.4751, allocations: 0.5747 MB / 0.6881 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002044/0.4772, allocations: 0.8292 MB / 0.6889 GB, free: 4.719 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002045/0.4792, allocations: 0.8213 MB / 0.6897 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.001308/0.4805, allocations: 1.237 MB / 0.6909 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004199/0.481, allocations: 303.7 kB / 0.6912 GB, free: 2.383 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006042/0.4816, allocations: 0.4981 MB / 0.6917 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.4823, allocations: 0.6459 MB / 0.6923 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.4824, allocations: 80 kB / 0.6924 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002569/0.485, allocations: 1.392 MB / 0.6938 GB, free: 15.76 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.4852, allocations: 183.2 kB / 0.6939 GB, free: 15.58 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003971/0.4856, allocations: 485.5 kB / 0.6944 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.4874, allocations: 1.441 MB / 0.6958 GB, free: 13.66 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4874, allocations: 0 / 0.6958 GB, free: 13.66 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.787e-06/0.4875, allocations: 7.984 kB / 0.6958 GB, free: 13.66 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.364e-05/0.4875, allocations: 0 / 0.6958 GB, free: 13.66 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.002025/0.4895, allocations: 1.301 MB / 0.6971 GB, free: 12.31 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.4895, allocations: 8.031 kB / 0.6971 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.4897, allocations: 111.6 kB / 0.6972 GB, free: 12.19 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007528/0.4905, allocations: 0.5578 MB / 0.6977 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.4905, allocations: 58.38 kB / 0.6978 GB, free: 11.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.564e-05/0.4906, allocations: 68.88 kB / 0.6979 GB, free: 11.47 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00112/0.4918, allocations: 0.7356 MB / 0.6986 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.4918, allocations: 0 / 0.6986 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.912e-05/0.4918, allocations: 24 kB / 0.6986 GB, free: 10.7 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.632e-05/0.4919, allocations: 20 kB / 0.6986 GB, free: 10.68 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.4929, allocations: 0.6363 MB / 0.6992 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.4961, allocations: 3.071 MB / 0.7022 GB, free: 6.668 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.4973, allocations: 0.5761 MB / 0.7028 GB, free: 6.09 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003961/0.4977, allocations: 254.5 kB / 0.703 GB, free: 5.836 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002226/0.4999, allocations: 2.6 MB / 0.7056 GB, free: 2.828 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.4999, allocations: 35.12 kB / 0.7056 GB, free: 2.785 MB / 0.545 GB Notification: Performance of pre-optimization done (n=55): time 1.814e-06/0.4999, allocations: 0 / 0.7056 GB, free: 2.785 MB / 0.545 GB Notification: Performance of matching and sorting (n=56): time 0.003199/0.5031, allocations: 1.739 MB / 0.7073 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.5032, allocations: 59.91 kB / 0.7074 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006327/0.5038, allocations: 0.5706 MB / 0.7079 GB, free: 304 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.5039, allocations: 37.7 kB / 0.708 GB, free: 260 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.5041, allocations: 380.5 kB / 0.7083 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.5043, allocations: 193.1 kB / 0.7085 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/0.5044, allocations: 98.14 kB / 0.7086 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5045, allocations: 374.8 kB / 0.709 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.5049, allocations: 165 kB / 0.7091 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.5052, allocations: 235.2 kB / 0.7093 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007027/0.5059, allocations: 423.8 kB / 0.7097 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.506, allocations: 5.594 kB / 0.7098 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001134/0.5071, allocations: 0.6277 MB / 0.7104 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.5071, allocations: 12.66 kB / 0.7104 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.5071, allocations: 0.5469 kB / 0.7104 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003967/0.5075, allocations: 116.6 kB / 0.7105 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.5079, allocations: 103.9 kB / 0.7106 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002012/0.5099, allocations: 2.037 MB / 0.7126 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003098/0.5103, allocations: 21.8 kB / 0.7126 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.5103, allocations: 19.98 kB / 0.7126 GB, free: 11.27 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.0002562/0.5106, allocations: 205.7 kB / 0.7128 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.5107, allocations: 67.16 kB / 0.7129 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.5122, allocations: 0.858 MB / 0.7137 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5122, allocations: 4 kB / 0.7137 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.5122, allocations: 5.188 kB / 0.7137 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.5122, allocations: 3.984 kB / 0.7137 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.5144, allocations: 1.496 MB / 0.7152 GB, free: 8.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.5144, allocations: 8.031 kB / 0.7152 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00032/0.5147, allocations: 87.89 kB / 0.7153 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003552/0.5151, allocations: 124.6 kB / 0.7154 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.5151, allocations: 12 kB / 0.7154 GB, free: 8.336 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.5171, allocations: 2.047 MB / 0.7174 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.5171, allocations: 0 / 0.7174 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.5187, allocations: 0.9686 MB / 0.7184 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.5189, allocations: 152.1 kB / 0.7185 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.708e-05/0.519, allocations: 16.92 kB / 0.7185 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.5193, allocations: 16 kB / 0.7185 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.078e-05/0.5194, allocations: 40.5 kB / 0.7186 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/0.5194, allocations: 19.98 kB / 0.7186 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004908/0.5199, allocations: 439.1 kB / 0.719 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5199, allocations: 0 / 0.719 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008558/0.5208, allocations: 331.8 kB / 0.7193 GB, free: 4.141 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.0006787/0.5215, allocations: 485.5 kB / 0.7198 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001145/0.5226, allocations: 0.6155 MB / 0.7204 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5226, allocations: 0 / 0.7204 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007247/0.5234, allocations: 439.1 kB / 0.7208 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.5245, allocations: 263.7 kB / 0.7211 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.5267, allocations: 1.403 MB / 0.7224 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.5272, allocations: 0.9651 MB / 0.7234 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003758/0.5276, allocations: 136.7 kB / 0.7235 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5277, allocations: 63.42 kB / 0.7236 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of SimCode: time 3.61e-07/0.5277, allocations: 0 / 0.7236 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of Templates: time 0.2148/0.7425, allocations: 16.15 MB / 0.7393 GB, free: 183.5 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 -s gbode -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