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.00146/0.00146, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001657/0.001657, allocations: 215.5 kB / 22.25 MB, free: 5.125 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.878/0.878, allocations: 94.55 MB / 407 MB, free: 9.195 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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: "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.004587/0.004587, allocations: 80.05 kB / 0.5549 GB, free: 38.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2063, allocations: 73.06 MB / 0.6263 GB, free: 488 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.8186/1.025, allocations: 165.5 MB / 0.7879 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01771/1.043, allocations: 13.09 MB / 0.8007 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002139/1.045, allocations: 59.41 kB / 0.8007 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002236/1.047, allocations: 0.5854 MB / 0.8013 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003833/1.051, allocations: 0.8975 MB / 0.8022 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003125/1.054, allocations: 0.8354 MB / 0.803 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002733/1.057, allocations: 1.367 MB / 0.8043 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006107/1.057, allocations: 203.4 kB / 0.8045 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001641/1.059, allocations: 0.5898 MB / 0.8051 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001289/1.06, allocations: 0.671 MB / 0.8057 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001587/1.06, allocations: 78.41 kB / 0.8058 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004438/1.065, allocations: 1.412 MB / 0.8072 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003296/1.065, allocations: 196.4 kB / 0.8074 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009692/1.066, allocations: 0.5233 MB / 0.8079 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004421/1.071, allocations: 1.581 MB / 0.8094 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/1.071, allocations: 1.875 kB / 0.8094 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.094e-06/1.071, allocations: 0 / 0.8094 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.078e-05/1.071, allocations: 0 / 0.8094 GB, free: 0.707 MB / 0.5762 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.003274/1.074, allocations: 1.392 MB / 0.8108 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.414e-05/1.074, allocations: 11.12 kB / 0.8108 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001706/1.074, allocations: 109.5 kB / 0.8109 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000265/1.074, allocations: 131.6 kB / 0.811 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/1.076, allocations: 0.7065 MB / 0.8117 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/1.076, allocations: 50.06 kB / 0.8118 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/1.076, allocations: 73.94 kB / 0.8118 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/1.077, allocations: 0.7366 MB / 0.8126 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/1.078, allocations: 2.531 kB / 0.8126 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.112e-05/1.078, allocations: 29.72 kB / 0.8126 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/1.078, allocations: 15.69 kB / 0.8126 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/1.079, allocations: 0.6583 MB / 0.8133 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004639/1.083, allocations: 3.074 MB / 0.8163 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/1.085, allocations: 0.5293 MB / 0.8168 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/1.085, allocations: 234.5 kB / 0.817 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002008/1.087, allocations: 0.9998 MB / 0.818 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/1.087, allocations: 37.5 kB / 0.818 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.424e-06/1.087, allocations: 0 / 0.818 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.004053/1.091, allocations: 1.555 MB / 0.8195 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/1.091, allocations: 56.34 kB / 0.8196 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/1.093, allocations: 0.6992 MB / 0.8203 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.072e-05/1.093, allocations: 37.11 kB / 0.8203 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005303/1.093, allocations: 447.9 kB / 0.8207 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.00026/1.093, allocations: 206.2 kB / 0.8209 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/1.094, allocations: 86.19 kB / 0.821 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002274/1.094, allocations: 326.9 kB / 0.8213 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/1.094, allocations: 164.6 kB / 0.8215 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004889/1.095, allocations: 229.8 kB / 0.8217 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008957/1.096, allocations: 431 kB / 0.8221 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.096, allocations: 2.844 kB / 0.8221 GB, free: 9.434 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001566/1.097, allocations: 0.6436 MB / 0.8227 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.677e-05/1.097, allocations: 5.062 kB / 0.8227 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.097, allocations: 0 / 0.8227 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/1.098, allocations: 119.1 kB / 0.8229 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/1.098, allocations: 98.86 kB / 0.8229 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002643/1.101, allocations: 1.939 MB / 0.8248 GB, free: 7.324 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004672/1.101, allocations: 19.7 kB / 0.8249 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.636e-05/1.101, allocations: 27.95 kB / 0.8249 GB, free: 7.301 MB / 0.5919 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.000551/1.102, allocations: 204.5 kB / 0.8251 GB, free: 7.133 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002011/1.102, allocations: 96.2 kB / 0.8252 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/1.104, allocations: 0.8609 MB / 0.826 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/1.104, allocations: 8.406 kB / 0.826 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.104, allocations: 0 / 0.826 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/1.104, allocations: 7.922 kB / 0.826 GB, free: 6.523 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003237/1.107, allocations: 1.505 MB / 0.8275 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/1.107, allocations: 5.594 kB / 0.8275 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000344/1.108, allocations: 91.81 kB / 0.8276 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/1.108, allocations: 116 kB / 0.8277 GB, free: 5.402 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/1.108, allocations: 23.77 kB / 0.8277 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002777/1.111, allocations: 1.944 MB / 0.8296 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/1.111, allocations: 2.469 kB / 0.8296 GB, free: 3.688 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/1.113, allocations: 0.9825 MB / 0.8306 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002392/1.113, allocations: 90.36 kB / 0.8307 GB, free: 3.023 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.447e-05/1.113, allocations: 13.16 kB / 0.8307 GB, free: 3.016 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/1.114, allocations: 16.91 kB / 0.8307 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/1.114, allocations: 49.81 kB / 0.8307 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/1.114, allocations: 21.02 kB / 0.8308 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008284/1.115, allocations: 0.5053 MB / 0.8313 GB, free: 2.68 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/1.115, allocations: 6.562 kB / 0.8313 GB, free: 2.676 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001347/1.116, allocations: 335.8 kB / 0.8316 GB, free: 2.586 MB / 0.5919 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.003502/1.12, allocations: 1.885 MB / 0.8334 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001625/1.121, allocations: 0.59 MB / 0.834 GB, free: 0.9922 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.121, allocations: 0 / 0.834 GB, free: 0.9922 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000838/1.122, allocations: 420 kB / 0.8344 GB, free: 0.7344 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/1.123, allocations: 284.3 kB / 0.8347 GB, free: 0.5859 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/1.135, allocations: 6.318 MB / 0.8408 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007841/1.136, allocations: 1.001 MB / 0.8418 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0007817/1.136, allocations: 149.9 kB / 0.842 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/1.137, allocations: 379.3 kB / 0.8423 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of SimCode: time 2.434e-06/1.137, allocations: 0 / 0.8423 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08822/1.225, allocations: 26.28 MB / 0.868 GB, free: 1.086 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.89, allocations: 7.266 kB / 0.868 GB, free: 1.082 MB / 0.6231 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.0827310429886]