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.001061/0.001061, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.001186/0.001186, allocations: 166.3 kB / 22.46 MB, free: 2.098 MB / 18.57 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 0.8992/0.8992, allocations: 177.2 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.623/0.623, allocations: 116 MB / 375.2 MB, free: 4.172 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.389e-05, allocations: 4.953 kB / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.SpecificValveType): time 0.02361/0.02363, allocations: 36.25 MB / 0.5886 GB, free: 8.969 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.009903/0.03353, allocations: 12.25 MB / 0.6006 GB, free: 12.68 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008386/0.03437, allocations: 75.25 kB / 0.6007 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.03567, allocations: 0.9127 MB / 0.6016 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002145/0.03781, allocations: 1.498 MB / 0.603 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.03959, allocations: 1.077 MB / 0.6041 GB, free: 9.102 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001492/0.04108, allocations: 2.204 MB / 0.6062 GB, free: 6.887 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.04137, allocations: 223.6 kB / 0.6064 GB, free: 6.645 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.04268, allocations: 1.426 MB / 0.6078 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000489/0.04316, allocations: 0.5645 MB / 0.6084 GB, free: 4.648 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001024/0.04327, allocations: 92 kB / 0.6085 GB, free: 4.559 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.04441, allocations: 0.8031 MB / 0.6093 GB, free: 3.754 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001941/0.0446, allocations: 334.4 kB / 0.6096 GB, free: 3.426 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0003231/0.04492, allocations: 490.5 kB / 0.6101 GB, free: 2.945 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001891/0.04681, allocations: 2.176 MB / 0.6122 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.04682, allocations: 0 / 0.6122 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of FrontEnd: time 8.82e-07/0.04682, allocations: 0 / 0.6122 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.531e-05/0.04683, allocations: 0 / 0.6122 GB, free: 0.7617 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.002038/0.04887, allocations: 2.093 MB / 0.6142 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.04891, allocations: 8.031 kB / 0.6142 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.04901, allocations: 134.6 kB / 0.6144 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.04929, allocations: 226.6 kB / 0.6146 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.05071, allocations: 1.187 MB / 0.6157 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.05074, allocations: 70 kB / 0.6158 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/0.05083, allocations: 84 kB / 0.6159 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009321/0.05176, allocations: 0.9341 MB / 0.6168 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.05177, allocations: 4 kB / 0.6168 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.05182, allocations: 36 kB / 0.6168 GB, free: 11.86 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.559e-05/0.05183, allocations: 27.92 kB / 0.6169 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008643/0.0527, allocations: 0.8003 MB / 0.6176 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.05548, allocations: 2.689 MB / 0.6203 GB, free: 8.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007092/0.05619, allocations: 0.5924 MB / 0.6208 GB, free: 7.668 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003253/0.05652, allocations: 282.7 kB / 0.6211 GB, free: 7.391 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001403/0.05792, allocations: 1.101 MB / 0.6222 GB, free: 6.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.05795, allocations: 39.22 kB / 0.6222 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=73): time 2.054e-06/0.05795, allocations: 0 / 0.6222 GB, free: 6.223 MB / 0.5417 GB Notification: Performance of matching and sorting (n=73): time 0.001487/0.05944, allocations: 1.06 MB / 0.6233 GB, free: 5.152 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.05948, allocations: 60.06 kB / 0.6233 GB, free: 5.078 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.06059, allocations: 1.425 MB / 0.6247 GB, free: 3.648 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.06062, allocations: 41.7 kB / 0.6247 GB, free: 3.602 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004653/0.06109, allocations: 0.6678 MB / 0.6254 GB, free: 2.926 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.06121, allocations: 261.7 kB / 0.6256 GB, free: 2.668 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.06134, allocations: 150.5 kB / 0.6258 GB, free: 2.512 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.27e-05/0.06142, allocations: 330 kB / 0.6261 GB, free: 2.184 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.06168, allocations: 201.9 kB / 0.6263 GB, free: 1.988 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.06203, allocations: 394.8 kB / 0.6267 GB, free: 1.543 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006583/0.06269, allocations: 0.5626 MB / 0.6272 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.0627, allocations: 0 / 0.6272 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001035/0.06373, allocations: 0.8569 MB / 0.6281 GB, free: 76 kB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.06375, allocations: 7.938 kB / 0.6281 GB, free: 68 kB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.06376, allocations: 4 kB / 0.6281 GB, free: 64 kB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000324/0.06408, allocations: 109.9 kB / 0.6282 GB, free: 15.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.06439, allocations: 143.8 kB / 0.6283 GB, free: 15.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.06611, allocations: 2.986 MB / 0.6312 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.06637, allocations: 79.56 kB / 0.6313 GB, free: 12.51 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.872e-05/0.06641, allocations: 31.94 kB / 0.6313 GB, free: 12.48 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (79): * Single equations (assignments): 77 * 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.0003169/0.06672, allocations: 338.2 kB / 0.6317 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.06686, allocations: 170.9 kB / 0.6318 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.06815, allocations: 1.083 MB / 0.6329 GB, free: 10.87 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.06815, allocations: 8 kB / 0.6329 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.06815, allocations: 0 / 0.6329 GB, free: 10.86 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.06816, allocations: 7.922 kB / 0.6329 GB, free: 10.85 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.06986, allocations: 1.777 MB / 0.6346 GB, free: 9.004 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.06986, allocations: 3.938 kB / 0.6346 GB, free: 9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.07007, allocations: 111.9 kB / 0.6347 GB, free: 8.891 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/0.07027, allocations: 121.6 kB / 0.6349 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.0703, allocations: 23.98 kB / 0.6349 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001524/0.07182, allocations: 2.989 MB / 0.6378 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.07183, allocations: 0 / 0.6378 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.07323, allocations: 1.17 MB / 0.6389 GB, free: 4.312 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002945/0.07353, allocations: 284.7 kB / 0.6392 GB, free: 4.035 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-05/0.07361, allocations: 19.94 kB / 0.6392 GB, free: 4.016 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.07384, allocations: 23.98 kB / 0.6393 GB, free: 3.992 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.591e-05/0.07392, allocations: 56.55 kB / 0.6393 GB, free: 3.934 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.07395, allocations: 31.92 kB / 0.6393 GB, free: 3.902 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000804/0.07476, allocations: 1 MB / 0.6403 GB, free: 2.91 MB / 0.5573 GB Notification: Performance of sort global known variables: time 4.1e-08/0.07476, allocations: 0 / 0.6403 GB, free: 2.91 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0006784/0.07544, allocations: 411.2 kB / 0.6407 GB, free: 2.508 MB / 0.5573 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 (63): * Single equations (assignments): 61 * 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.002402/0.07784, allocations: 2.365 MB / 0.643 GB, free: 260 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.2336/0.3115, allocations: 0.7668 MB / 0.6438 GB, free: 94.38 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.3115, allocations: 1.5 kB / 0.6438 GB, free: 94.38 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006257/0.3121, allocations: 0.5293 MB / 0.6443 GB, free: 94.15 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.3138, allocations: 0.5421 MB / 0.6448 GB, free: 94.13 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00977/0.3236, allocations: 9.493 MB / 0.6541 GB, free: 90.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006693/0.3242, allocations: 0.6496 MB / 0.6547 GB, free: 89.98 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0006512/0.3249, allocations: 255.8 kB / 0.655 GB, free: 89.93 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004463/0.3253, allocations: 0.5803 MB / 0.6555 GB, free: 89.49 MB / 0.5573 GB Notification: Performance of SimCode: time 2.094e-06/0.3253, allocations: 0 / 0.6555 GB, free: 89.49 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04871/0.3741, allocations: 39.99 MB / 0.6946 GB, free: 63.11 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.209/8.583, allocations: 7.547 kB / 0.6946 GB, free: 63.11 MB / 0.5573 GB " [Timeout remaining time 651] (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/jenkins/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: 11.281972690485418]