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.001366/0.001366, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001723/0.001723, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.425/1.425, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6141/0.6141, allocations: 89.5 MB / 379.5 MB, free: 11.27 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 80.22 kB / 457.7 MB, free: 23.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1099, allocations: 67.31 MB / 0.5127 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02771/0.1376, allocations: 31.12 MB / 0.543 GB, free: 13.63 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.1481, allocations: 9.711 MB / 0.5525 GB, free: 3.891 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:22:3-23:88: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:24:3-25:88: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:26:3-27:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.1493, allocations: 23.88 kB / 0.5526 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.1506, allocations: 465.5 kB / 0.553 GB, free: 3.41 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001957/0.1526, allocations: 0.6913 MB / 0.5537 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00177/0.1544, allocations: 0.6263 MB / 0.5543 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.1563, allocations: 1.623 MB / 0.5559 GB, free: 472 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004031/0.1567, allocations: 265.6 kB / 0.5561 GB, free: 192 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.1577, allocations: 0.5136 MB / 0.5566 GB, free: 15.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005734/0.1583, allocations: 0.5055 MB / 0.5571 GB, free: 15.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.1584, allocations: 52 kB / 0.5572 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001363/0.1598, allocations: 0.4915 MB / 0.5576 GB, free: 14.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.16, allocations: 167.2 kB / 0.5578 GB, free: 14.46 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004687/0.1605, allocations: 481.5 kB / 0.5583 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001689/0.1621, allocations: 1.234 MB / 0.5595 GB, free: 12.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1622, allocations: 0 / 0.5595 GB, free: 12.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1622, allocations: 0 / 0.5595 GB, free: 12.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1622, allocations: 0 / 0.5595 GB, free: 12.75 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.002402/0.1646, allocations: 1.312 MB / 0.5608 GB, free: 11.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1647, allocations: 11.97 kB / 0.5608 GB, free: 11.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.1648, allocations: 126.6 kB / 0.5609 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.1651, allocations: 111.6 kB / 0.561 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000775/0.1658, allocations: 0.5481 MB / 0.5615 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.069e-05/0.1659, allocations: 58.38 kB / 0.5616 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.166, allocations: 75.94 kB / 0.5617 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.1673, allocations: 0.8032 MB / 0.5624 GB, free: 9.582 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1674, allocations: 0 / 0.5624 GB, free: 9.582 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/0.1674, allocations: 32 kB / 0.5625 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1675, allocations: 16 kB / 0.5625 GB, free: 9.535 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1686, allocations: 0.6363 MB / 0.5631 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004085/0.1727, allocations: 3.687 MB / 0.5667 GB, free: 4.844 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.1738, allocations: 0.5919 MB / 0.5673 GB, free: 4.246 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.1743, allocations: 284 kB / 0.5676 GB, free: 3.969 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002455/0.1767, allocations: 2.539 MB / 0.57 GB, free: 1.051 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006398/0.1774, allocations: 365.9 kB / 0.5704 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.174e-06/0.1774, allocations: 0 / 0.5704 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003683/0.1811, allocations: 1.908 MB / 0.5722 GB, free: 14.67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.1812, allocations: 81.67 kB / 0.5723 GB, free: 14.57 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/FlowControl/BasicControlValve.mo:26:3-27: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 1.1.0-main/FlowControl/BasicControlValve.mo:24:3-25: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 1.1.0-main/FlowControl/BasicControlValve.mo:22:3-23: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.0006324/0.1818, allocations: 0.543 MB / 0.5729 GB, free: 14.02 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.1819, allocations: 41.7 kB / 0.5729 GB, free: 13.97 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002688/0.1822, allocations: 395.8 kB / 0.5733 GB, free: 13.59 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.1823, allocations: 224.7 kB / 0.5735 GB, free: 13.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.1825, allocations: 122.7 kB / 0.5736 GB, free: 13.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1826, allocations: 382.8 kB / 0.574 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.1831, allocations: 213.9 kB / 0.5742 GB, free: 12.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.1836, allocations: 323.9 kB / 0.5745 GB, free: 12.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009494/0.1845, allocations: 0.5692 MB / 0.575 GB, free: 11.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1846, allocations: 0 / 0.575 GB, free: 11.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001475/0.186, allocations: 0.7992 MB / 0.5758 GB, free: 10.88 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.1861, allocations: 36.05 kB / 0.5759 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.1861, allocations: 4.266 kB / 0.5759 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003784/0.1865, allocations: 104.7 kB / 0.576 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/0.187, allocations: 131.8 kB / 0.5761 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001853/0.1889, allocations: 1.828 MB / 0.5779 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.1894, allocations: 47.91 kB / 0.5779 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.1895, allocations: 27.98 kB / 0.5779 GB, free: 8.562 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.0003317/0.1898, allocations: 213.7 kB / 0.5781 GB, free: 8.344 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.19, allocations: 75.06 kB / 0.5782 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.1916, allocations: 0.8529 MB / 0.579 GB, free: 7.395 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1916, allocations: 4 kB / 0.5791 GB, free: 7.391 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1916, allocations: 8 kB / 0.5791 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1916, allocations: 0 / 0.5791 GB, free: 7.383 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002446/0.1941, allocations: 1.582 MB / 0.5806 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1941, allocations: 0 / 0.5806 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/0.1946, allocations: 107.9 kB / 0.5807 GB, free: 5.629 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/0.1949, allocations: 112.7 kB / 0.5808 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.195, allocations: 19.98 kB / 0.5808 GB, free: 5.496 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.1968, allocations: 1.832 MB / 0.5826 GB, free: 3.531 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1968, allocations: 96 / 0.5826 GB, free: 3.531 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.1986, allocations: 1.069 MB / 0.5837 GB, free: 2.434 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002768/0.1989, allocations: 200.2 kB / 0.5839 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.892e-05/0.199, allocations: 12 kB / 0.5839 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.1995, allocations: 55.8 kB / 0.5839 GB, free: 2.152 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.1996, allocations: 56.48 kB / 0.584 GB, free: 2.098 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.575e-05/0.1997, allocations: 27.98 kB / 0.584 GB, free: 2.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004231/0.2001, allocations: 387.1 kB / 0.5844 GB, free: 1.695 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2001, allocations: 0 / 0.5844 GB, free: 1.695 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000791/0.2009, allocations: 283.9 kB / 0.5846 GB, free: 1.418 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.2259/0.4268, allocations: 1.853 MB / 0.5865 GB, free: 74.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.4286, allocations: 0.7694 MB / 0.5872 GB, free: 74.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4287, allocations: 2.594 kB / 0.5872 GB, free: 74.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008924/0.4296, allocations: 473.1 kB / 0.5877 GB, free: 74.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.4309, allocations: 216 kB / 0.5879 GB, free: 74.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009851/0.4407, allocations: 6.693 MB / 0.5944 GB, free: 70.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003739/0.4411, allocations: 0.9646 MB / 0.5953 GB, free: 70.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006292/0.4418, allocations: 141.2 kB / 0.5955 GB, free: 70.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.4422, allocations: 315.8 kB / 0.5958 GB, free: 69.97 MB / 462.1 MB Notification: Performance of SimCode: time 1.483e-06/0.4422, allocations: 0 / 0.5958 GB, free: 69.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.4764, allocations: 20.29 MB / 0.6156 GB, free: 62.82 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001347/0.4765, allocations: 215.9 kB / 0.6158 GB, free: 62.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.279/2.756, allocations: 3.938 kB / 0.6158 GB, free: 62.56 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