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.0008658/0.0008658, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.005612/0.005612, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.233/1.233, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6438/0.6438, allocations: 89.63 MB / 381.1 MB, free: 11.34 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000362/0.0003619, allocations: 11.34 kB / 460.7 MB, free: 24.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.113, allocations: 68.83 MB / 0.5172 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02686/0.1399, allocations: 30.36 MB / 0.5468 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.151, allocations: 9.559 MB / 0.5561 GB, free: 3.234 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.0008308/0.1519, allocations: 19.92 kB / 0.5562 GB, free: 3.215 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001166/0.153, allocations: 469.5 kB / 0.5566 GB, free: 2.754 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.1548, allocations: 0.6951 MB / 0.5573 GB, free: 2.055 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.1563, allocations: 0.6264 MB / 0.5579 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001501/0.1578, allocations: 1.627 MB / 0.5595 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003656/0.1582, allocations: 261.6 kB / 0.5597 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007964/0.159, allocations: 493.8 kB / 0.5602 GB, free: 15.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005079/0.1595, allocations: 481.6 kB / 0.5607 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.1596, allocations: 36 kB / 0.5607 GB, free: 14.54 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/0.1608, allocations: 483.5 kB / 0.5612 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.161, allocations: 151.2 kB / 0.5613 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00043/0.1614, allocations: 475.2 kB / 0.5618 GB, free: 13.44 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.1627, allocations: 1.207 MB / 0.5629 GB, free: 12.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1627, allocations: 0 / 0.5629 GB, free: 12.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1627, allocations: 0 / 0.5629 GB, free: 12.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1627, allocations: 0 / 0.5629 GB, free: 12.23 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.00195/0.1647, allocations: 1.145 MB / 0.5641 GB, free: 11.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.1647, allocations: 8.031 kB / 0.5641 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000132/0.1649, allocations: 118.7 kB / 0.5642 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002069/0.1651, allocations: 107.7 kB / 0.5643 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006793/0.1658, allocations: 0.548 MB / 0.5648 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.098e-05/0.1659, allocations: 58.38 kB / 0.5649 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.166, allocations: 83.84 kB / 0.5649 GB, free: 10.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.1673, allocations: 0.811 MB / 0.5657 GB, free: 9.234 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1673, allocations: 0 / 0.5657 GB, free: 9.234 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.531e-05/0.1674, allocations: 36 kB / 0.5658 GB, free: 9.199 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.1674, allocations: 16 kB / 0.5658 GB, free: 9.184 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1685, allocations: 0.6519 MB / 0.5664 GB, free: 8.531 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00389/0.1724, allocations: 3.702 MB / 0.57 GB, free: 4.461 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.1735, allocations: 0.5958 MB / 0.5706 GB, free: 3.859 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004792/0.174, allocations: 288 kB / 0.5709 GB, free: 3.578 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002337/0.1764, allocations: 2.535 MB / 0.5734 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006211/0.177, allocations: 377.8 kB / 0.5737 GB, free: 284 kB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 1.633e-06/0.177, allocations: 0 / 0.5737 GB, free: 284 kB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.1969/0.3739, allocations: 1.92 MB / 0.5756 GB, free: 21.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.374, allocations: 88.67 kB / 0.5757 GB, free: 21.12 MB / 446.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.0005902/0.3746, allocations: 0.5393 MB / 0.5762 GB, free: 20.99 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.3746, allocations: 40.77 kB / 0.5763 GB, free: 20.96 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.3748, allocations: 396 kB / 0.5766 GB, free: 20.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.3749, allocations: 230.1 kB / 0.5769 GB, free: 20.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.375, allocations: 63.3 kB / 0.5769 GB, free: 20.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.761e-05/0.3751, allocations: 383.8 kB / 0.5773 GB, free: 20.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.3756, allocations: 221 kB / 0.5775 GB, free: 20.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004979/0.3761, allocations: 328 kB / 0.5778 GB, free: 20.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000957/0.3771, allocations: 0.5808 MB / 0.5784 GB, free: 20.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3771, allocations: 0 / 0.5784 GB, free: 20.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001346/0.3784, allocations: 0.8014 MB / 0.5792 GB, free: 19.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.3785, allocations: 36.3 kB / 0.5792 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3785, allocations: 2.406 kB / 0.5792 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000332/0.3788, allocations: 107.9 kB / 0.5793 GB, free: 19.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.3793, allocations: 135.5 kB / 0.5794 GB, free: 19.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.3808, allocations: 1.83 MB / 0.5812 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004042/0.3812, allocations: 54.62 kB / 0.5813 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.3812, allocations: 29.8 kB / 0.5813 GB, free: 18.68 MB / 446.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.0002341/0.3815, allocations: 214.9 kB / 0.5815 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.396e-05/0.3816, allocations: 75.41 kB / 0.5816 GB, free: 18.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.3831, allocations: 0.8623 MB / 0.5824 GB, free: 18.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.315e-06/0.3831, allocations: 7.031 kB / 0.5824 GB, free: 18.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.3832, allocations: 2.781 kB / 0.5824 GB, free: 18.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3832, allocations: 7.312 kB / 0.5824 GB, free: 18.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002101/0.3853, allocations: 1.588 MB / 0.584 GB, free: 18.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3853, allocations: 2.938 kB / 0.584 GB, free: 18.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004006/0.3857, allocations: 114.6 kB / 0.5841 GB, free: 18.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002607/0.386, allocations: 108.5 kB / 0.5842 GB, free: 18.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-05/0.386, allocations: 20.03 kB / 0.5842 GB, free: 18.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/0.3874, allocations: 1.826 MB / 0.586 GB, free: 16.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3874, allocations: 5.188 kB / 0.586 GB, free: 16.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.3889, allocations: 1.078 MB / 0.5871 GB, free: 16.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.3891, allocations: 211.2 kB / 0.5873 GB, free: 16.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.732e-05/0.3892, allocations: 16.38 kB / 0.5873 GB, free: 16.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004277/0.3896, allocations: 53.62 kB / 0.5873 GB, free: 16.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.3897, allocations: 57.97 kB / 0.5874 GB, free: 16.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/0.3898, allocations: 32.33 kB / 0.5874 GB, free: 16.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003558/0.3901, allocations: 388.9 kB / 0.5878 GB, free: 16.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3901, allocations: 2.594 kB / 0.5878 GB, free: 16.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000631/0.3908, allocations: 279.4 kB / 0.588 GB, free: 16.29 MB / 446.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.001907/0.3927, allocations: 1.878 MB / 0.5899 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.3938, allocations: 0.7848 MB / 0.5906 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3938, allocations: 1.734 kB / 0.5906 GB, free: 15.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006399/0.3945, allocations: 475.5 kB / 0.5911 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.3955, allocations: 210.2 kB / 0.5913 GB, free: 15.13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.4031, allocations: 6.869 MB / 0.598 GB, free: 12.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004517/0.4036, allocations: 0.9618 MB / 0.5989 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004738/0.404, allocations: 135.5 kB / 0.5991 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000368/0.4044, allocations: 314.2 kB / 0.5994 GB, free: 11.49 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.4044, allocations: 0 / 0.5994 GB, free: 11.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.737/2.141, allocations: 20.07 MB / 0.619 GB, free: 4.805 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/2.142, allocations: 212.6 kB / 0.6192 GB, free: 4.551 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.084/5.226, allocations: 0 / 0.6192 GB, free: 4.551 MB / 446.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