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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 182.7 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 221.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001156/0.001156, allocations: 101.5 kB / 269.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6815/0.6815, allocations: 91.23 MB / 407.8 MB, free: 2.535 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 47.92 kB / 483.5 MB, free: 6.602 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3234, allocations: 64.98 MB / 0.5357 GB, free: 33.68 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02463/0.3481, allocations: 31.03 MB / 0.566 GB, free: 6.605 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.00942/0.3576, allocations: 9.695 MB / 0.5754 GB, free: 12.88 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001006/0.3586, allocations: 19.88 kB / 0.5754 GB, free: 12.86 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.3599, allocations: 473.6 kB / 0.5759 GB, free: 12.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001867/0.3618, allocations: 0.6874 MB / 0.5766 GB, free: 11.7 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.3634, allocations: 0.6259 MB / 0.5772 GB, free: 11.07 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.3653, allocations: 1.63 MB / 0.5788 GB, free: 9.438 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003755/0.3656, allocations: 249.6 kB / 0.579 GB, free: 9.184 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008236/0.3665, allocations: 0.5097 MB / 0.5795 GB, free: 8.672 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005248/0.367, allocations: 0.4977 MB / 0.58 GB, free: 8.172 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.3671, allocations: 52 kB / 0.58 GB, free: 8.121 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.3686, allocations: 0.515 MB / 0.5805 GB, free: 7.605 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.3688, allocations: 167.2 kB / 0.5807 GB, free: 7.441 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004382/0.3692, allocations: 461.6 kB / 0.5811 GB, free: 6.988 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00167/0.3709, allocations: 1.254 MB / 0.5824 GB, free: 5.73 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3709, allocations: 0 / 0.5824 GB, free: 5.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3709, allocations: 0 / 0.5824 GB, free: 5.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.371, allocations: 0 / 0.5824 GB, free: 5.73 MB / 410.7 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.002449/0.3734, allocations: 1.289 MB / 0.5836 GB, free: 4.383 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.3735, allocations: 8.031 kB / 0.5836 GB, free: 4.375 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.3737, allocations: 107.7 kB / 0.5837 GB, free: 4.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007565/0.3745, allocations: 0.5247 MB / 0.5842 GB, free: 3.703 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.295e-05/0.3746, allocations: 54.38 kB / 0.5843 GB, free: 3.648 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.3747, allocations: 91.97 kB / 0.5844 GB, free: 3.559 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.376, allocations: 0.7946 MB / 0.5852 GB, free: 2.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.376, allocations: 3.938 kB / 0.5852 GB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-05/0.3761, allocations: 35.98 kB / 0.5852 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.3761, allocations: 16 kB / 0.5852 GB, free: 2.695 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.3773, allocations: 0.6402 MB / 0.5858 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004249/0.3816, allocations: 3.721 MB / 0.5895 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.3828, allocations: 0.6389 MB / 0.5901 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004905/0.3833, allocations: 294.4 kB / 0.5904 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002582/0.3859, allocations: 2.551 MB / 0.5929 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006612/0.3865, allocations: 385.8 kB / 0.5932 GB, free: 9.684 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.715e-06/0.3866, allocations: 0 / 0.5932 GB, free: 9.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003798/0.3904, allocations: 1.947 MB / 0.5951 GB, free: 7.645 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.3904, allocations: 85.67 kB / 0.5952 GB, free: 7.543 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/FlowControl/BasicControlValve.mo:27:3-28:92: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 0.4.1-main/FlowControl/BasicControlValve.mo:25:3-26:88: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 0.4.1-main/FlowControl/BasicControlValve.mo:23:3-24:88: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.0005593/0.391, allocations: 499 kB / 0.5957 GB, free: 7.047 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.848e-05/0.3911, allocations: 37.7 kB / 0.5957 GB, free: 7.004 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.3913, allocations: 383.8 kB / 0.5961 GB, free: 6.621 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.3915, allocations: 224.7 kB / 0.5963 GB, free: 6.398 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.3917, allocations: 126.7 kB / 0.5964 GB, free: 6.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3919, allocations: 374.8 kB / 0.5968 GB, free: 5.895 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.3923, allocations: 225.9 kB / 0.597 GB, free: 5.676 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005331/0.3929, allocations: 335.9 kB / 0.5973 GB, free: 5.312 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009694/0.3938, allocations: 0.5887 MB / 0.5979 GB, free: 4.684 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3939, allocations: 0 / 0.5979 GB, free: 4.684 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001463/0.3953, allocations: 0.8267 MB / 0.5987 GB, free: 3.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.3954, allocations: 33.7 kB / 0.5987 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3954, allocations: 0 / 0.5987 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003736/0.3958, allocations: 100.8 kB / 0.5988 GB, free: 3.699 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.3963, allocations: 131.8 kB / 0.599 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.3982, allocations: 1.828 MB / 0.6007 GB, free: 1.609 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004541/0.3987, allocations: 59.89 kB / 0.6008 GB, free: 1.551 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.577e-05/0.3988, allocations: 35.97 kB / 0.6008 GB, free: 1.516 MB / 426.7 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 (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0003138/0.3991, allocations: 201.7 kB / 0.601 GB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.3992, allocations: 71.16 kB / 0.6011 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.4009, allocations: 0.8112 MB / 0.6019 GB, free: 420 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/0.4009, allocations: 11.98 kB / 0.6019 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4009, allocations: 3.984 kB / 0.6019 GB, free: 404 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4009, allocations: 0 / 0.6019 GB, free: 404 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.4034, allocations: 1.636 MB / 0.6035 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.4035, allocations: 0 / 0.6035 GB, free: 14.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004695/0.4039, allocations: 115.9 kB / 0.6036 GB, free: 14.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003234/0.4043, allocations: 100.7 kB / 0.6037 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.476e-05/0.4043, allocations: 23.98 kB / 0.6037 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.4063, allocations: 1.839 MB / 0.6055 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.4063, allocations: 7.969 kB / 0.6055 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01521/0.4215, allocations: 8.342 MB / 0.6137 GB, free: 3.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002811/0.4218, allocations: 200.2 kB / 0.6139 GB, free: 3.605 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/0.4219, allocations: 19.98 kB / 0.6139 GB, free: 3.586 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004516/0.4224, allocations: 55.92 kB / 0.6139 GB, free: 3.531 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.4226, allocations: 56.48 kB / 0.614 GB, free: 3.473 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.038e-05/0.4226, allocations: 23.98 kB / 0.614 GB, free: 3.449 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004285/0.4231, allocations: 342.8 kB / 0.6143 GB, free: 3.117 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4231, allocations: 0 / 0.6143 GB, free: 3.117 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001378/0.4244, allocations: 395.9 kB / 0.6147 GB, free: 2.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005916/0.425, allocations: 355.2 kB / 0.6151 GB, free: 2.375 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001563/0.4266, allocations: 0.8104 MB / 0.6159 GB, free: 1.543 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4266, allocations: 0 / 0.6159 GB, free: 1.543 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008352/0.4275, allocations: 498.3 kB / 0.6163 GB, free: 1.043 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.4285, allocations: 203.1 kB / 0.6165 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.4321, allocations: 2.588 MB / 0.6191 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005336/0.4326, allocations: 0.9699 MB / 0.62 GB, free: 13.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006064/0.4333, allocations: 148.7 kB / 0.6201 GB, free: 13.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.4335, allocations: 71.41 kB / 0.6202 GB, free: 12.98 MB / 458.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4335, allocations: 4 kB / 0.6202 GB, free: 12.98 MB / 458.7 MB Notification: Performance of Templates: time 0.02437/0.4579, allocations: 15.19 MB / 0.6351 GB, free: 13.87 MB / 474.7 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","../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches