Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.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.00197/0.00197, allocations: 102.7 kB / 16.45 MB, free: 6.449 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.002384/0.002384, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.6/1.6, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.8118/0.8118, allocations: 100.3 MB / 409.1 MB, free: 4.77 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.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.SpecificValveType,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType",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.002572/0.002572, allocations: 84.73 kB / 0.5582 GB, free: 36.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1552, allocations: 74.42 MB / 0.6309 GB, free: 9.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.SpecificValveType): time 0.04934/0.2045, allocations: 37.4 MB / 0.6674 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02493/0.2294, allocations: 15.1 MB / 0.6821 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001874/0.2313, allocations: 67.38 kB / 0.6822 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002499/0.2338, allocations: 0.9639 MB / 0.6831 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004467/0.2383, allocations: 1.367 MB / 0.6845 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003306/0.2416, allocations: 1.043 MB / 0.6855 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003317/0.2449, allocations: 1.949 MB / 0.6874 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004652/0.2454, allocations: 219 kB / 0.6876 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001889/0.2473, allocations: 1.09 MB / 0.6887 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009183/0.2482, allocations: 0.7151 MB / 0.6894 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002703/0.2484, allocations: 88 kB / 0.6894 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002484/0.2509, allocations: 0.8819 MB / 0.6903 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004542/0.2514, allocations: 326.5 kB / 0.6906 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.00112/0.2525, allocations: 0.7221 MB / 0.6913 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004367/0.2569, allocations: 2.116 MB / 0.6934 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.2569, allocations: 4 kB / 0.6934 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of FrontEnd: time 5.62e-06/0.2569, allocations: 7.984 kB / 0.6934 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.76e-05/0.2569, allocations: 0 / 0.6934 GB, free: 8.871 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 202 * Number of variables: 202 Notification: Performance of Generate backend data structure: time 0.004074/0.261, allocations: 2.105 MB / 0.6955 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.261, allocations: 12.03 kB / 0.6955 GB, free: 6.695 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001524/0.2612, allocations: 127.1 kB / 0.6956 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003267/0.2615, allocations: 198.9 kB / 0.6958 GB, free: 6.367 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002721/0.2642, allocations: 1.234 MB / 0.697 GB, free: 5.082 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.296e-05/0.2643, allocations: 58 kB / 0.697 GB, free: 5.027 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001406/0.2644, allocations: 88 kB / 0.6971 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.2662, allocations: 0.8493 MB / 0.698 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.2662, allocations: 0 / 0.698 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.2664, allocations: 32 kB / 0.698 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.991e-05/0.2664, allocations: 23.94 kB / 0.698 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.2679, allocations: 0.7964 MB / 0.6988 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005975/0.2739, allocations: 3.603 MB / 0.7023 GB, free: 15.31 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.2751, allocations: 0.5759 MB / 0.7029 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005458/0.2756, allocations: 298.7 kB / 0.7032 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004578/0.2802, allocations: 3.404 MB / 0.7065 GB, free: 10.47 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.2803, allocations: 43.16 kB / 0.7065 GB, free: 10.42 MB / 0.545 GB Notification: Performance of pre-optimization done (n=73): time 3.066e-06/0.2803, allocations: 0 / 0.7065 GB, free: 10.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=73): time 0.003002/0.2833, allocations: 1.242 MB / 0.7077 GB, free: 9.129 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.2834, allocations: 64 kB / 0.7078 GB, free: 9.055 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/0.2856, allocations: 1.344 MB / 0.7091 GB, free: 7.699 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.2857, allocations: 33.7 kB / 0.7091 GB, free: 7.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006971/0.2864, allocations: 0.6362 MB / 0.7098 GB, free: 7.016 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003296/0.2867, allocations: 261.8 kB / 0.71 GB, free: 6.758 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.287, allocations: 158.4 kB / 0.7102 GB, free: 6.594 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001989/0.2872, allocations: 330 kB / 0.7105 GB, free: 6.266 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005136/0.2877, allocations: 213.9 kB / 0.7107 GB, free: 6.059 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006525/0.2884, allocations: 302.3 kB / 0.711 GB, free: 5.734 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.2895, allocations: 0.5498 MB / 0.7115 GB, free: 5.164 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.2895, allocations: 3.938 kB / 0.7115 GB, free: 5.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001939/0.2914, allocations: 0.8221 MB / 0.7123 GB, free: 4.324 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.029e-05/0.2915, allocations: 19.95 kB / 0.7123 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2915, allocations: 0 / 0.7123 GB, free: 4.305 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004874/0.292, allocations: 101.6 kB / 0.7124 GB, free: 4.199 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005725/0.2926, allocations: 139.8 kB / 0.7126 GB, free: 4.062 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.2963, allocations: 3.215 MB / 0.7157 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.2973, allocations: 75.5 kB / 0.7158 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.76e-05/0.2974, allocations: 24 kB / 0.7158 GB, free: 480 kB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0006696/0.2981, allocations: 321.7 kB / 0.7161 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/0.2985, allocations: 166.9 kB / 0.7163 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002419/0.3009, allocations: 1.145 MB / 0.7174 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.3009, allocations: 4 kB / 0.7174 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-06/0.3009, allocations: 4 kB / 0.7174 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.3009, allocations: 3.984 kB / 0.7174 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003802/0.3047, allocations: 2.007 MB / 0.7193 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.3047, allocations: 3.938 kB / 0.7194 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005048/0.3052, allocations: 127.8 kB / 0.7195 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004295/0.3057, allocations: 113.7 kB / 0.7196 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.3057, allocations: 23.98 kB / 0.7196 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003315/0.309, allocations: 3.225 MB / 0.7228 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.309, allocations: 0 / 0.7228 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002771/0.3118, allocations: 1.226 MB / 0.724 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007635/0.3126, allocations: 351.7 kB / 0.7243 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.3127, allocations: 31.88 kB / 0.7243 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.3132, allocations: 16 kB / 0.7243 GB, free: 7.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.3134, allocations: 64.5 kB / 0.7244 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.3134, allocations: 27.98 kB / 0.7244 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001566/0.315, allocations: 0.9546 MB / 0.7254 GB, free: 6.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.315, allocations: 4 kB / 0.7254 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001277/0.3163, allocations: 423 kB / 0.7258 GB, free: 5.812 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance6.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 (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.004795/0.3211, allocations: 2.435 MB / 0.7281 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001814/0.3229, allocations: 0.8033 MB / 0.7289 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3229, allocations: 0 / 0.7289 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009826/0.3239, allocations: 0.5483 MB / 0.7295 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.3259, allocations: 410.9 kB / 0.7298 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01687/0.3427, allocations: 9.184 MB / 0.7388 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.344, allocations: 1.219 MB / 0.74 GB, free: 7.043 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009724/0.345, allocations: 244.8 kB / 0.7402 GB, free: 6.82 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.346, allocations: 0.5657 MB / 0.7408 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of SimCode: time 9.72e-07/0.346, allocations: 0 / 0.7408 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3933/0.7394, allocations: 34.69 MB / 0.7747 GB, free: 98.84 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.86, allocations: 8 kB / 0.7747 GB, free: 98.83 MB / 0.5762 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv --start-time 0 --stop-time 20 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_SpecificValveType.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.SpecificValveType_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv failed! Error: Could not read variable source1.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv. Warning: Get data of variable source1.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.SpecificValveType_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.84888501605019]