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.001361/0.001361, allocations: 81.7 kB / 19.76 MB, free: 2.027 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.001494/0.001494, allocations: 158.9 kB / 23.01 MB, free: 4.941 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.394/1.394, allocations: 177.2 MB / 203.4 MB, free: 9.238 MB / 190.1 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.7363/0.7363, allocations: 79.61 MB / 339.4 MB, free: 11.5 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.002496/0.002496, allocations: 84.69 kB / 0.4923 GB, free: 26.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1181, allocations: 74.59 MB / 0.5652 GB, free: 6.148 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03299/0.151, allocations: 28.47 MB / 0.593 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01163/0.1627, allocations: 8.886 MB / 0.6017 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008828/0.1636, allocations: 55.44 kB / 0.6017 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.1649, allocations: 480.8 kB / 0.6022 GB, free: 136 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.1669, allocations: 0.8035 MB / 0.603 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.1688, allocations: 0.7009 MB / 0.6036 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001838/0.1706, allocations: 1.508 MB / 0.6051 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003759/0.171, allocations: 178.3 kB / 0.6053 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.1725, allocations: 0.9072 MB / 0.6062 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006972/0.1732, allocations: 0.4935 MB / 0.6066 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.1733, allocations: 80 kB / 0.6067 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.1745, allocations: 483.5 kB / 0.6072 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.1747, allocations: 207.1 kB / 0.6074 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000521/0.1752, allocations: 429.8 kB / 0.6078 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001925/0.1772, allocations: 1.401 MB / 0.6092 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1772, allocations: 0 / 0.6092 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1772, allocations: 0 / 0.6092 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.165e-05/0.1772, allocations: 0 / 0.6092 GB, free: 8.926 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.002633/0.1798, allocations: 1.387 MB / 0.6105 GB, free: 7.5 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1798, allocations: 13.47 kB / 0.6105 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003226/0.1802, allocations: 128.2 kB / 0.6106 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.1814, allocations: 0.6755 MB / 0.6113 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.298e-05/0.1815, allocations: 58 kB / 0.6114 GB, free: 6.598 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1816, allocations: 72 kB / 0.6114 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.1831, allocations: 1 MB / 0.6124 GB, free: 5.461 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.1832, allocations: 0 / 0.6124 GB, free: 5.461 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.556e-05/0.1832, allocations: 32 kB / 0.6124 GB, free: 5.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.1832, allocations: 19.94 kB / 0.6125 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0013/0.1845, allocations: 0.6402 MB / 0.6131 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003929/0.1885, allocations: 2.147 MB / 0.6152 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.1896, allocations: 0.5435 MB / 0.6157 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/0.1902, allocations: 259.4 kB / 0.616 GB, free: 1.777 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002005/0.1922, allocations: 0.9792 MB / 0.6169 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008119/0.193, allocations: 0.5505 MB / 0.6175 GB, free: 168 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.364e-06/0.193, allocations: 0 / 0.6175 GB, free: 168 kB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003997/0.197, allocations: 1.839 MB / 0.6192 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/0.197, allocations: 111.5 kB / 0.6194 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007569/0.1978, allocations: 0.6062 MB / 0.6199 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.1979, allocations: 41.64 kB / 0.62 GB, free: 13.49 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/0.1982, allocations: 456.5 kB / 0.6204 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.1984, allocations: 242 kB / 0.6207 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.1986, allocations: 118.3 kB / 0.6208 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1988, allocations: 334 kB / 0.6211 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005016/0.1993, allocations: 239.2 kB / 0.6213 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.1999, allocations: 405.4 kB / 0.6217 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.201, allocations: 0.5665 MB / 0.6223 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.201, allocations: 4 kB / 0.6223 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001585/0.2026, allocations: 0.8246 MB / 0.6231 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.2026, allocations: 47.34 kB / 0.6231 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2026, allocations: 320 / 0.6231 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.203, allocations: 104.8 kB / 0.6232 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005278/0.2035, allocations: 123.8 kB / 0.6233 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/0.2057, allocations: 1.836 MB / 0.6251 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.2061, allocations: 27.98 kB / 0.6251 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.2062, allocations: 27.94 kB / 0.6252 GB, free: 7.922 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.0003547/0.2065, allocations: 229.7 kB / 0.6254 GB, free: 7.688 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.2067, allocations: 87.44 kB / 0.6255 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.2084, allocations: 0.8248 MB / 0.6263 GB, free: 6.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.2084, allocations: 8 kB / 0.6263 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2084, allocations: 0 / 0.6263 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.2084, allocations: 3.984 kB / 0.6263 GB, free: 6.738 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.211, allocations: 1.388 MB / 0.6276 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.211, allocations: 4 kB / 0.6276 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.2115, allocations: 107.9 kB / 0.6278 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003306/0.2118, allocations: 104.7 kB / 0.6279 GB, free: 5.086 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/0.2118, allocations: 23.98 kB / 0.6279 GB, free: 5.062 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002165/0.214, allocations: 1.832 MB / 0.6297 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.214, allocations: 4.062 kB / 0.6297 GB, free: 3.121 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001977/0.216, allocations: 1.072 MB / 0.6307 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.2163, allocations: 131.5 kB / 0.6308 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.451e-05/0.2164, allocations: 19.95 kB / 0.6309 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.2168, allocations: 31.97 kB / 0.6309 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.2169, allocations: 52.41 kB / 0.6309 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-05/0.2169, allocations: 31.92 kB / 0.631 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005561/0.2175, allocations: 427 kB / 0.6314 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.2175, allocations: 0 / 0.6314 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007976/0.2183, allocations: 275.7 kB / 0.6316 GB, free: 1.082 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.0005212/0.2188, allocations: 338.9 kB / 0.632 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00153/0.2204, allocations: 0.7692 MB / 0.6327 GB, free: 15.94 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2204, allocations: 0 / 0.6327 GB, free: 15.94 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008589/0.2212, allocations: 446.1 kB / 0.6331 GB, free: 15.49 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.2222, allocations: 232.5 kB / 0.6334 GB, free: 15.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.2253, allocations: 1.814 MB / 0.6351 GB, free: 13.42 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.2258, allocations: 408.4 kB / 0.6355 GB, free: 12.99 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004691/0.2262, allocations: 145.5 kB / 0.6357 GB, free: 12.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001695/0.2264, allocations: 72.48 kB / 0.6357 GB, free: 12.77 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/0.2264, allocations: 0 / 0.6357 GB, free: 12.77 MB / 0.545 GB Notification: Performance of Templates: time 0.02483/0.2512, allocations: 13.6 MB / 0.649 GB, free: 15.37 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -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: 5.69521325500682]