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.001519/0.001519, allocations: 85.17 kB / 19.87 MB, free: 4.617 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.001777/0.001777, allocations: 169 kB / 23.27 MB, free: 1.223 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.9589/0.9589, allocations: 177.1 MB / 203.7 MB, free: 5.484 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.7116/0.7116, allocations: 118.6 MB / 378.9 MB, free: 1.332 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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.854e-06/1.854e-06, allocations: 0 / 484 MB, free: 8.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.33e-05, allocations: 6.312 kB / 484 MB, free: 8.066 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01348/0.0135, allocations: 9.277 MB / 493.3 MB, free: 1.742 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004001/0.0175, allocations: 2.445 MB / 495.8 MB, free: 48 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009527/0.01846, allocations: 59.03 kB / 495.8 MB, free: 12 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000553/0.01901, allocations: 220.2 kB / 496 MB, free: 15.88 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00169/0.0207, allocations: 0.6958 MB / 496.7 MB, free: 15.41 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.02183, allocations: 0.5052 MB / 497.2 MB, free: 15.14 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002018/0.02384, allocations: 1.686 MB / 498.9 MB, free: 14.25 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.02421, allocations: 192.7 kB / 499.1 MB, free: 14.15 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001478/0.02568, allocations: 0.912 MB / 0.4883 GB, free: 13.79 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000642/0.02633, allocations: 451.8 kB / 0.4887 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001274/0.02645, allocations: 79.09 kB / 0.4888 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005251/0.02698, allocations: 208.7 kB / 0.489 GB, free: 13.6 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.02715, allocations: 212.2 kB / 0.4892 GB, free: 13.45 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004282/0.02758, allocations: 379.3 kB / 0.4896 GB, free: 13.3 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001635/0.02921, allocations: 1.004 MB / 0.4905 GB, free: 12.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.02922, allocations: 1.312 kB / 0.4905 GB, free: 12.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.02922, allocations: 0 / 0.4905 GB, free: 12.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.02925, allocations: 0 / 0.4905 GB, free: 12.84 MB / 426.7 MB 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.00208/0.03133, allocations: 1.53 MB / 0.492 GB, free: 11.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.03136, allocations: 8.781 kB / 0.492 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003187/0.03168, allocations: 210.3 kB / 0.4922 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001028/0.03271, allocations: 0.7798 MB / 0.493 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/0.03275, allocations: 58.38 kB / 0.4931 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.03291, allocations: 93.08 kB / 0.4932 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007197/0.03363, allocations: 0.7562 MB / 0.4939 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.03364, allocations: 192 / 0.4939 GB, free: 9.789 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.03368, allocations: 35.94 kB / 0.4939 GB, free: 9.754 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.03369, allocations: 23.92 kB / 0.4939 GB, free: 9.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003353/0.03403, allocations: 261.4 kB / 0.4942 GB, free: 9.535 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002515/0.03654, allocations: 2.235 MB / 0.4964 GB, free: 7.547 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004774/0.03702, allocations: 418.7 kB / 0.4968 GB, free: 7.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.03717, allocations: 133.7 kB / 0.4969 GB, free: 7.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001091/0.03827, allocations: 0.8967 MB / 0.4978 GB, free: 6.277 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004927/0.03876, allocations: 436.8 kB / 0.4982 GB, free: 5.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 1.734e-06/0.03876, allocations: 4 kB / 0.4982 GB, free: 5.836 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001497/0.04026, allocations: 1.038 MB / 0.4992 GB, free: 4.859 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.0403, allocations: 116 kB / 0.4993 GB, free: 4.719 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/0.04074, allocations: 0.6627 MB / 0.5 GB, free: 4.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.04078, allocations: 41.7 kB / 0.5 GB, free: 4.023 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002679/0.04105, allocations: 0.5226 MB / 0.5005 GB, free: 3.492 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.04117, allocations: 222.1 kB / 0.5007 GB, free: 3.273 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.04129, allocations: 127.9 kB / 0.5009 GB, free: 3.141 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.04141, allocations: 0.5004 MB / 0.5013 GB, free: 2.633 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.04152, allocations: 110.9 kB / 0.5015 GB, free: 2.516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004654/0.04199, allocations: 382.5 kB / 0.5018 GB, free: 2.043 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.04229, allocations: 366.2 kB / 0.5022 GB, free: 1.629 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.04229, allocations: 4 kB / 0.5022 GB, free: 1.625 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0005695/0.04286, allocations: 0.5852 MB / 0.5027 GB, free: 1.016 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.0429, allocations: 34.05 kB / 0.5028 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.0429, allocations: 8 kB / 0.5028 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002466/0.04315, allocations: 91.58 kB / 0.5029 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.0434, allocations: 127.9 kB / 0.503 GB, free: 0.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.04456, allocations: 2.052 MB / 0.505 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.04484, allocations: 32.02 kB / 0.505 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.021e-05/0.04488, allocations: 31.86 kB / 0.5051 GB, free: 14.52 MB / 442.7 MB 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 (69): * Single equations (assignments): 67 * 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.0002461/0.04512, allocations: 192.5 kB / 0.5052 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.577e-05/0.04522, allocations: 119.3 kB / 0.5054 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006405/0.04586, allocations: 0.5715 MB / 0.5059 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.04587, allocations: 7.938 kB / 0.5059 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.04587, allocations: 4 kB / 0.5059 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.04588, allocations: 3.984 kB / 0.5059 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.04704, allocations: 1.02 MB / 0.5069 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.04705, allocations: 7.938 kB / 0.5069 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.04726, allocations: 95.88 kB / 0.507 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002152/0.04747, allocations: 103.6 kB / 0.5071 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.0475, allocations: 15.98 kB / 0.5071 GB, free: 12.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001319/0.04882, allocations: 2.054 MB / 0.5091 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.04882, allocations: 0 / 0.5091 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007027/0.04952, allocations: 0.7276 MB / 0.5099 GB, free: 9.359 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001843/0.04971, allocations: 131.3 kB / 0.51 GB, free: 9.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.04976, allocations: 16 kB / 0.51 GB, free: 9.215 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.04996, allocations: 27.98 kB / 0.51 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.449e-05/0.05005, allocations: 56.33 kB / 0.5101 GB, free: 9.133 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.05009, allocations: 19.98 kB / 0.5101 GB, free: 9.113 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002693/0.05036, allocations: 422.8 kB / 0.5105 GB, free: 8.707 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.05036, allocations: 0 / 0.5105 GB, free: 8.707 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005982/0.05095, allocations: 227.9 kB / 0.5107 GB, free: 8.484 MB / 442.7 MB 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 (49): * Single equations (assignments): 46 * 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.0002286/0.05118, allocations: 163 kB / 0.5109 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.05181, allocations: 0.6033 MB / 0.5115 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.05181, allocations: 0 / 0.5115 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000345/0.05216, allocations: 398 kB / 0.5118 GB, free: 7.266 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007949/0.05295, allocations: 324.2 kB / 0.5121 GB, free: 6.969 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.0553, allocations: 1.706 MB / 0.5138 GB, free: 5.207 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.05543, allocations: 179.6 kB / 0.514 GB, free: 5.012 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003784/0.0558, allocations: 138.1 kB / 0.5141 GB, free: 4.871 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000456/0.05626, allocations: 342 kB / 0.5144 GB, free: 4.535 MB / 442.7 MB Notification: Performance of SimCode: time 1.042e-06/0.05626, allocations: 0 / 0.5144 GB, free: 4.535 MB / 442.7 MB Notification: Performance of Templates: time 0.01869/0.07495, allocations: 13.92 MB / 0.528 GB, free: 6.973 MB / 458.7 MB " [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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8382969959639013]