Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.00181/0.00181, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002253/0.002253, allocations: 211 kB / 23.02 MB, free: 4.953 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.534/1.534, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.884/0.884, allocations: 100.3 MB / 413.5 MB, free: 3.426 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.TanValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve",fmuType="cs",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.002404/0.002404, allocations: 87.44 kB / 0.564 GB, free: 35.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1619, allocations: 74.47 MB / 0.6367 GB, free: 7.414 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5673/0.7291, allocations: 142.9 MB / 0.7762 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01459/0.7437, allocations: 11.85 MB / 0.7878 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.7456, allocations: 55.19 kB / 0.7879 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002005/0.7476, allocations: 0.5108 MB / 0.7883 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003613/0.7512, allocations: 0.8874 MB / 0.7892 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002993/0.7542, allocations: 0.8056 MB / 0.79 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002587/0.7568, allocations: 1.37 MB / 0.7913 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004992/0.7572, allocations: 202.1 kB / 0.7915 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.7587, allocations: 0.5864 MB / 0.7921 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.7598, allocations: 0.6719 MB / 0.7928 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.7599, allocations: 77.62 kB / 0.7928 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003462/0.7634, allocations: 1.236 MB / 0.794 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001973/0.7636, allocations: 200.2 kB / 0.7942 GB, free: 2.586 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005419/0.7641, allocations: 421.7 kB / 0.7946 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003017/0.7671, allocations: 1.574 MB / 0.7962 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.7671, allocations: 4.062 kB / 0.7962 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7671, allocations: 0 / 0.7962 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.757e-05/0.7672, allocations: 0.9062 kB / 0.7962 GB, free: 2.195 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.00247/0.7696, allocations: 1.397 MB / 0.7975 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.7697, allocations: 10.62 kB / 0.7976 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.951e-05/0.7697, allocations: 20.59 kB / 0.7976 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.7698, allocations: 114.5 kB / 0.7977 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000247/0.7701, allocations: 131 kB / 0.7978 GB, free: 17.33 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.7712, allocations: 0.7075 MB / 0.7985 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.7712, allocations: 47.34 kB / 0.7985 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.001e-05/0.7713, allocations: 75.42 kB / 0.7986 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.7725, allocations: 0.7433 MB / 0.7993 GB, free: 16.97 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.7725, allocations: 2.25 kB / 0.7993 GB, free: 16.97 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.7725, allocations: 26.69 kB / 0.7994 GB, free: 16.97 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.7725, allocations: 17.47 kB / 0.7994 GB, free: 16.97 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009603/0.7735, allocations: 0.6548 MB / 0.8 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.7762, allocations: 1.85 MB / 0.8018 GB, free: 16.49 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.7773, allocations: 0.5243 MB / 0.8023 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003409/0.7776, allocations: 225.6 kB / 0.8026 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001617/0.7792, allocations: 0.9162 MB / 0.8035 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.7793, allocations: 38.44 kB / 0.8035 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 1.914e-06/0.7793, allocations: 1.062 kB / 0.8035 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.00311/0.7824, allocations: 1.559 MB / 0.805 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.7824, allocations: 60.97 kB / 0.8051 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006973/0.7831, allocations: 0.7014 MB / 0.8058 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.163e-05/0.7832, allocations: 31.98 kB / 0.8058 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002375/0.7834, allocations: 451.9 kB / 0.8062 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.7836, allocations: 199.3 kB / 0.8064 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.7837, allocations: 93.28 kB / 0.8065 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.7839, allocations: 327 kB / 0.8068 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003192/0.7842, allocations: 162.9 kB / 0.807 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003795/0.7845, allocations: 230.6 kB / 0.8072 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007482/0.7853, allocations: 432.2 kB / 0.8076 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.7853, allocations: 3.938 kB / 0.8076 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001311/0.7866, allocations: 0.6481 MB / 0.8082 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.7866, allocations: 8.094 kB / 0.8082 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.7866, allocations: 0 / 0.8082 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004528/0.7871, allocations: 115.7 kB / 0.8083 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.7875, allocations: 98.72 kB / 0.8084 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002271/0.7897, allocations: 1.921 MB / 0.8103 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/0.7901, allocations: 15.14 kB / 0.8103 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/0.7902, allocations: 24.97 kB / 0.8104 GB, free: 11.93 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.0003635/0.7905, allocations: 209.1 kB / 0.8106 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.7908, allocations: 96.88 kB / 0.8107 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/0.7924, allocations: 0.8613 MB / 0.8115 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.7924, allocations: 6.531 kB / 0.8115 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.7924, allocations: 2.594 kB / 0.8115 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.7924, allocations: 8.125 kB / 0.8115 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.7947, allocations: 1.419 MB / 0.8129 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.7947, allocations: 0.9062 kB / 0.8129 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.7951, allocations: 88.66 kB / 0.813 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003675/0.7954, allocations: 116.7 kB / 0.8131 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.7955, allocations: 23.91 kB / 0.8131 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.7976, allocations: 1.924 MB / 0.815 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.7976, allocations: 2.594 kB / 0.815 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.7993, allocations: 0.9845 MB / 0.816 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.7994, allocations: 82.62 kB / 0.816 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.7995, allocations: 13.47 kB / 0.816 GB, free: 8.375 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.7999, allocations: 16.92 kB / 0.8161 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.8, allocations: 52.98 kB / 0.8161 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.8, allocations: 20.78 kB / 0.8161 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006102/0.8006, allocations: 0.5066 MB / 0.8166 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.8006, allocations: 3.844 kB / 0.8166 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001045/0.8017, allocations: 332.3 kB / 0.8169 GB, free: 8.062 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.002843/0.8045, allocations: 1.906 MB / 0.8188 GB, free: 6.945 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001303/0.8058, allocations: 0.5902 MB / 0.8194 GB, free: 6.672 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.8058, allocations: 2.625 kB / 0.8194 GB, free: 6.672 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007493/0.8066, allocations: 417.6 kB / 0.8198 GB, free: 6.461 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.8079, allocations: 277.3 kB / 0.8201 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.8179, allocations: 6.319 MB / 0.8262 GB, free: 3.125 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004922/0.8184, allocations: 415.7 kB / 0.8266 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0006674/0.819, allocations: 148.9 kB / 0.8268 GB, free: 2.941 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.8196, allocations: 378.3 kB / 0.8271 GB, free: 2.66 MB / 0.5919 GB Notification: Performance of SimCode: time 1.563e-06/0.8196, allocations: 0 / 0.8271 GB, free: 2.66 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0667/0.8863, allocations: 27.33 MB / 0.8538 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/14.23, allocations: 3.938 kB / 0.8538 GB, free: 14.18 MB / 0.6231 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_TanValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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: 18.29007174097933]