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.001131/0.001131, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 193 kB / 16.53 MB, free: 6.391 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7142/0.7142, allocations: 91.2 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 79.72 kB / 460.4 MB, free: 23.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1183, allocations: 67.7 MB / 0.5157 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03339/0.1517, allocations: 30.88 MB / 0.5459 GB, free: 11.11 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.1623, allocations: 9.699 MB / 0.5554 GB, free: 1.383 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.001052/0.1634, allocations: 39.75 kB / 0.5554 GB, free: 1.344 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.1649, allocations: 0.5201 MB / 0.5559 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002338/0.1673, allocations: 0.7957 MB / 0.5567 GB, free: 20 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.1691, allocations: 0.6847 MB / 0.5574 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.171, allocations: 1.459 MB / 0.5588 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004803/0.1715, allocations: 293.7 kB / 0.5591 GB, free: 13.58 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009993/0.1725, allocations: 0.5991 MB / 0.5596 GB, free: 12.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006838/0.1732, allocations: 0.5326 MB / 0.5602 GB, free: 12.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.1734, allocations: 76 kB / 0.5602 GB, free: 12.37 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.1748, allocations: 0.5073 MB / 0.5607 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.175, allocations: 207.1 kB / 0.5609 GB, free: 11.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006264/0.1756, allocations: 0.5206 MB / 0.5614 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002364/0.178, allocations: 1.355 MB / 0.5628 GB, free: 9.773 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.178, allocations: 0 / 0.5628 GB, free: 9.773 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.178, allocations: 0 / 0.5628 GB, free: 9.773 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.505e-05/0.1781, allocations: 0 / 0.5628 GB, free: 9.773 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.002467/0.1805, allocations: 1.405 MB / 0.5641 GB, free: 8.309 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1806, allocations: 12.03 kB / 0.5641 GB, free: 8.297 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.1807, allocations: 122.7 kB / 0.5643 GB, free: 8.168 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.181, allocations: 119.5 kB / 0.5644 GB, free: 8.051 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008928/0.1819, allocations: 0.6844 MB / 0.565 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.1819, allocations: 58 kB / 0.5651 GB, free: 7.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.1821, allocations: 83.84 kB / 0.5652 GB, free: 7.188 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.1834, allocations: 0.7955 MB / 0.566 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.1834, allocations: 0 / 0.566 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-05/0.1835, allocations: 35.98 kB / 0.566 GB, free: 6.336 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.1835, allocations: 16 kB / 0.566 GB, free: 6.32 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001137/0.1846, allocations: 0.6363 MB / 0.5666 GB, free: 5.688 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004025/0.1887, allocations: 3.749 MB / 0.5703 GB, free: 1.566 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.1898, allocations: 0.589 MB / 0.5709 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004697/0.1903, allocations: 284 kB / 0.5711 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002423/0.1927, allocations: 2.523 MB / 0.5736 GB, free: 13.79 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006326/0.1933, allocations: 385.7 kB / 0.574 GB, free: 13.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=63): time 1.814e-06/0.1934, allocations: 0 / 0.574 GB, free: 13.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=65): time 0.003667/0.197, allocations: 1.931 MB / 0.5759 GB, free: 11.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.1971, allocations: 85.67 kB / 0.5759 GB, free: 11.27 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.0007125/0.1978, allocations: 0.6413 MB / 0.5766 GB, free: 10.62 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.1979, allocations: 37.7 kB / 0.5766 GB, free: 10.58 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.1981, allocations: 435.9 kB / 0.577 GB, free: 10.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1983, allocations: 232.6 kB / 0.5772 GB, free: 9.918 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.1985, allocations: 118.7 kB / 0.5774 GB, free: 9.793 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1986, allocations: 337.9 kB / 0.5777 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/0.1991, allocations: 217.9 kB / 0.5779 GB, free: 9.246 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/0.1996, allocations: 316 kB / 0.5782 GB, free: 8.898 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009328/0.2005, allocations: 0.5653 MB / 0.5787 GB, free: 8.293 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2006, allocations: 3.938 kB / 0.5787 GB, free: 8.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001501/0.2021, allocations: 0.8149 MB / 0.5795 GB, free: 7.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.392e-05/0.2021, allocations: 29.7 kB / 0.5796 GB, free: 7.422 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2021, allocations: 7.984 kB / 0.5796 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003473/0.2025, allocations: 104.8 kB / 0.5797 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.203, allocations: 131.8 kB / 0.5798 GB, free: 7.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.205, allocations: 1.973 MB / 0.5817 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.2054, allocations: 28.02 kB / 0.5817 GB, free: 5.039 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.83e-05/0.2054, allocations: 24 kB / 0.5818 GB, free: 5.016 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.0003108/0.2057, allocations: 229.7 kB / 0.582 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.2059, allocations: 86.91 kB / 0.5821 GB, free: 4.695 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.2076, allocations: 0.8542 MB / 0.5829 GB, free: 3.816 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.2076, allocations: 8 kB / 0.5829 GB, free: 3.809 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2076, allocations: 8 kB / 0.5829 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.2076, allocations: 0 / 0.5829 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.2099, allocations: 1.624 MB / 0.5845 GB, free: 2.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.21, allocations: 4 kB / 0.5845 GB, free: 2.102 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004481/0.2104, allocations: 107.8 kB / 0.5846 GB, free: 1.996 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003092/0.2107, allocations: 108.8 kB / 0.5847 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/0.2108, allocations: 12 kB / 0.5847 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2301/0.4409, allocations: 1.982 MB / 0.5867 GB, free: 72.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.441, allocations: 0.8438 kB / 0.5867 GB, free: 72.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002144/0.4431, allocations: 1.077 MB / 0.5877 GB, free: 72.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.4435, allocations: 207.2 kB / 0.5879 GB, free: 72.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.4436, allocations: 18.14 kB / 0.5879 GB, free: 72.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.444, allocations: 28.08 kB / 0.588 GB, free: 72.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.4441, allocations: 56.02 kB / 0.588 GB, free: 72.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.359e-05/0.4442, allocations: 28.69 kB / 0.588 GB, free: 72.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006565/0.4449, allocations: 457.9 kB / 0.5885 GB, free: 71.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4449, allocations: 0.9375 kB / 0.5885 GB, free: 71.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009681/0.4459, allocations: 278.2 kB / 0.5887 GB, free: 71.88 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.002453/0.4483, allocations: 1.871 MB / 0.5906 GB, free: 70.85 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00167/0.45, allocations: 0.7948 MB / 0.5913 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.45, allocations: 1.062 kB / 0.5913 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007861/0.4508, allocations: 477 kB / 0.5918 GB, free: 70.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.4519, allocations: 246.8 kB / 0.592 GB, free: 70.19 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008951/0.4609, allocations: 6.905 MB / 0.5988 GB, free: 66.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.4613, allocations: 0.9964 MB / 0.5998 GB, free: 65.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005371/0.4619, allocations: 141.3 kB / 0.5999 GB, free: 65.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.4623, allocations: 370.5 kB / 0.6002 GB, free: 65.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4623, allocations: 2.625 kB / 0.6002 GB, free: 65.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04341/0.5057, allocations: 22.23 MB / 0.622 GB, free: 56.54 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.61, allocations: 15.86 kB / 0.622 GB, free: 56.52 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