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: "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001215/0.001215, allocations: 190.2 kB / 16.25 MB, free: 6.637 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.229/1.229, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7004/0.7004, allocations: 91.2 MB / 381.3 MB, free: 9.516 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00152/0.001521, allocations: 77.91 kB / 459.9 MB, free: 23.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1554, allocations: 67.7 MB / 0.5153 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03079/0.1862, allocations: 31.46 MB / 0.546 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0112/0.1975, allocations: 9.742 MB / 0.5555 GB, free: 1.055 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.001247/0.1988, allocations: 43.69 kB / 0.5555 GB, free: 1.012 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.2001, allocations: 473.5 kB / 0.556 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001908/0.202, allocations: 0.7185 MB / 0.5567 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.2037, allocations: 0.6486 MB / 0.5573 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001467/0.2052, allocations: 1.451 MB / 0.5587 GB, free: 13.72 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.2056, allocations: 297.7 kB / 0.559 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008187/0.2064, allocations: 0.6107 MB / 0.5596 GB, free: 12.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005542/0.207, allocations: 0.5365 MB / 0.5601 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.2071, allocations: 83.98 kB / 0.5602 GB, free: 12.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.2083, allocations: 0.5073 MB / 0.5607 GB, free: 11.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.2085, allocations: 207 kB / 0.5609 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004455/0.209, allocations: 0.5168 MB / 0.5614 GB, free: 10.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001629/0.2106, allocations: 1.355 MB / 0.5627 GB, free: 9.598 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2106, allocations: 0 / 0.5627 GB, free: 9.598 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2106, allocations: 4 kB / 0.5627 GB, free: 9.594 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.605e-05/0.2107, allocations: 0 / 0.5627 GB, free: 9.594 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.002466/0.2131, allocations: 1.409 MB / 0.5641 GB, free: 8.125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.2132, allocations: 8.031 kB / 0.5641 GB, free: 8.117 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001411/0.2133, allocations: 122.7 kB / 0.5642 GB, free: 7.988 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002618/0.2136, allocations: 123.5 kB / 0.5644 GB, free: 7.867 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009581/0.2146, allocations: 0.6805 MB / 0.565 GB, free: 7.145 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.2146, allocations: 54 kB / 0.5651 GB, free: 7.094 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.2148, allocations: 83.89 kB / 0.5652 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.2161, allocations: 0.7993 MB / 0.5659 GB, free: 6.191 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.2162, allocations: 7.984 kB / 0.5659 GB, free: 6.184 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-05/0.2162, allocations: 24 kB / 0.566 GB, free: 6.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.2163, allocations: 24 kB / 0.566 GB, free: 6.137 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.2174, allocations: 0.6363 MB / 0.5666 GB, free: 5.504 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004345/0.2218, allocations: 3.726 MB / 0.5703 GB, free: 1.406 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001092/0.2229, allocations: 0.5879 MB / 0.5708 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.2234, allocations: 284 kB / 0.5711 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002729/0.2261, allocations: 2.531 MB / 0.5736 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006913/0.2268, allocations: 373.8 kB / 0.5739 GB, free: 13.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 1.983e-06/0.2269, allocations: 0 / 0.5739 GB, free: 13.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.003892/0.2308, allocations: 1.935 MB / 0.5758 GB, free: 11.21 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.532e-05/0.2308, allocations: 89.67 kB / 0.5759 GB, free: 11.11 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.0007921/0.2316, allocations: 0.6374 MB / 0.5765 GB, free: 10.46 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.384e-05/0.2317, allocations: 37.7 kB / 0.5766 GB, free: 10.42 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/0.232, allocations: 435.9 kB / 0.577 GB, free: 9.988 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.2322, allocations: 228.7 kB / 0.5772 GB, free: 9.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.2324, allocations: 126.6 kB / 0.5773 GB, free: 9.629 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2326, allocations: 334 kB / 0.5776 GB, free: 9.297 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004409/0.233, allocations: 213.9 kB / 0.5778 GB, free: 9.09 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000514/0.2335, allocations: 327.9 kB / 0.5782 GB, free: 8.734 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009255/0.2345, allocations: 0.5614 MB / 0.5787 GB, free: 8.137 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.2345, allocations: 7.922 kB / 0.5787 GB, free: 8.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001468/0.236, allocations: 0.8071 MB / 0.5795 GB, free: 7.305 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.236, allocations: 33.7 kB / 0.5795 GB, free: 7.266 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.236, allocations: 0 / 0.5795 GB, free: 7.266 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003734/0.2364, allocations: 108.8 kB / 0.5796 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005067/0.2369, allocations: 131.8 kB / 0.5798 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/0.2391, allocations: 1.969 MB / 0.5817 GB, free: 4.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005176/0.2396, allocations: 55.94 kB / 0.5817 GB, free: 4.863 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.2397, allocations: 32.27 kB / 0.5818 GB, free: 4.832 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.000376/0.2401, allocations: 225.6 kB / 0.582 GB, free: 4.602 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.2402, allocations: 86.91 kB / 0.5821 GB, free: 4.516 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001647/0.2419, allocations: 0.8463 MB / 0.5829 GB, free: 3.645 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.2419, allocations: 8 kB / 0.5829 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2419, allocations: 0 / 0.5829 GB, free: 3.637 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.2419, allocations: 3.984 kB / 0.5829 GB, free: 3.633 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002549/0.2445, allocations: 1.617 MB / 0.5845 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.2445, allocations: 0 / 0.5845 GB, free: 1.949 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004624/0.245, allocations: 111.8 kB / 0.5846 GB, free: 1.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003345/0.2453, allocations: 112.7 kB / 0.5847 GB, free: 1.727 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.938e-05/0.2454, allocations: 19.98 kB / 0.5847 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3158/0.5611, allocations: 1.97 MB / 0.5866 GB, free: 71.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5612, allocations: 1.578 kB / 0.5866 GB, free: 71.84 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002421/0.5636, allocations: 1.079 MB / 0.5877 GB, free: 71.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004851/0.5641, allocations: 212.5 kB / 0.5879 GB, free: 71.58 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.5643, allocations: 13.83 kB / 0.5879 GB, free: 71.58 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/0.5648, allocations: 56.98 kB / 0.588 GB, free: 71.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/0.565, allocations: 61.06 kB / 0.588 GB, free: 71.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-05/0.5651, allocations: 26.52 kB / 0.588 GB, free: 71.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007898/0.5659, allocations: 458.7 kB / 0.5885 GB, free: 71.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5659, allocations: 0.875 kB / 0.5885 GB, free: 71.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001129/0.567, allocations: 279.9 kB / 0.5887 GB, free: 71.49 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.002695/0.5697, allocations: 1.868 MB / 0.5906 GB, free: 70.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.5715, allocations: 0.7947 MB / 0.5913 GB, free: 70.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5715, allocations: 2.938 kB / 0.5914 GB, free: 70.34 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008514/0.5724, allocations: 469.3 kB / 0.5918 GB, free: 70.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.5736, allocations: 232.7 kB / 0.592 GB, free: 70.06 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00927/0.5829, allocations: 7.258 MB / 0.5991 GB, free: 65.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.5834, allocations: 0.9948 MB / 0.6001 GB, free: 65.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006567/0.584, allocations: 147.3 kB / 0.6002 GB, free: 65.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.5844, allocations: 359.7 kB / 0.6006 GB, free: 64.88 MB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/0.5844, allocations: 4 kB / 0.6006 GB, free: 64.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09769/0.6821, allocations: 22.12 MB / 0.6222 GB, free: 55.95 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002024/0.6824, allocations: 217.4 kB / 0.6224 GB, free: 55.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/3.275, allocations: 0 / 0.6224 GB, free: 55.68 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Examples_WaterHammer_fmu --startTime=0 --stopTime=25 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches