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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) 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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.002164/0.002164, allocations: 193.1 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.077/2.077, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9307/0.9307, allocations: 93.69 MB / 384.4 MB, free: 5.465 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0037/0.0037, allocations: 83.88 kB / 463.6 MB, free: 6.492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1789, allocations: 68.26 MB / 0.5193 GB, free: 2.156 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.3394/0.5184, allocations: 31.48 MB / 0.5501 GB, free: 27.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.5294, allocations: 9.76 MB / 0.5596 GB, free: 20.66 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001842/0.5313, allocations: 45.81 kB / 0.5597 GB, free: 20.64 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.5329, allocations: 475.7 kB / 0.5601 GB, free: 20.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002823/0.5357, allocations: 0.7273 MB / 0.5608 GB, free: 19.93 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002226/0.538, allocations: 0.6374 MB / 0.5615 GB, free: 19.58 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002737/0.5407, allocations: 1.487 MB / 0.5629 GB, free: 18.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005478/0.5413, allocations: 296.5 kB / 0.5632 GB, free: 18.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.5428, allocations: 0.6222 MB / 0.5638 GB, free: 18.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006804/0.5435, allocations: 0.5371 MB / 0.5643 GB, free: 18.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.5436, allocations: 79.16 kB / 0.5644 GB, free: 18.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.5456, allocations: 0.508 MB / 0.5649 GB, free: 18.03 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.5458, allocations: 208.7 kB / 0.5651 GB, free: 17.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005375/0.5464, allocations: 0.5215 MB / 0.5656 GB, free: 17.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00179/0.5482, allocations: 1.003 MB / 0.5666 GB, free: 17.19 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.5482, allocations: 3.938 kB / 0.5666 GB, free: 17.19 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5482, allocations: 0 / 0.5666 GB, free: 17.19 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.5482, allocations: 0 / 0.5666 GB, free: 17.19 MB / 446.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.003407/0.5516, allocations: 1.415 MB / 0.568 GB, free: 16.21 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.5517, allocations: 8.781 kB / 0.568 GB, free: 16.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003275/0.552, allocations: 132.4 kB / 0.5681 GB, free: 16.14 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.5533, allocations: 0.6871 MB / 0.5688 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.386e-05/0.5534, allocations: 56.86 kB / 0.5688 GB, free: 15.66 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/0.5535, allocations: 83.92 kB / 0.5689 GB, free: 15.63 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.5551, allocations: 0.7894 MB / 0.5697 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.5552, allocations: 4 kB / 0.5697 GB, free: 15.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.386e-05/0.5553, allocations: 32.72 kB / 0.5697 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.5553, allocations: 16.59 kB / 0.5697 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.5566, allocations: 0.6265 MB / 0.5703 GB, free: 15.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005064/0.5617, allocations: 3.719 MB / 0.574 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.563, allocations: 0.5889 MB / 0.5745 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.5636, allocations: 281.7 kB / 0.5748 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003018/0.5666, allocations: 2.536 MB / 0.5773 GB, free: 9.355 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008443/0.5675, allocations: 371.5 kB / 0.5776 GB, free: 9.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 3.145e-06/0.5675, allocations: 1.375 kB / 0.5776 GB, free: 9.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.004516/0.572, allocations: 1.935 MB / 0.5795 GB, free: 8.047 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.5721, allocations: 90.5 kB / 0.5796 GB, free: 7.949 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009396/0.573, allocations: 0.6332 MB / 0.5802 GB, free: 7.676 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.065e-05/0.5731, allocations: 41.83 kB / 0.5803 GB, free: 7.633 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.5735, allocations: 437.1 kB / 0.5807 GB, free: 7.293 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.5736, allocations: 222.7 kB / 0.5809 GB, free: 7.117 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002338/0.5739, allocations: 121.7 kB / 0.581 GB, free: 7.055 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.894e-05/0.574, allocations: 329.3 kB / 0.5813 GB, free: 6.742 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004268/0.5744, allocations: 216.3 kB / 0.5815 GB, free: 6.664 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/0.575, allocations: 323.1 kB / 0.5819 GB, free: 6.473 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.576, allocations: 0.5705 MB / 0.5824 GB, free: 6.133 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.576, allocations: 1.406 kB / 0.5824 GB, free: 6.133 MB / 446.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001561/0.5775, allocations: 0.8044 MB / 0.5832 GB, free: 5.762 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.529e-05/0.5776, allocations: 34 kB / 0.5832 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.5776, allocations: 1.906 kB / 0.5832 GB, free: 5.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004374/0.5781, allocations: 105.7 kB / 0.5833 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00055/0.5786, allocations: 131.8 kB / 0.5835 GB, free: 5.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.5806, allocations: 1.976 MB / 0.5854 GB, free: 3.977 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/0.5813, allocations: 46.52 kB / 0.5854 GB, free: 3.965 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.384e-05/0.5814, allocations: 31.28 kB / 0.5855 GB, free: 3.957 MB / 446.1 MB 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.0004767/0.5819, allocations: 219.7 kB / 0.5857 GB, free: 3.777 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.5821, allocations: 91.5 kB / 0.5858 GB, free: 3.727 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001774/0.5838, allocations: 0.8609 MB / 0.5866 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.5839, allocations: 5.562 kB / 0.5866 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.5839, allocations: 2.688 kB / 0.5866 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.5839, allocations: 3.609 kB / 0.5866 GB, free: 3.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003008/0.5869, allocations: 1.605 MB / 0.5882 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.5869, allocations: 5.531 kB / 0.5882 GB, free: 2.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/0.5874, allocations: 111.6 kB / 0.5883 GB, free: 2.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003774/0.5878, allocations: 108.5 kB / 0.5884 GB, free: 2.449 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.913e-05/0.5879, allocations: 27.64 kB / 0.5884 GB, free: 2.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/0.5898, allocations: 1.97 MB / 0.5903 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5898, allocations: 1.219 kB / 0.5903 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.5919, allocations: 1.081 MB / 0.5914 GB, free: 184 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004151/0.5923, allocations: 207.7 kB / 0.5916 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.5925, allocations: 21.55 kB / 0.5916 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005209/0.593, allocations: 54.16 kB / 0.5917 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001661/0.5932, allocations: 56.91 kB / 0.5917 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.059e-05/0.5933, allocations: 25.14 kB / 0.5917 GB, free: 15.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008096/0.5941, allocations: 461.6 kB / 0.5922 GB, free: 15.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5941, allocations: 0 / 0.5922 GB, free: 15.76 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001402/0.5955, allocations: 280.5 kB / 0.5925 GB, free: 15.71 MB / 462.1 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 (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.0007225/0.5962, allocations: 359.1 kB / 0.5928 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002109/0.5984, allocations: 0.7993 MB / 0.5936 GB, free: 15.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5984, allocations: 0 / 0.5936 GB, free: 15.13 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009687/0.5994, allocations: 464.5 kB / 0.594 GB, free: 14.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001449/0.6008, allocations: 237.1 kB / 0.5942 GB, free: 14.83 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/0.6049, allocations: 2.219 MB / 0.5964 GB, free: 13.42 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000747/0.6057, allocations: 0.9994 MB / 0.5974 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002951/0.606, allocations: 80.36 kB / 0.5975 GB, free: 12.69 MB / 462.1 MB Notification: Performance of SimCode: time 6.01e-07/0.606, allocations: 1.781 kB / 0.5975 GB, free: 12.69 MB / 462.1 MB Notification: Performance of Templates: time 0.03021/0.6362, allocations: 17.39 MB / 0.6144 GB, free: 13.23 MB / 478.1 MB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile (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) 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) Reference file matches