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.002028/0.002028, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.002782/0.002782, allocations: 215.1 kB / 22.25 MB, free: 5.242 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.787/1.787, allocations: 230.6 MB / 256 MB, free: 7.801 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 1.083/1.083, allocations: 94.63 MB / 407.1 MB, free: 8.836 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.002748/0.002748, allocations: 84.56 kB / 0.5549 GB, free: 38.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2657, allocations: 73.04 MB / 0.6263 GB, free: 184 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.9801/1.246, allocations: 143 MB / 0.7659 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02318/1.269, allocations: 11.87 MB / 0.7775 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002438/1.271, allocations: 58.59 kB / 0.7775 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003343/1.275, allocations: 0.5133 MB / 0.778 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00632/1.281, allocations: 0.8869 MB / 0.7789 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005374/1.286, allocations: 0.805 MB / 0.7797 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004548/1.291, allocations: 1.369 MB / 0.781 GB, free: 2.969 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001069/1.292, allocations: 198.1 kB / 0.7812 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002771/1.295, allocations: 0.5849 MB / 0.7818 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/1.297, allocations: 0.6199 MB / 0.7824 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006105/1.297, allocations: 78.09 kB / 0.7825 GB, free: 2.93 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006318/1.304, allocations: 1.223 MB / 0.7837 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000779/1.305, allocations: 194.6 kB / 0.7839 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002335/1.307, allocations: 422.6 kB / 0.7843 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006734/1.314, allocations: 1.575 MB / 0.7858 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/1.314, allocations: 0.6875 kB / 0.7858 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.317e-06/1.314, allocations: 0 / 0.7858 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.091e-05/1.314, allocations: 0.8125 kB / 0.7858 GB, free: 2.609 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.005388/1.319, allocations: 1.391 MB / 0.7872 GB, free: 17.87 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.319e-05/1.319, allocations: 11.44 kB / 0.7872 GB, free: 17.87 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/1.319, allocations: 115.4 kB / 0.7873 GB, free: 17.83 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/1.32, allocations: 130.7 kB / 0.7874 GB, free: 17.76 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00154/1.321, allocations: 0.7051 MB / 0.7881 GB, free: 17.47 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.524e-05/1.321, allocations: 51.59 kB / 0.7881 GB, free: 17.47 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/1.321, allocations: 71.86 kB / 0.7882 GB, free: 17.47 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/1.323, allocations: 0.7438 MB / 0.7889 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/1.323, allocations: 1.469 kB / 0.7889 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/1.323, allocations: 29.41 kB / 0.789 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/1.323, allocations: 14.75 kB / 0.789 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/1.324, allocations: 0.6481 MB / 0.7896 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003775/1.328, allocations: 1.854 MB / 0.7914 GB, free: 16.92 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/1.329, allocations: 0.5233 MB / 0.7919 GB, free: 16.88 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004201/1.33, allocations: 228.4 kB / 0.7922 GB, free: 16.88 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001949/1.332, allocations: 0.9067 MB / 0.793 GB, free: 16.61 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/1.332, allocations: 38.5 kB / 0.7931 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.104e-06/1.332, allocations: 0 / 0.7931 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.003618/1.335, allocations: 1.569 MB / 0.7946 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/1.335, allocations: 60.84 kB / 0.7947 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009972/1.336, allocations: 0.6946 MB / 0.7953 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/1.336, allocations: 39.84 kB / 0.7954 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003792/1.337, allocations: 448.2 kB / 0.7958 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/1.337, allocations: 199 kB / 0.796 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/1.337, allocations: 93.08 kB / 0.7961 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002154/1.337, allocations: 325.5 kB / 0.7964 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/1.338, allocations: 164.5 kB / 0.7966 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005028/1.338, allocations: 227.8 kB / 0.7968 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008338/1.339, allocations: 429.9 kB / 0.7972 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/1.339, allocations: 0 / 0.7972 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001376/1.34, allocations: 0.6522 MB / 0.7978 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/1.34, allocations: 7.844 kB / 0.7978 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/1.34, allocations: 4 kB / 0.7978 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004499/1.341, allocations: 113 kB / 0.7979 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/1.341, allocations: 98.16 kB / 0.798 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002649/1.344, allocations: 1.923 MB / 0.7999 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004179/1.344, allocations: 21.27 kB / 0.7999 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/1.344, allocations: 22.8 kB / 0.7999 GB, free: 13.84 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.0004966/1.345, allocations: 209.7 kB / 0.8001 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/1.345, allocations: 99.83 kB / 0.8002 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/1.347, allocations: 0.8624 MB / 0.8011 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/1.347, allocations: 7.531 kB / 0.8011 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.347, allocations: 4.375 kB / 0.8011 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/1.347, allocations: 6.938 kB / 0.8011 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/1.35, allocations: 1.404 MB / 0.8025 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/1.35, allocations: 6.312 kB / 0.8025 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003289/1.35, allocations: 92.03 kB / 0.8026 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003808/1.35, allocations: 117.7 kB / 0.8027 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.869e-05/1.351, allocations: 19.53 kB / 0.8027 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002585/1.353, allocations: 1.932 MB / 0.8046 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.353, allocations: 4.469 kB / 0.8046 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/1.355, allocations: 0.9784 MB / 0.8055 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/1.355, allocations: 92.03 kB / 0.8056 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.872e-05/1.355, allocations: 14.12 kB / 0.8056 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/1.356, allocations: 16.36 kB / 0.8057 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/1.356, allocations: 53.48 kB / 0.8057 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.169e-05/1.356, allocations: 20.83 kB / 0.8057 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007383/1.356, allocations: 0.5037 MB / 0.8062 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.356, allocations: 0.6875 kB / 0.8062 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0014/1.358, allocations: 332.9 kB / 0.8065 GB, free: 10.91 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.003294/1.361, allocations: 1.904 MB / 0.8084 GB, free: 9.816 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001895/1.363, allocations: 0.5881 MB / 0.809 GB, free: 9.547 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.363, allocations: 3.188 kB / 0.809 GB, free: 9.547 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009592/1.364, allocations: 416.8 kB / 0.8094 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/1.366, allocations: 276.7 kB / 0.8096 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/1.381, allocations: 6.324 MB / 0.8158 GB, free: 6.02 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000766/1.381, allocations: 418.5 kB / 0.8162 GB, free: 5.902 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0009421/1.382, allocations: 143.1 kB / 0.8164 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006875/1.383, allocations: 383.2 kB / 0.8167 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of SimCode: time 3.617e-06/1.383, allocations: 0 / 0.8167 GB, free: 5.566 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09167/1.475, allocations: 27.63 MB / 0.8437 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.89, allocations: 7.25 kB / 0.8437 GB, free: 3.762 MB / 0.6075 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.79544043634087]