Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.001198/0.001198, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001065/0.001065, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 1.206/1.206, allocations: 177.1 MB / 202.8 MB, free: 5.539 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.9306/0.9306, allocations: 80.18 MB / 339.4 MB, free: 7.48 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.754e-06/1.754e-06, allocations: 0 / 0.4924 GB, free: 6.645 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.422e-05/4.598e-05, allocations: 4.109 kB / 0.4924 GB, free: 6.641 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.06463/0.06468, allocations: 60.7 MB / 0.5517 GB, free: 11.59 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02787/0.09255, allocations: 16.21 MB / 0.5675 GB, free: 11.33 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005037/0.09759, allocations: 118.9 kB / 0.5676 GB, free: 11.21 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004413/0.102, allocations: 1.094 MB / 0.5687 GB, free: 10.11 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0123/0.1143, allocations: 3.092 MB / 0.5717 GB, free: 7 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006508/0.1208, allocations: 1.626 MB / 0.5733 GB, free: 5.371 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.008427/0.1292, allocations: 4.325 MB / 0.5775 GB, free: 1.02 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.1305, allocations: 391.1 kB / 0.5779 GB, free: 0.6094 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00527/0.1358, allocations: 2.333 MB / 0.5802 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.1388, allocations: 1.289 MB / 0.5814 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0002212/0.139, allocations: 192 kB / 0.5816 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006077/0.1451, allocations: 1.52 MB / 0.5831 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.000466/0.1455, allocations: 0.4977 MB / 0.5836 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.147, allocations: 0.908 MB / 0.5845 GB, free: 9.855 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.008874/0.1558, allocations: 3.898 MB / 0.5883 GB, free: 5.945 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.187e-06/0.1558, allocations: 0 / 0.5883 GB, free: 5.945 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.757e-06/0.1558, allocations: 0 / 0.5883 GB, free: 5.945 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001324/0.156, allocations: 0 / 0.5883 GB, free: 5.945 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.006122/0.1621, allocations: 2.986 MB / 0.5912 GB, free: 2.906 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 7.064e-05/0.1622, allocations: 13.47 kB / 0.5912 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003582/0.1625, allocations: 266.3 kB / 0.5914 GB, free: 2.625 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009089/0.1634, allocations: 343.1 kB / 0.5918 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002541/0.166, allocations: 1.374 MB / 0.5931 GB, free: 0.8711 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.1662, allocations: 148.1 kB / 0.5933 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002484/0.1664, allocations: 192.4 kB / 0.5934 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003728/0.1702, allocations: 2.235 MB / 0.5956 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.1702, allocations: 192 / 0.5956 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.1703, allocations: 83.94 kB / 0.5957 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.883e-05/0.1703, allocations: 47.94 kB / 0.5957 GB, free: 14.12 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003109/0.1734, allocations: 2.302 MB / 0.598 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009207/0.1827, allocations: 5.292 MB / 0.6032 GB, free: 6.43 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002736/0.1854, allocations: 1.801 MB / 0.6049 GB, free: 4.625 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/0.1865, allocations: 0.8776 MB / 0.6058 GB, free: 3.746 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004957/0.1914, allocations: 2.796 MB / 0.6085 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002288/0.1937, allocations: 1.109 MB / 0.6096 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=200): time 4.648e-06/0.1937, allocations: 0 / 0.6096 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=200): time 0.004571/0.1983, allocations: 2.742 MB / 0.6123 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.1984, allocations: 162.4 kB / 0.6124 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.1998, allocations: 1.245 MB / 0.6136 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.1999, allocations: 61.7 kB / 0.6137 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006872/0.2006, allocations: 0.8801 MB / 0.6146 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006062/0.2012, allocations: 0.6931 MB / 0.6152 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003459/0.2016, allocations: 323.5 kB / 0.6155 GB, free: 9.605 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0008935/0.2024, allocations: 301.1 kB / 0.6158 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009738/0.2034, allocations: 0.6654 MB / 0.6165 GB, free: 8.637 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.205, allocations: 0.9978 MB / 0.6175 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/0.2074, allocations: 1.656 MB / 0.6191 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.2074, allocations: 0 / 0.6191 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003355/0.2108, allocations: 2.177 MB / 0.6212 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.2109, allocations: 37.7 kB / 0.6212 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.2109, allocations: 4 kB / 0.6212 GB, free: 3.559 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004934/0.2114, allocations: 162.5 kB / 0.6214 GB, free: 3.391 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008296/0.2122, allocations: 391.4 kB / 0.6218 GB, free: 3.008 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004901/0.2171, allocations: 4.5 MB / 0.6262 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000964/0.2181, allocations: 174.8 kB / 0.6263 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.2182, allocations: 79.97 kB / 0.6264 GB, free: 13.92 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.000909/0.2192, allocations: 357.5 kB / 0.6267 GB, free: 13.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002915/0.2194, allocations: 218.6 kB / 0.627 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005277/0.2247, allocations: 3.099 MB / 0.63 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.2247, allocations: 24 kB / 0.63 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.2248, allocations: 3.938 kB / 0.63 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/0.2248, allocations: 15.95 kB / 0.63 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006449/0.2312, allocations: 4.257 MB / 0.6342 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.2312, allocations: 0 / 0.6342 GB, free: 5.926 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007916/0.232, allocations: 379.5 kB / 0.6345 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003615/0.2324, allocations: 174.5 kB / 0.6347 GB, free: 5.375 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000143/0.2325, allocations: 67.95 kB / 0.6348 GB, free: 5.309 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004365/0.2369, allocations: 4.496 MB / 0.6392 GB, free: 476 kB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/0.2369, allocations: 7.922 kB / 0.6392 GB, free: 468 kB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5892/0.8261, allocations: 3.212 MB / 0.6423 GB, free: 139 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/0.8277, allocations: 453.8 kB / 0.6427 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002574/0.8279, allocations: 41.52 kB / 0.6428 GB, free: 138.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006024/0.8285, allocations: 60.48 kB / 0.6428 GB, free: 138.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004951/0.829, allocations: 169.5 kB / 0.643 GB, free: 138.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002853/0.8293, allocations: 82.05 kB / 0.6431 GB, free: 138.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002056/0.8314, allocations: 0.8636 MB / 0.6439 GB, free: 138.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5.11e-07/0.8314, allocations: 0.875 kB / 0.6439 GB, free: 138.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.003546/0.8349, allocations: 0.8483 MB / 0.6448 GB, free: 138.4 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (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.009958/0.8449, allocations: 4.475 MB / 0.6491 GB, free: 136.3 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005018/0.8499, allocations: 2.137 MB / 0.6512 GB, free: 135.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.8499, allocations: 2.062 kB / 0.6512 GB, free: 135.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002133/0.852, allocations: 1.295 MB / 0.6525 GB, free: 134.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/0.8555, allocations: 0.9188 MB / 0.6534 GB, free: 134.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02365/0.8792, allocations: 14.97 MB / 0.668 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009279/0.8801, allocations: 0.8921 MB / 0.6689 GB, free: 124.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001984/0.8821, allocations: 499.3 kB / 0.6693 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009753/0.8831, allocations: 0.965 MB / 0.6703 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of SimCode: time 3.387e-06/0.8831, allocations: 0 / 0.6703 GB, free: 123.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1141/0.9971, allocations: 67.99 MB / 0.7367 GB, free: 55.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12.47, allocations: 15.33 kB / 0.7367 GB, free: 55.93 MB / 0.5417 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve_fmu --startTime=0 --stopTime=20 --stepSize=0.02 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_BasicControlValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.425643996335566]