Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001015/0.001015, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0008791/0.0008791, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.9219/0.9219, allocations: 177.1 MB / 203.5 MB, free: 5.734 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.6623/0.6623, allocations: 116 MB / 376 MB, free: 4.18 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: translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.5545 GB, free: 12.87 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.717e-05, allocations: 5.656 kB / 0.5545 GB, free: 12.87 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02037/0.0204, allocations: 29.66 MB / 0.5834 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.007183/0.02758, allocations: 8.157 MB / 0.5914 GB, free: 6.914 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007671/0.02834, allocations: 59.44 kB / 0.5914 GB, free: 6.855 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0009366/0.02928, allocations: 492.3 kB / 0.5919 GB, free: 6.363 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001694/0.03097, allocations: 0.8804 MB / 0.5928 GB, free: 5.477 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.03262, allocations: 0.7354 MB / 0.5935 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001203/0.03383, allocations: 1.656 MB / 0.5951 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.03409, allocations: 178.4 kB / 0.5953 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008987/0.03499, allocations: 0.9155 MB / 0.5962 GB, free: 1.965 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003885/0.03538, allocations: 438.6 kB / 0.5966 GB, free: 1.535 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 7.859e-05/0.03546, allocations: 80 kB / 0.5967 GB, free: 1.457 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008173/0.03628, allocations: 487.1 kB / 0.5971 GB, free: 0.9805 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.03641, allocations: 211 kB / 0.5973 GB, free: 0.7734 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0002479/0.03666, allocations: 375.1 kB / 0.5977 GB, free: 416 kB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001641/0.0383, allocations: 1.452 MB / 0.5991 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.03831, allocations: 0 / 0.5991 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.024e-06/0.03831, allocations: 3.938 kB / 0.5991 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.48e-05/0.03833, allocations: 0 / 0.5991 GB, free: 14.95 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: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.002323/0.04065, allocations: 1.41 MB / 0.6005 GB, free: 13.49 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.04069, allocations: 8.031 kB / 0.6005 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002537/0.04095, allocations: 140.1 kB / 0.6006 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/0.04188, allocations: 0.7062 MB / 0.6013 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.04193, allocations: 58.38 kB / 0.6014 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.119e-05/0.04202, allocations: 83.94 kB / 0.6015 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.04302, allocations: 1.009 MB / 0.6024 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.04304, allocations: 4 kB / 0.6024 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.734e-05/0.04309, allocations: 28 kB / 0.6025 GB, free: 11.36 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.513e-05/0.0431, allocations: 24 kB / 0.6025 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007715/0.04388, allocations: 0.6363 MB / 0.6031 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.04644, allocations: 2.217 MB / 0.6053 GB, free: 8.434 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007657/0.0472, allocations: 0.518 MB / 0.6058 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.0475, allocations: 247.4 kB / 0.606 GB, free: 7.664 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00124/0.04874, allocations: 0.9283 MB / 0.6069 GB, free: 6.715 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009062/0.04965, allocations: 0.535 MB / 0.6075 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=63): time 2.335e-06/0.04965, allocations: 0 / 0.6075 GB, free: 6.117 MB / 0.5261 GB Notification: Performance of matching and sorting (n=65): time 0.002547/0.0522, allocations: 1.807 MB / 0.6092 GB, free: 4.273 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.05226, allocations: 115.5 kB / 0.6093 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/0.05278, allocations: 0.6416 MB / 0.61 GB, free: 3.488 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.643e-05/0.05281, allocations: 37.7 kB / 0.61 GB, free: 3.445 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.05308, allocations: 468.5 kB / 0.6104 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.0532, allocations: 230 kB / 0.6107 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.05332, allocations: 122.6 kB / 0.6108 GB, free: 2.629 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.05343, allocations: 337.9 kB / 0.6111 GB, free: 2.293 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.05371, allocations: 223.6 kB / 0.6113 GB, free: 2.07 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.05407, allocations: 406.4 kB / 0.6117 GB, free: 1.613 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.0547, allocations: 0.5634 MB / 0.6122 GB, free: 1.004 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.05471, allocations: 4 kB / 0.6122 GB, free: 1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0009423/0.05565, allocations: 0.813 MB / 0.613 GB, free: 168 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.509e-05/0.0557, allocations: 33.7 kB / 0.6131 GB, free: 128 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.05571, allocations: 4 kB / 0.6131 GB, free: 124 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002917/0.056, allocations: 108.9 kB / 0.6132 GB, free: 12 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.05629, allocations: 131.8 kB / 0.6133 GB, free: 15.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.05816, allocations: 1.827 MB / 0.6151 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/0.05835, allocations: 28.02 kB / 0.6151 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.0584, allocations: 27.98 kB / 0.6151 GB, free: 13.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (74): * Single equations (assignments): 72 * 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.0002497/0.05865, allocations: 227 kB / 0.6154 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.139e-05/0.05873, allocations: 99.39 kB / 0.6155 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001002/0.05973, allocations: 0.8022 MB / 0.6162 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.05974, allocations: 8 kB / 0.6162 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.05974, allocations: 0 / 0.6162 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.687e-06/0.05975, allocations: 11.97 kB / 0.6163 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/0.06124, allocations: 1.345 MB / 0.6176 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.06124, allocations: 0 / 0.6176 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.06149, allocations: 107.9 kB / 0.6177 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002085/0.0617, allocations: 104.8 kB / 0.6178 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.06173, allocations: 23.98 kB / 0.6178 GB, free: 11.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.06307, allocations: 1.831 MB / 0.6196 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.06307, allocations: 0 / 0.6196 GB, free: 9.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.06421, allocations: 1.033 MB / 0.6206 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.06438, allocations: 127.4 kB / 0.6207 GB, free: 7.977 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.234e-05/0.06444, allocations: 19.98 kB / 0.6207 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.06463, allocations: 27.98 kB / 0.6208 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.701e-05/0.06473, allocations: 56.39 kB / 0.6208 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/0.06477, allocations: 23.98 kB / 0.6208 GB, free: 7.848 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0007545/0.06552, allocations: 459 kB / 0.6213 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.06552, allocations: 0 / 0.6213 GB, free: 7.406 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006125/0.06613, allocations: 279.8 kB / 0.6215 GB, free: 7.133 MB / 0.5417 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 (54): * Single equations (assignments): 51 * 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.0004642/0.0666, allocations: 358.7 kB / 0.6219 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009325/0.06753, allocations: 0.7386 MB / 0.6226 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.06753, allocations: 4 kB / 0.6226 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004724/0.06801, allocations: 433.2 kB / 0.623 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.06883, allocations: 302.5 kB / 0.6233 GB, free: 5.277 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.07104, allocations: 1.786 MB / 0.6251 GB, free: 3.445 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.07132, allocations: 417.5 kB / 0.6255 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.07147, allocations: 84.47 kB / 0.6255 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of SimCode: time 1.683e-06/0.07147, allocations: 0 / 0.6255 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of Templates: time 0.01685/0.08832, allocations: 18.47 MB / 0.6436 GB, free: 0.5156 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.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: 7.269283385016024]