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.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009486/0.009486, allocations: 100.8 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002224/0.002224, allocations: 198 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8381/0.8381, allocations: 93.7 MB / 384.2 MB, free: 5.281 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003854/0.003855, allocations: 87.86 kB / 0.5204 GB, free: 0.625 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.4499, allocations: 68.25 MB / 0.5871 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03651/0.4865, allocations: 30.92 MB / 0.6173 GB, free: 11.26 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01412/0.5006, allocations: 9.719 MB / 0.6268 GB, free: 1.508 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001447/0.5021, allocations: 35.75 kB / 0.6268 GB, free: 1.473 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.504, allocations: 0.5201 MB / 0.6273 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003519/0.5076, allocations: 0.7957 MB / 0.6281 GB, free: 152 kB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002481/0.5101, allocations: 0.6982 MB / 0.6288 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.5126, allocations: 1.488 MB / 0.6302 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005873/0.5132, allocations: 297.7 kB / 0.6305 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.5147, allocations: 0.6186 MB / 0.6311 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001126/0.5159, allocations: 0.5287 MB / 0.6316 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002714/0.5161, allocations: 80 kB / 0.6317 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002042/0.5182, allocations: 0.5112 MB / 0.6322 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.5185, allocations: 207.1 kB / 0.6324 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.5196, allocations: 0.5168 MB / 0.6329 GB, free: 11.2 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003145/0.5227, allocations: 1.402 MB / 0.6343 GB, free: 9.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.5228, allocations: 0 / 0.6343 GB, free: 9.793 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5228, allocations: 0 / 0.6343 GB, free: 9.793 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.5228, allocations: 0 / 0.6343 GB, free: 9.793 MB / 494.1 MB 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.00309/0.5259, allocations: 1.458 MB / 0.6357 GB, free: 8.273 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5259, allocations: 8.031 kB / 0.6357 GB, free: 8.266 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003209/0.5263, allocations: 136.1 kB / 0.6358 GB, free: 8.133 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/0.5276, allocations: 0.7439 MB / 0.6365 GB, free: 7.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.631e-05/0.5277, allocations: 62 kB / 0.6366 GB, free: 7.289 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.5278, allocations: 83.95 kB / 0.6367 GB, free: 7.207 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.5297, allocations: 0.7876 MB / 0.6375 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.5298, allocations: 0 / 0.6375 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.573e-05/0.5299, allocations: 32 kB / 0.6375 GB, free: 6.367 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.519e-05/0.5299, allocations: 16 kB / 0.6375 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001702/0.5316, allocations: 0.6324 MB / 0.6381 GB, free: 5.723 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006786/0.5384, allocations: 3.723 MB / 0.6418 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.5401, allocations: 0.5812 MB / 0.6423 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007237/0.5408, allocations: 291.2 kB / 0.6426 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004077/0.5449, allocations: 2.531 MB / 0.6451 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001019/0.546, allocations: 377.8 kB / 0.6454 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=63): time 2.886e-06/0.546, allocations: 0 / 0.6454 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of matching and sorting (n=65): time 0.005763/0.5518, allocations: 1.949 MB / 0.6473 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.5519, allocations: 85.67 kB / 0.6474 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.5531, allocations: 0.6337 MB / 0.648 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.558e-05/0.5532, allocations: 41.7 kB / 0.6481 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005307/0.5537, allocations: 448.6 kB / 0.6485 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.554, allocations: 230 kB / 0.6487 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/0.5543, allocations: 126.3 kB / 0.6488 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002082/0.5546, allocations: 330 kB / 0.6492 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.5552, allocations: 217.5 kB / 0.6494 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007925/0.556, allocations: 319.5 kB / 0.6497 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.5576, allocations: 0.5653 MB / 0.6502 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5576, allocations: 0 / 0.6502 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002428/0.56, allocations: 0.8074 MB / 0.651 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.472e-05/0.5601, allocations: 34.48 kB / 0.651 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.5601, allocations: 7.938 kB / 0.651 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.5607, allocations: 101 kB / 0.6511 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007721/0.5615, allocations: 131.8 kB / 0.6513 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003221/0.5647, allocations: 1.977 MB / 0.6532 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007507/0.5655, allocations: 24.02 kB / 0.6532 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.5656, allocations: 28 kB / 0.6533 GB, free: 5.062 MB / 0.4981 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.0005507/0.5662, allocations: 227.4 kB / 0.6535 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.5664, allocations: 91.44 kB / 0.6536 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002433/0.5689, allocations: 0.8701 MB / 0.6544 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.5689, allocations: 4 kB / 0.6544 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.876e-06/0.5689, allocations: 4 kB / 0.6544 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.5689, allocations: 7.984 kB / 0.6544 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.5727, allocations: 1.606 MB / 0.656 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.5727, allocations: 0 / 0.656 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.5735, allocations: 115.8 kB / 0.6561 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004835/0.574, allocations: 104.8 kB / 0.6562 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.719e-05/0.5741, allocations: 31.91 kB / 0.6562 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003162/0.5772, allocations: 1.966 MB / 0.6581 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5773, allocations: 0 / 0.6581 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.5803, allocations: 1.094 MB / 0.6592 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004949/0.5809, allocations: 208.5 kB / 0.6594 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.581, allocations: 19.98 kB / 0.6594 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005123/0.5815, allocations: 23.98 kB / 0.6595 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.5817, allocations: 60.36 kB / 0.6595 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.896e-05/0.5818, allocations: 24.11 kB / 0.6595 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006125/0.5824, allocations: 459 kB / 0.66 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5824, allocations: 0 / 0.66 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0008929/0.5833, allocations: 287.7 kB / 0.6602 GB, free: 13.6 MB / 0.5137 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.0005967/0.5839, allocations: 362.7 kB / 0.6606 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001662/0.5856, allocations: 0.7757 MB / 0.6614 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.5856, allocations: 4 kB / 0.6614 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008952/0.5865, allocations: 465.6 kB / 0.6618 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.5877, allocations: 234 kB / 0.662 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003339/0.5911, allocations: 1.827 MB / 0.6638 GB, free: 9.879 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007128/0.5918, allocations: 1.009 MB / 0.6648 GB, free: 8.844 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0006035/0.5924, allocations: 133.9 kB / 0.6649 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001903/0.5926, allocations: 71.41 kB / 0.665 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/0.5926, allocations: 4 kB / 0.665 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of Templates: time 0.02877/0.6214, allocations: 13.98 MB / 0.6786 GB, free: 10.77 MB / 0.5294 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches