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.001544/0.001544, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001914/0.001914, allocations: 217.4 kB / 23.01 MB, free: 4.609 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.412/1.412, allocations: 230.6 MB / 256.8 MB, free: 8.051 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.695/0.695, allocations: 94.56 MB / 407.8 MB, free: 9.207 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: 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_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_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.00246/0.00246, allocations: 89.12 kB / 0.5562 GB, free: 38.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1156, allocations: 73.06 MB / 0.6275 GB, free: 4 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03541/0.151, allocations: 31.56 MB / 0.6583 GB, free: 328 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.1634, allocations: 9.832 MB / 0.6679 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009822/0.1643, allocations: 51.5 kB / 0.668 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.1658, allocations: 0.5278 MB / 0.6685 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.1682, allocations: 0.8229 MB / 0.6693 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.1701, allocations: 0.7066 MB / 0.67 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002162/0.1723, allocations: 1.509 MB / 0.6715 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003955/0.1727, allocations: 190.2 kB / 0.6716 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001141/0.1738, allocations: 0.6537 MB / 0.6723 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000701/0.1745, allocations: 0.5443 MB / 0.6728 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.1746, allocations: 76 kB / 0.6729 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.1761, allocations: 0.5268 MB / 0.6734 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.1763, allocations: 203.1 kB / 0.6736 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005401/0.1768, allocations: 0.5207 MB / 0.6741 GB, free: 100 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.1791, allocations: 1.401 MB / 0.6755 GB, free: 14.69 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1791, allocations: 0 / 0.6755 GB, free: 14.69 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1791, allocations: 0 / 0.6755 GB, free: 14.69 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 1.426e-05/0.1791, allocations: 0 / 0.6755 GB, free: 14.69 MB / 0.5138 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.00271/0.1818, allocations: 1.387 MB / 0.6768 GB, free: 13.26 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.1818, allocations: 16.03 kB / 0.6768 GB, free: 13.25 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.1821, allocations: 124.2 kB / 0.677 GB, free: 13.12 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.1834, allocations: 0.6717 MB / 0.6776 GB, free: 12.43 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.243e-05/0.1834, allocations: 54 kB / 0.6777 GB, free: 12.38 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.1836, allocations: 87.94 kB / 0.6778 GB, free: 12.29 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.185, allocations: 0.7955 MB / 0.6785 GB, free: 11.47 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.185, allocations: 0 / 0.6785 GB, free: 11.47 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.615e-05/0.1851, allocations: 32 kB / 0.6786 GB, free: 11.44 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.1851, allocations: 16 kB / 0.6786 GB, free: 11.43 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1863, allocations: 0.6441 MB / 0.6792 GB, free: 10.78 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004814/0.1911, allocations: 3.651 MB / 0.6828 GB, free: 6.777 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.1922, allocations: 0.5454 MB / 0.6833 GB, free: 6.223 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.1927, allocations: 258.6 kB / 0.6836 GB, free: 5.969 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002191/0.1949, allocations: 1.092 MB / 0.6846 GB, free: 4.859 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007013/0.1956, allocations: 379.1 kB / 0.685 GB, free: 4.469 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=63): time 2.234e-06/0.1956, allocations: 7.938 kB / 0.685 GB, free: 4.461 MB / 0.5138 GB Notification: Performance of matching and sorting (n=65): time 0.003723/0.1993, allocations: 1.721 MB / 0.6867 GB, free: 2.707 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.1994, allocations: 89.75 kB / 0.6868 GB, free: 2.602 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007655/0.2001, allocations: 0.6377 MB / 0.6874 GB, free: 1.957 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.2002, allocations: 37.7 kB / 0.6874 GB, free: 1.914 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003507/0.2005, allocations: 444.6 kB / 0.6878 GB, free: 1.477 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.2007, allocations: 226 kB / 0.6881 GB, free: 1.254 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.2009, allocations: 130.3 kB / 0.6882 GB, free: 1.121 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.2011, allocations: 330 kB / 0.6885 GB, free: 0.793 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004312/0.2015, allocations: 209.5 kB / 0.6887 GB, free: 0.5898 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.202, allocations: 323.5 kB / 0.689 GB, free: 240 kB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009963/0.203, allocations: 0.5618 MB / 0.6895 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.203, allocations: 0 / 0.6895 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001537/0.2046, allocations: 0.8074 MB / 0.6903 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.2046, allocations: 33.7 kB / 0.6904 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.2046, allocations: 4 kB / 0.6904 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003776/0.205, allocations: 100.9 kB / 0.6905 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.2055, allocations: 135.8 kB / 0.6906 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.2076, allocations: 1.878 MB / 0.6924 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000457/0.2081, allocations: 27.98 kB / 0.6925 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-05/0.2082, allocations: 24 kB / 0.6925 GB, free: 12.49 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.000377/0.2085, allocations: 227.2 kB / 0.6927 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.2087, allocations: 95.33 kB / 0.6928 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.2103, allocations: 0.8527 MB / 0.6936 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.2103, allocations: 7.938 kB / 0.6936 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2103, allocations: 4 kB / 0.6936 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.2103, allocations: 3.984 kB / 0.6936 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.213, allocations: 1.568 MB / 0.6952 GB, free: 9.637 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.213, allocations: 4 kB / 0.6952 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004625/0.2135, allocations: 112 kB / 0.6953 GB, free: 9.523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003385/0.2138, allocations: 112.6 kB / 0.6954 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.508e-05/0.2139, allocations: 23.92 kB / 0.6954 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002067/0.216, allocations: 1.87 MB / 0.6972 GB, free: 7.402 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.216, allocations: 3.938 kB / 0.6972 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.2179, allocations: 1.081 MB / 0.6983 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003161/0.2182, allocations: 139.4 kB / 0.6984 GB, free: 6.152 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.468e-05/0.2183, allocations: 16 kB / 0.6984 GB, free: 6.137 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003836/0.2187, allocations: 31.97 kB / 0.6985 GB, free: 6.105 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.2188, allocations: 56.33 kB / 0.6985 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.213e-05/0.2189, allocations: 23.98 kB / 0.6985 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005754/0.2195, allocations: 463 kB / 0.699 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2195, allocations: 0 / 0.699 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008141/0.2203, allocations: 279.7 kB / 0.6993 GB, free: 5.305 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.0005459/0.2208, allocations: 362.8 kB / 0.6996 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001463/0.2223, allocations: 0.7441 MB / 0.7003 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.2223, allocations: 4.562 kB / 0.7003 GB, free: 4.168 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007912/0.2231, allocations: 445.2 kB / 0.7008 GB, free: 3.719 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.2242, allocations: 231.7 kB / 0.701 GB, free: 3.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.2274, allocations: 1.87 MB / 0.7028 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.228, allocations: 1.005 MB / 0.7038 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.2282, allocations: 87.41 kB / 0.7039 GB, free: 472 kB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.2282, allocations: 0 / 0.7039 GB, free: 472 kB / 0.5294 GB Notification: Performance of Templates: time 0.02412/0.2524, allocations: 17.55 MB / 0.721 GB, free: 14.96 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.368961421074346]