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.001349/0.001349, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001493/0.001493, allocations: 216.1 kB / 22.99 MB, free: 4.945 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.8616/0.8616, allocations: 100.9 MB / 414.1 MB, free: 2.871 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: 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: 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.002623/0.002623, allocations: 86.83 kB / 0.5653 GB, free: 35.33 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1678, allocations: 74.62 MB / 0.6381 GB, free: 5.977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03558/0.2034, allocations: 28.62 MB / 0.6661 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0129/0.2163, allocations: 8.91 MB / 0.6748 GB, free: 320 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2176, allocations: 55.44 kB / 0.6749 GB, free: 264 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.2192, allocations: 476.8 kB / 0.6753 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002767/0.222, allocations: 0.8074 MB / 0.6761 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002227/0.2242, allocations: 0.6983 MB / 0.6768 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00243/0.2266, allocations: 1.498 MB / 0.6782 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004147/0.227, allocations: 182.2 kB / 0.6784 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0013/0.2283, allocations: 0.6497 MB / 0.679 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006972/0.229, allocations: 0.4935 MB / 0.6795 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.2292, allocations: 80 kB / 0.6796 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001419/0.2306, allocations: 487.5 kB / 0.6801 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002288/0.2308, allocations: 199.1 kB / 0.6803 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005011/0.2313, allocations: 437.8 kB / 0.6807 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002976/0.2343, allocations: 1.397 MB / 0.682 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2343, allocations: 0 / 0.682 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.116e-06/0.2343, allocations: 0 / 0.682 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.743e-05/0.2343, allocations: 0 / 0.682 GB, free: 8.848 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.003268/0.2376, allocations: 1.383 MB / 0.6834 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.61e-05/0.2376, allocations: 9.469 kB / 0.6834 GB, free: 7.418 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000397/0.238, allocations: 136.2 kB / 0.6835 GB, free: 7.285 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.2395, allocations: 0.6794 MB / 0.6842 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.321e-05/0.2396, allocations: 58 kB / 0.6843 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.2398, allocations: 72 kB / 0.6843 GB, free: 6.445 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.2413, allocations: 0.9924 MB / 0.6853 GB, free: 5.387 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.539e-05/0.2414, allocations: 4 kB / 0.6853 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.389e-05/0.2414, allocations: 28 kB / 0.6853 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.2415, allocations: 24 kB / 0.6853 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.2427, allocations: 0.6363 MB / 0.686 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.2467, allocations: 2.155 MB / 0.6881 GB, free: 2.5 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.2479, allocations: 0.5427 MB / 0.6886 GB, free: 1.945 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.2484, allocations: 254.7 kB / 0.6888 GB, free: 1.695 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002133/0.2505, allocations: 0.9791 MB / 0.6898 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008288/0.2513, allocations: 0.5544 MB / 0.6903 GB, free: 76 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.675e-06/0.2513, allocations: 0 / 0.6903 GB, free: 76 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004182/0.2555, allocations: 1.839 MB / 0.6921 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.2556, allocations: 111.5 kB / 0.6922 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008879/0.2565, allocations: 0.6062 MB / 0.6928 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.05e-05/0.2566, allocations: 41.7 kB / 0.6929 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004596/0.257, allocations: 460.5 kB / 0.6933 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.2572, allocations: 230 kB / 0.6935 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002109/0.2575, allocations: 118.3 kB / 0.6936 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001922/0.2576, allocations: 330 kB / 0.694 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/0.2581, allocations: 239.2 kB / 0.6942 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/0.2588, allocations: 409.4 kB / 0.6946 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.2599, allocations: 0.5665 MB / 0.6951 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2599, allocations: 3.938 kB / 0.6951 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001825/0.2617, allocations: 0.8327 MB / 0.6959 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.234e-05/0.2618, allocations: 37.69 kB / 0.696 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.2618, allocations: 4 kB / 0.696 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004111/0.2622, allocations: 100.7 kB / 0.6961 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005162/0.2628, allocations: 127.8 kB / 0.6962 GB, free: 9.832 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002462/0.2652, allocations: 1.831 MB / 0.698 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004632/0.2657, allocations: 32.05 kB / 0.698 GB, free: 7.867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.683e-05/0.2657, allocations: 24 kB / 0.698 GB, free: 7.844 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.000444/0.2662, allocations: 217.6 kB / 0.6983 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.2663, allocations: 91.44 kB / 0.6983 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.2681, allocations: 0.8328 MB / 0.6992 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.2681, allocations: 7.984 kB / 0.6992 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.2682, allocations: 4 kB / 0.6992 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2682, allocations: 3.984 kB / 0.6992 GB, free: 6.656 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.271, allocations: 1.384 MB / 0.7005 GB, free: 5.223 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.271, allocations: 3.984 kB / 0.7005 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004621/0.2714, allocations: 111.9 kB / 0.7006 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003587/0.2718, allocations: 104.8 kB / 0.7007 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.728e-05/0.2718, allocations: 19.98 kB / 0.7007 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002252/0.2741, allocations: 1.828 MB / 0.7025 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.2741, allocations: 7.969 kB / 0.7025 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.2761, allocations: 1.072 MB / 0.7036 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/0.2764, allocations: 131.5 kB / 0.7037 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.2765, allocations: 15.95 kB / 0.7037 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000394/0.2769, allocations: 31.97 kB / 0.7038 GB, free: 1.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.2771, allocations: 48.41 kB / 0.7038 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/0.2771, allocations: 31.92 kB / 0.7038 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005882/0.2777, allocations: 431 kB / 0.7042 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.2777, allocations: 0 / 0.7042 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008938/0.2786, allocations: 271.7 kB / 0.7045 GB, free: 1.012 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 (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.0006216/0.2792, allocations: 354.9 kB / 0.7048 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.2808, allocations: 0.7656 MB / 0.7056 GB, free: 15.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/0.2808, allocations: 8.188 kB / 0.7056 GB, free: 15.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008253/0.2817, allocations: 441.2 kB / 0.706 GB, free: 15.41 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.2828, allocations: 222.6 kB / 0.7062 GB, free: 15.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003623/0.2864, allocations: 1.858 MB / 0.708 GB, free: 13.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.2869, allocations: 412.2 kB / 0.7084 GB, free: 12.87 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.2871, allocations: 79.41 kB / 0.7085 GB, free: 12.79 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/0.2871, allocations: 0 / 0.7085 GB, free: 12.79 MB / 0.545 GB Notification: Performance of Templates: time 0.0289/0.316, allocations: 17.6 MB / 0.7257 GB, free: 11.23 MB / 0.5606 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/jenkins1/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: 10.799507889896631]