Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.001456/0.001456, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001916/0.001916, allocations: 216.5 kB / 22.26 MB, free: 5.082 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.458/1.458, allocations: 230.6 MB / 256 MB, free: 8.02 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 0.7701/0.7701, allocations: 94.56 MB / 407 MB, free: 9.215 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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",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.002498/0.002498, allocations: 83.77 kB / 0.5549 GB, free: 38.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1366, allocations: 73.06 MB / 0.6263 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.0387/0.1753, allocations: 31.57 MB / 0.6571 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01365/0.189, allocations: 9.824 MB / 0.6667 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.1902, allocations: 51.5 kB / 0.6668 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001632/0.1919, allocations: 0.5278 MB / 0.6673 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.00272/0.1946, allocations: 0.8269 MB / 0.6681 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002115/0.1967, allocations: 0.7068 MB / 0.6688 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002352/0.1991, allocations: 1.501 MB / 0.6702 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004691/0.1995, allocations: 190.2 kB / 0.6704 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.2009, allocations: 0.6537 MB / 0.6711 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009696/0.2019, allocations: 0.5442 MB / 0.6716 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002067/0.2021, allocations: 80 kB / 0.6717 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.2037, allocations: 0.5229 MB / 0.6722 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002786/0.2039, allocations: 215.1 kB / 0.6724 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007166/0.2047, allocations: 0.5129 MB / 0.6729 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002752/0.2074, allocations: 1.401 MB / 0.6743 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2074, allocations: 0 / 0.6743 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2074, allocations: 0 / 0.6743 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.355e-05/0.2075, allocations: 0 / 0.6743 GB, free: 15.2 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.002832/0.2103, allocations: 1.387 MB / 0.6756 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2103, allocations: 16.03 kB / 0.6756 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001443/0.2105, allocations: 114.7 kB / 0.6757 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002674/0.2108, allocations: 132.2 kB / 0.6759 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.212, allocations: 0.6676 MB / 0.6765 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.393e-05/0.2121, allocations: 54 kB / 0.6766 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.2122, allocations: 83.95 kB / 0.6766 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.2136, allocations: 0.7994 MB / 0.6774 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.2136, allocations: 3.938 kB / 0.6774 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.405e-05/0.2137, allocations: 32 kB / 0.6775 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.55e-05/0.2137, allocations: 20 kB / 0.6775 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2149, allocations: 0.6363 MB / 0.6781 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004748/0.2196, allocations: 3.651 MB / 0.6817 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2207, allocations: 0.5493 MB / 0.6822 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004702/0.2212, allocations: 250.7 kB / 0.6824 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002058/0.2232, allocations: 1.096 MB / 0.6835 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006814/0.2239, allocations: 371.2 kB / 0.6839 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 1.633e-06/0.2239, allocations: 0 / 0.6839 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003713/0.2276, allocations: 1.732 MB / 0.6856 GB, free: 3.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.2277, allocations: 85.77 kB / 0.6856 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000782/0.2285, allocations: 0.6299 MB / 0.6863 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.714e-05/0.2286, allocations: 41.7 kB / 0.6863 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003632/0.2289, allocations: 444.6 kB / 0.6867 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001935/0.2291, allocations: 234 kB / 0.6869 GB, free: 1.637 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001804/0.2293, allocations: 122.3 kB / 0.6871 GB, free: 1.512 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.2295, allocations: 330 kB / 0.6874 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004322/0.2299, allocations: 209.5 kB / 0.6876 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005426/0.2304, allocations: 327.5 kB / 0.6879 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000987/0.2314, allocations: 0.5656 MB / 0.6884 GB, free: 20 kB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2314, allocations: 7.938 kB / 0.6884 GB, free: 12 kB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001542/0.233, allocations: 0.7958 MB / 0.6892 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.233, allocations: 41.69 kB / 0.6893 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.233, allocations: 0 / 0.6893 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003946/0.2334, allocations: 104.9 kB / 0.6894 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005041/0.2339, allocations: 127.8 kB / 0.6895 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.2362, allocations: 1.87 MB / 0.6913 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.2367, allocations: 31.98 kB / 0.6913 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.838e-05/0.2367, allocations: 39.98 kB / 0.6914 GB, free: 12.86 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 1 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003908/0.2371, allocations: 217.6 kB / 0.6916 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.2373, allocations: 99.33 kB / 0.6917 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.239, allocations: 0.8567 MB / 0.6925 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.68e-05/0.2391, allocations: 8 kB / 0.6925 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2391, allocations: 0 / 0.6925 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2391, allocations: 0 / 0.6925 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.2419, allocations: 1.576 MB / 0.6941 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.2419, allocations: 4.094 kB / 0.6941 GB, free: 10.01 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004779/0.2424, allocations: 115.9 kB / 0.6942 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003436/0.2427, allocations: 104.6 kB / 0.6943 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.2428, allocations: 23.98 kB / 0.6943 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002202/0.245, allocations: 1.866 MB / 0.6961 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.245, allocations: 4.031 kB / 0.6961 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.2469, allocations: 1.085 MB / 0.6972 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000326/0.2473, allocations: 139.4 kB / 0.6973 GB, free: 6.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.2474, allocations: 24 kB / 0.6973 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.2478, allocations: 31.91 kB / 0.6974 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.2479, allocations: 52.41 kB / 0.6974 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.248, allocations: 23.98 kB / 0.6974 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006195/0.2486, allocations: 459 kB / 0.6979 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2486, allocations: 0 / 0.6979 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008573/0.2495, allocations: 283.7 kB / 0.6981 GB, free: 5.68 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * 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 (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002794/0.2523, allocations: 1.878 MB / 0.7 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001543/0.2538, allocations: 0.7407 MB / 0.7007 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.2538, allocations: 7.906 kB / 0.7007 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008225/0.2546, allocations: 441.6 kB / 0.7011 GB, free: 2.543 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.2557, allocations: 246.4 kB / 0.7014 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/0.2668, allocations: 6.603 MB / 0.7078 GB, free: 11.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008156/0.2676, allocations: 1.009 MB / 0.7088 GB, free: 10.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000587/0.2682, allocations: 145.9 kB / 0.7089 GB, free: 10.32 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005195/0.2687, allocations: 367.3 kB / 0.7093 GB, free: 9.965 MB / 0.545 GB Notification: Performance of SimCode: time 6.81e-07/0.2687, allocations: 3.938 kB / 0.7093 GB, free: 9.961 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06881/0.3375, allocations: 23.27 MB / 0.732 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/14.27, allocations: 2.969 kB / 0.732 GB, free: 2.914 MB / 0.5606 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --stepSize=0.025 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.939422806957737]