Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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_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_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001626, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001954/0.001954, allocations: 193.2 kB / 16.26 MB, free: 6.621 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.357/1.357, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6927/0.6927, allocations: 91.19 MB / 381.3 MB, free: 9.582 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 84.73 kB / 459.8 MB, free: 23.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1364, allocations: 67.7 MB / 0.5151 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03187/0.1683, allocations: 31.47 MB / 0.5459 GB, free: 10.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.1808, allocations: 9.746 MB / 0.5554 GB, free: 1.184 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:19:3-20:118:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:21:3-22:118:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:23:3-24:122:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.1825, allocations: 43.69 kB / 0.5554 GB, free: 1.141 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.1841, allocations: 477.5 kB / 0.5559 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002573/0.1866, allocations: 0.7147 MB / 0.5566 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.1887, allocations: 0.6293 MB / 0.5572 GB, free: 15.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.00224/0.1909, allocations: 1.463 MB / 0.5586 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005314/0.1915, allocations: 297.5 kB / 0.5589 GB, free: 13.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.1927, allocations: 0.6068 MB / 0.5595 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006002/0.1933, allocations: 0.5404 MB / 0.56 GB, free: 12.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1934, allocations: 80 kB / 0.5601 GB, free: 12.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.1949, allocations: 0.5034 MB / 0.5606 GB, free: 11.82 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.1951, allocations: 211.1 kB / 0.5608 GB, free: 11.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000576/0.1957, allocations: 0.5207 MB / 0.5613 GB, free: 11.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002324/0.198, allocations: 1.355 MB / 0.5626 GB, free: 9.734 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1981, allocations: 0 / 0.5626 GB, free: 9.734 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1981, allocations: 0 / 0.5626 GB, free: 9.734 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.351e-05/0.1981, allocations: 3.938 kB / 0.5626 GB, free: 9.73 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: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.002749/0.2008, allocations: 1.413 MB / 0.564 GB, free: 8.258 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2009, allocations: 8.031 kB / 0.564 GB, free: 8.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000297/0.2012, allocations: 127.5 kB / 0.5641 GB, free: 8.125 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.2023, allocations: 0.6807 MB / 0.5648 GB, free: 7.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.231e-05/0.2023, allocations: 54 kB / 0.5649 GB, free: 7.352 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.2024, allocations: 79.91 kB / 0.5649 GB, free: 7.273 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.2039, allocations: 0.7955 MB / 0.5657 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2039, allocations: 0 / 0.5657 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/0.204, allocations: 32 kB / 0.5657 GB, free: 6.426 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.204, allocations: 20 kB / 0.5658 GB, free: 6.406 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2053, allocations: 0.6363 MB / 0.5664 GB, free: 5.773 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004754/0.21, allocations: 3.733 MB / 0.57 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.2113, allocations: 0.5841 MB / 0.5706 GB, free: 1.078 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005068/0.2118, allocations: 284 kB / 0.5709 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002968/0.2148, allocations: 2.531 MB / 0.5733 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006944/0.2155, allocations: 365.8 kB / 0.5737 GB, free: 13.52 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 2.275e-06/0.2155, allocations: 0 / 0.5737 GB, free: 13.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.004182/0.2197, allocations: 1.947 MB / 0.5756 GB, free: 11.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.2198, allocations: 85.67 kB / 0.5757 GB, free: 11.38 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:23:3-24:122:writable] Warning: Parameter valveLinear.m_flow_ref_set has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:21:3-22:118:writable] Warning: Parameter valveLinear.Cvs_UK has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:19:3-20:118:writable] Warning: Parameter valveLinear.Cvs_US has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.2206, allocations: 0.6374 MB / 0.5763 GB, free: 10.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.2207, allocations: 45.7 kB / 0.5763 GB, free: 10.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003453/0.221, allocations: 439.9 kB / 0.5768 GB, free: 10.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.2212, allocations: 224.7 kB / 0.577 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.2214, allocations: 122.7 kB / 0.5771 GB, free: 9.891 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.2216, allocations: 329.9 kB / 0.5774 GB, free: 9.562 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/0.222, allocations: 213.9 kB / 0.5776 GB, free: 9.355 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005326/0.2226, allocations: 328 kB / 0.5779 GB, free: 9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001004/0.2236, allocations: 0.5575 MB / 0.5785 GB, free: 8.406 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2236, allocations: 0 / 0.5785 GB, free: 8.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001545/0.2251, allocations: 0.8224 MB / 0.5793 GB, free: 7.566 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.2252, allocations: 33.98 kB / 0.5793 GB, free: 7.527 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.2252, allocations: 4 kB / 0.5793 GB, free: 7.523 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000412/0.2256, allocations: 104.7 kB / 0.5794 GB, free: 7.418 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.2262, allocations: 127.8 kB / 0.5795 GB, free: 7.293 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.2285, allocations: 1.981 MB / 0.5815 GB, free: 5.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006304/0.2291, allocations: 43.97 kB / 0.5815 GB, free: 5.129 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.563e-05/0.2292, allocations: 28.05 kB / 0.5815 GB, free: 5.102 MB / 462.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 (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.0004534/0.2297, allocations: 213.7 kB / 0.5817 GB, free: 4.883 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.2298, allocations: 94.8 kB / 0.5818 GB, free: 4.789 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/0.2316, allocations: 0.8542 MB / 0.5827 GB, free: 3.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.2316, allocations: 12 kB / 0.5827 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2316, allocations: 0 / 0.5827 GB, free: 3.898 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.2316, allocations: 3.984 kB / 0.5827 GB, free: 3.895 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002755/0.2344, allocations: 1.613 MB / 0.5843 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2344, allocations: 0 / 0.5843 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005098/0.2349, allocations: 111.9 kB / 0.5844 GB, free: 2.105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003705/0.2353, allocations: 112.6 kB / 0.5845 GB, free: 1.992 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.2354, allocations: 23.98 kB / 0.5845 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2753/0.5107, allocations: 1.961 MB / 0.5864 GB, free: 72.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.5108, allocations: 2.281 kB / 0.5864 GB, free: 72.29 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.5132, allocations: 1.076 MB / 0.5875 GB, free: 72.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003221/0.5135, allocations: 212 kB / 0.5877 GB, free: 72.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.5136, allocations: 14.89 kB / 0.5877 GB, free: 72.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.5142, allocations: 56.38 kB / 0.5877 GB, free: 72.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.5143, allocations: 62.83 kB / 0.5878 GB, free: 72.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.239e-05/0.5144, allocations: 23.91 kB / 0.5878 GB, free: 72.04 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005882/0.515, allocations: 455.3 kB / 0.5882 GB, free: 71.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.515, allocations: 0 / 0.5882 GB, free: 71.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008456/0.5158, allocations: 281 kB / 0.5885 GB, free: 71.94 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.0005366/0.5164, allocations: 361.8 kB / 0.5889 GB, free: 71.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.518, allocations: 0.7983 MB / 0.5896 GB, free: 71.66 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.5181, allocations: 1.094 kB / 0.5896 GB, free: 71.66 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008192/0.5189, allocations: 472.9 kB / 0.5901 GB, free: 71.47 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.5201, allocations: 237.6 kB / 0.5903 GB, free: 71.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.5236, allocations: 2.159 MB / 0.5924 GB, free: 70.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.5242, allocations: 0.9968 MB / 0.5934 GB, free: 69.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006352/0.5248, allocations: 152.7 kB / 0.5935 GB, free: 69.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.525, allocations: 74.45 kB / 0.5936 GB, free: 69.4 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.525, allocations: 0 / 0.5936 GB, free: 69.4 MB / 462.1 MB Notification: Performance of Templates: time 0.02558/0.5506, allocations: 13.84 MB / 0.6071 GB, free: 65.51 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches