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.001071/0.001071, allocations: 73.97 kB / 20.66 MB, free: 3.84 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.001091/0.001091, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.9523/0.9523, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.7813/0.7813, allocations: 118.6 MB / 379.7 MB, free: 1.309 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.593e-06/1.593e-06, allocations: 0 / 484.8 MB, free: 8.102 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.963e-05/3.122e-05, allocations: 2.312 kB / 484.8 MB, free: 8.098 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01186/0.01189, allocations: 9.27 MB / 494.1 MB, free: 1.781 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005543/0.01744, allocations: 2.456 MB / 496.5 MB, free: 80 kB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.01918, allocations: 58.78 kB / 496.6 MB, free: 44 kB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009488/0.02013, allocations: 225 kB / 496.8 MB, free: 15.91 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002999/0.02313, allocations: 0.6935 MB / 497.5 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001988/0.02512, allocations: 0.5047 MB / 498 MB, free: 15.16 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003504/0.02862, allocations: 1.683 MB / 499.7 MB, free: 14.29 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005884/0.02921, allocations: 185 kB / 499.9 MB, free: 14.19 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.03136, allocations: 0.9197 MB / 0.4891 GB, free: 13.82 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009951/0.03236, allocations: 447.8 kB / 0.4895 GB, free: 13.68 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002346/0.03259, allocations: 77.62 kB / 0.4896 GB, free: 13.68 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007357/0.03333, allocations: 209 kB / 0.4898 GB, free: 13.63 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.03355, allocations: 212.8 kB / 0.49 GB, free: 13.49 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000754/0.0343, allocations: 378.7 kB / 0.4903 GB, free: 13.34 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002108/0.03641, allocations: 1.004 MB / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/0.03642, allocations: 1.125 kB / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.03642, allocations: 0.6094 kB / 0.4913 GB, free: 12.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.03647, allocations: 0 / 0.4913 GB, free: 12.88 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.00283/0.0393, allocations: 1.529 MB / 0.4928 GB, free: 11.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.03934, allocations: 8.031 kB / 0.4928 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004167/0.03976, allocations: 210.9 kB / 0.493 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001251/0.04101, allocations: 0.7831 MB / 0.4938 GB, free: 10.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.679e-05/0.04106, allocations: 58.98 kB / 0.4938 GB, free: 10.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.543e-05/0.04115, allocations: 89.03 kB / 0.4939 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.04197, allocations: 0.7519 MB / 0.4947 GB, free: 9.824 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.04199, allocations: 192 / 0.4947 GB, free: 9.824 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.138e-05/0.04205, allocations: 40.67 kB / 0.4947 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.04206, allocations: 16 kB / 0.4947 GB, free: 9.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003979/0.04246, allocations: 261.1 kB / 0.495 GB, free: 9.574 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.04527, allocations: 2.242 MB / 0.4971 GB, free: 7.578 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005768/0.04585, allocations: 418.7 kB / 0.4975 GB, free: 7.211 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.04603, allocations: 138.2 kB / 0.4977 GB, free: 7.098 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001329/0.04736, allocations: 0.8831 MB / 0.4985 GB, free: 6.316 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004379/0.0478, allocations: 437.4 kB / 0.499 GB, free: 5.879 MB / 426.7 MB Notification: Performance of pre-optimization done (n=58): time 2.544e-06/0.0478, allocations: 0 / 0.499 GB, free: 5.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.001933/0.04973, allocations: 1.043 MB / 0.5 GB, free: 4.879 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.04979, allocations: 111.2 kB / 0.5001 GB, free: 4.742 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/0.0503, allocations: 0.6709 MB / 0.5007 GB, free: 4.059 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/0.05035, allocations: 37.7 kB / 0.5008 GB, free: 4.016 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005797/0.05093, allocations: 0.5265 MB / 0.5013 GB, free: 3.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.05107, allocations: 222.1 kB / 0.5015 GB, free: 3.262 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.0512, allocations: 127.9 kB / 0.5016 GB, free: 3.129 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.05135, allocations: 0.5004 MB / 0.5021 GB, free: 2.621 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.05149, allocations: 98.95 kB / 0.5022 GB, free: 2.516 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.05172, allocations: 386.6 kB / 0.5026 GB, free: 2.039 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.05207, allocations: 374.2 kB / 0.5029 GB, free: 1.617 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.05207, allocations: 0 / 0.5029 GB, free: 1.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0006518/0.05272, allocations: 0.5891 MB / 0.5035 GB, free: 1.004 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.975e-05/0.05276, allocations: 37.64 kB / 0.5035 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.05277, allocations: 4.344 kB / 0.5035 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.05305, allocations: 95.52 kB / 0.5036 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000265/0.05331, allocations: 127.8 kB / 0.5038 GB, free: 0.7344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.05499, allocations: 2.045 MB / 0.5058 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.0553, allocations: 23.98 kB / 0.5058 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.05534, allocations: 27.97 kB / 0.5058 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.0002545/0.05559, allocations: 200.4 kB / 0.506 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.0557, allocations: 115.4 kB / 0.5061 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006884/0.05639, allocations: 0.5715 MB / 0.5067 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.0564, allocations: 11.98 kB / 0.5067 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.0564, allocations: 3.984 kB / 0.5067 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.05641, allocations: 3.984 kB / 0.5067 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.05767, allocations: 1.028 MB / 0.5077 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.05767, allocations: 0 / 0.5077 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.05791, allocations: 95.88 kB / 0.5078 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002459/0.05815, allocations: 107.5 kB / 0.5079 GB, free: 12.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.634e-05/0.05819, allocations: 19.98 kB / 0.5079 GB, free: 12.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/0.05936, allocations: 2.05 MB / 0.5099 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.05936, allocations: 0 / 0.5099 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007358/0.0601, allocations: 0.7199 MB / 0.5106 GB, free: 9.363 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.06029, allocations: 127.3 kB / 0.5107 GB, free: 9.238 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.1e-05/0.06035, allocations: 19.92 kB / 0.5107 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.06054, allocations: 23.98 kB / 0.5108 GB, free: 9.195 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.232e-05/0.06064, allocations: 48.41 kB / 0.5108 GB, free: 9.148 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/0.06067, allocations: 27.98 kB / 0.5108 GB, free: 9.121 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003042/0.06098, allocations: 426.8 kB / 0.5112 GB, free: 8.711 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.06098, allocations: 0 / 0.5112 GB, free: 8.711 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006636/0.06164, allocations: 223.9 kB / 0.5115 GB, free: 8.492 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.0005476/0.06219, allocations: 171.2 kB / 0.5116 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006901/0.06288, allocations: 0.5995 MB / 0.5122 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.06288, allocations: 0 / 0.5122 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003598/0.06324, allocations: 401.9 kB / 0.5126 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.0007963/0.06404, allocations: 315.8 kB / 0.5129 GB, free: 6.969 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00269/0.06673, allocations: 1.702 MB / 0.5146 GB, free: 5.207 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.06689, allocations: 183.6 kB / 0.5147 GB, free: 5.008 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004188/0.0673, allocations: 130.2 kB / 0.5149 GB, free: 4.875 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004715/0.06778, allocations: 349.9 kB / 0.5152 GB, free: 4.531 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/0.06778, allocations: 0 / 0.5152 GB, free: 4.531 MB / 442.7 MB Notification: Performance of Templates: time 0.01987/0.08765, allocations: 14.15 MB / 0.529 GB, free: 6.754 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: 4.1212421408854425]