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.002401/0.002401, allocations: 89.47 kB / 19.44 MB, free: 340 kB / 13.93 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.002885/0.002885, allocations: 177.2 kB / 22.76 MB, free: 1.66 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 1.607/1.607, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 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 1.008/1.008, allocations: 118.6 MB / 378.2 MB, free: 1.453 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.783e-06/1.783e-06, allocations: 0 / 482.9 MB, free: 8.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.39e-05, allocations: 2.312 kB / 482.9 MB, free: 8.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03815/0.03817, allocations: 33.22 MB / 0.504 GB, free: 15.46 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.05363, allocations: 9.227 MB / 0.513 GB, free: 6.516 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.05487, allocations: 59.5 kB / 0.513 GB, free: 6.457 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.05643, allocations: 492.2 kB / 0.5135 GB, free: 5.973 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00294/0.05937, allocations: 0.9076 MB / 0.5144 GB, free: 5.059 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002337/0.06171, allocations: 0.7433 MB / 0.5151 GB, free: 4.312 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002674/0.06438, allocations: 1.695 MB / 0.5168 GB, free: 2.609 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004706/0.06486, allocations: 178.6 kB / 0.517 GB, free: 2.43 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002183/0.06704, allocations: 0.9466 MB / 0.5179 GB, free: 1.48 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007838/0.06782, allocations: 446.6 kB / 0.5183 GB, free: 1.043 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.06798, allocations: 80 kB / 0.5184 GB, free: 0.9648 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.06941, allocations: 483.2 kB / 0.5188 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002817/0.0697, allocations: 219 kB / 0.5191 GB, free: 284 kB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005896/0.07029, allocations: 379 kB / 0.5194 GB, free: 15.9 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002771/0.07306, allocations: 1.499 MB / 0.5209 GB, free: 14.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.07306, allocations: 4 kB / 0.5209 GB, free: 14.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.07306, allocations: 0 / 0.5209 GB, free: 14.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.07308, allocations: 0 / 0.5209 GB, free: 14.4 MB / 458.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.003138/0.07622, allocations: 1.615 MB / 0.5225 GB, free: 12.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.07626, allocations: 8.031 kB / 0.5225 GB, free: 12.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005329/0.0768, allocations: 216 kB / 0.5227 GB, free: 12.51 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.07843, allocations: 0.7893 MB / 0.5234 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.669e-05/0.07849, allocations: 58.38 kB / 0.5235 GB, free: 11.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.07865, allocations: 88.33 kB / 0.5236 GB, free: 11.55 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.08054, allocations: 0.9686 MB / 0.5245 GB, free: 10.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.08056, allocations: 7.875 kB / 0.5245 GB, free: 10.49 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.673e-05/0.08065, allocations: 32 kB / 0.5246 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.08067, allocations: 16 kB / 0.5246 GB, free: 10.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.08182, allocations: 499.7 kB / 0.5251 GB, free: 9.961 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.08682, allocations: 2.692 MB / 0.5277 GB, free: 7.207 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.08804, allocations: 0.5265 MB / 0.5282 GB, free: 6.672 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004952/0.08853, allocations: 227.3 kB / 0.5284 GB, free: 6.449 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002475/0.09101, allocations: 1.037 MB / 0.5294 GB, free: 5.391 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009092/0.09192, allocations: 0.5604 MB / 0.53 GB, free: 4.758 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.565e-06/0.09192, allocations: 0 / 0.53 GB, free: 4.758 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.004686/0.09661, allocations: 1.818 MB / 0.5318 GB, free: 2.895 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.09671, allocations: 111.5 kB / 0.5319 GB, free: 2.762 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.09792, allocations: 0.8276 MB / 0.5327 GB, free: 1.918 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.329e-05/0.09799, allocations: 41.7 kB / 0.5327 GB, free: 1.871 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005918/0.09858, allocations: 0.5422 MB / 0.5332 GB, free: 1.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.09886, allocations: 250 kB / 0.5335 GB, free: 1.074 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002629/0.09912, allocations: 144.3 kB / 0.5336 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003347/0.09945, allocations: 0.5199 MB / 0.5341 GB, free: 408 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004677/0.09992, allocations: 215.6 kB / 0.5343 GB, free: 184 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007564/0.1007, allocations: 0.5098 MB / 0.5348 GB, free: 15.57 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.1018, allocations: 0.6003 MB / 0.5354 GB, free: 14.92 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1018, allocations: 0 / 0.5354 GB, free: 14.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001817/0.1036, allocations: 0.8393 MB / 0.5362 GB, free: 14.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.1037, allocations: 29.7 kB / 0.5363 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1037, allocations: 4 kB / 0.5363 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/0.1042, allocations: 123.7 kB / 0.5364 GB, free: 13.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.1047, allocations: 135.8 kB / 0.5365 GB, free: 13.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/0.1077, allocations: 2.37 MB / 0.5388 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005245/0.1082, allocations: 27.98 kB / 0.5389 GB, free: 11.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.328e-05/0.1083, allocations: 35.92 kB / 0.5389 GB, free: 11.2 MB / 474.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 (74): * Single equations (assignments): 72 * 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.0004855/0.1087, allocations: 267.7 kB / 0.5391 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/0.109, allocations: 123.4 kB / 0.5393 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/0.1108, allocations: 0.8163 MB / 0.5401 GB, free: 9.977 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/0.1108, allocations: 7.938 kB / 0.5401 GB, free: 9.969 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1108, allocations: 4.047 kB / 0.5401 GB, free: 9.965 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.1108, allocations: 7.969 kB / 0.5401 GB, free: 9.957 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003003/0.1138, allocations: 1.543 MB / 0.5416 GB, free: 8.359 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.1138, allocations: 4 kB / 0.5416 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004998/0.1143, allocations: 111.8 kB / 0.5417 GB, free: 8.246 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004781/0.1148, allocations: 115.7 kB / 0.5418 GB, free: 8.129 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.747e-05/0.1148, allocations: 19.98 kB / 0.5418 GB, free: 8.109 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00281/0.1177, allocations: 2.377 MB / 0.5441 GB, free: 5.605 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1177, allocations: 4 kB / 0.5441 GB, free: 5.602 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.1201, allocations: 1.083 MB / 0.5452 GB, free: 4.477 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004154/0.1205, allocations: 143.2 kB / 0.5453 GB, free: 4.336 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.1206, allocations: 19.98 kB / 0.5454 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003921/0.121, allocations: 23.98 kB / 0.5454 GB, free: 4.293 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.1212, allocations: 52.41 kB / 0.5454 GB, free: 4.242 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.784e-05/0.1213, allocations: 31.97 kB / 0.5455 GB, free: 4.211 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007709/0.122, allocations: 0.5263 MB / 0.546 GB, free: 3.691 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.122, allocations: 3.938 kB / 0.546 GB, free: 3.688 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0009533/0.123, allocations: 287.8 kB / 0.5463 GB, free: 3.406 MB / 474.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 (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.0006349/0.1236, allocations: 346 kB / 0.5466 GB, free: 3.062 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.1253, allocations: 0.8399 MB / 0.5474 GB, free: 2.184 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1253, allocations: 0 / 0.5474 GB, free: 2.184 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009405/0.1263, allocations: 0.5054 MB / 0.5479 GB, free: 1.66 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.1279, allocations: 329.3 kB / 0.5482 GB, free: 1.355 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.1316, allocations: 1.789 MB / 0.55 GB, free: 15.51 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.1322, allocations: 430.2 kB / 0.5504 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.000595/0.1327, allocations: 153.5 kB / 0.5505 GB, free: 14.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.133, allocations: 84.47 kB / 0.5506 GB, free: 14.83 MB / 490.7 MB Notification: Performance of SimCode: time 1.342e-06/0.133, allocations: 0 / 0.5506 GB, free: 14.83 MB / 490.7 MB Notification: Performance of Templates: time 0.03274/0.1657, allocations: 15.73 MB / 0.566 GB, free: 15.43 MB / 0.4948 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=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","/var/lib/jenkins/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: 6.710674564936198]