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 dev (/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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 102.5 kB / 15.71 MB, free: 460 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.001599/0.001599, allocations: 178.6 kB / 16.58 MB, free: 6.859 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.553/1.553, allocations: 223.2 MB / 240.6 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.87/0.87, allocations: 89.62 MB / 381.3 MB, free: 11.44 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003939/0.0003939, allocations: 9.094 kB / 460.6 MB, free: 24.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1806, allocations: 68.82 MB / 0.517 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03365/0.2143, allocations: 28.7 MB / 0.5451 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.2269, allocations: 8.973 MB / 0.5538 GB, free: 5.969 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.001353/0.2283, allocations: 19.88 kB / 0.5539 GB, free: 5.949 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.2299, allocations: 445.4 kB / 0.5543 GB, free: 5.512 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002726/0.2326, allocations: 0.6909 MB / 0.555 GB, free: 4.816 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.2346, allocations: 0.529 MB / 0.5555 GB, free: 4.289 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002244/0.2369, allocations: 1.439 MB / 0.5569 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004549/0.2373, allocations: 250.3 kB / 0.5571 GB, free: 2.582 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008532/0.2382, allocations: 474 kB / 0.5576 GB, free: 2.117 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005521/0.2387, allocations: 457.9 kB / 0.558 GB, free: 1.668 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.364e-05/0.2388, allocations: 36 kB / 0.558 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001324/0.2402, allocations: 367.7 kB / 0.5584 GB, free: 1.273 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.2403, allocations: 143.3 kB / 0.5585 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002069/0.2406, allocations: 205.1 kB / 0.5587 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.2416, allocations: 0.8689 MB / 0.5596 GB, free: 56 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2416, allocations: 0 / 0.5596 GB, free: 56 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2416, allocations: 0 / 0.5596 GB, free: 56 kB / 430.1 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.2417, allocations: 4 kB / 0.5596 GB, free: 52 kB / 430.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.002241/0.2439, allocations: 1.156 MB / 0.5607 GB, free: 14.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2439, allocations: 8.031 kB / 0.5607 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002546/0.2442, allocations: 110.8 kB / 0.5608 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008187/0.245, allocations: 0.5238 MB / 0.5613 GB, free: 14.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.762e-05/0.2451, allocations: 58 kB / 0.5614 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.2452, allocations: 79.91 kB / 0.5615 GB, free: 14.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.2467, allocations: 0.7955 MB / 0.5622 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.2467, allocations: 0 / 0.5622 GB, free: 13.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.2468, allocations: 32 kB / 0.5623 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.2468, allocations: 16 kB / 0.5623 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.248, allocations: 0.6519 MB / 0.5629 GB, free: 12.5 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004588/0.2526, allocations: 3.706 MB / 0.5665 GB, free: 8.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001151/0.2537, allocations: 0.5939 MB / 0.5671 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.2542, allocations: 288 kB / 0.5674 GB, free: 7.551 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002928/0.2572, allocations: 2.539 MB / 0.5699 GB, free: 4.633 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007099/0.2579, allocations: 377.8 kB / 0.5702 GB, free: 4.246 MB / 446.1 MB Notification: Performance of pre-optimization done (n=63): time 2.104e-06/0.2579, allocations: 0 / 0.5702 GB, free: 4.246 MB / 446.1 MB Notification: Performance of matching and sorting (n=65): time 0.003964/0.2619, allocations: 1.92 MB / 0.5721 GB, free: 2.234 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/0.262, allocations: 89.61 kB / 0.5722 GB, free: 2.129 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.0007355/0.2627, allocations: 0.5391 MB / 0.5727 GB, free: 1.578 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.2628, allocations: 37.7 kB / 0.5728 GB, free: 1.535 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003555/0.2631, allocations: 399.8 kB / 0.5731 GB, free: 1.141 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.2634, allocations: 228.8 kB / 0.5734 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.662e-05/0.2634, allocations: 12 kB / 0.5734 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.2636, allocations: 378.8 kB / 0.5737 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004474/0.2641, allocations: 217.9 kB / 0.5739 GB, free: 320 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/0.2646, allocations: 324 kB / 0.5742 GB, free: 15.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.2652, allocations: 280.8 kB / 0.5745 GB, free: 15.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2652, allocations: 0 / 0.5745 GB, free: 15.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001488/0.2667, allocations: 0.8073 MB / 0.5753 GB, free: 14.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.55e-05/0.2667, allocations: 31.42 kB / 0.5753 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.2668, allocations: 4 kB / 0.5753 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004016/0.2672, allocations: 100.7 kB / 0.5754 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005051/0.2677, allocations: 143.8 kB / 0.5756 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.2698, allocations: 1.828 MB / 0.5773 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.2703, allocations: 59.92 kB / 0.5774 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.518e-05/0.2704, allocations: 24 kB / 0.5774 GB, free: 12.53 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003735/0.2707, allocations: 213.6 kB / 0.5776 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.2709, allocations: 71.16 kB / 0.5777 GB, free: 12.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.2725, allocations: 0.849 MB / 0.5785 GB, free: 11.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.2725, allocations: 11.94 kB / 0.5785 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.2726, allocations: 0 / 0.5785 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.078e-05/0.2726, allocations: 15.92 kB / 0.5786 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002635/0.2752, allocations: 1.582 MB / 0.5801 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2752, allocations: 4 kB / 0.5801 GB, free: 9.688 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004454/0.2757, allocations: 111.9 kB / 0.5802 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003235/0.276, allocations: 108.7 kB / 0.5803 GB, free: 9.469 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.052e-05/0.2761, allocations: 23.98 kB / 0.5803 GB, free: 9.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.278, allocations: 1.816 MB / 0.5821 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.278, allocations: 8 kB / 0.5821 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.2799, allocations: 1.073 MB / 0.5832 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003134/0.2802, allocations: 208.1 kB / 0.5834 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.621e-05/0.2803, allocations: 16 kB / 0.5834 GB, free: 6.145 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004388/0.2807, allocations: 59.89 kB / 0.5834 GB, free: 6.086 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.2809, allocations: 60.42 kB / 0.5835 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/0.281, allocations: 27.98 kB / 0.5835 GB, free: 6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005102/0.2815, allocations: 383.1 kB / 0.5839 GB, free: 5.629 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2815, allocations: 288 / 0.5839 GB, free: 5.629 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009354/0.2824, allocations: 275.9 kB / 0.5842 GB, free: 5.359 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005487/0.283, allocations: 363.6 kB / 0.5845 GB, free: 4.996 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.2845, allocations: 0.783 MB / 0.5853 GB, free: 4.188 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2845, allocations: 0.5625 kB / 0.5853 GB, free: 4.188 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008145/0.2853, allocations: 477.5 kB / 0.5857 GB, free: 3.707 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.2865, allocations: 207.1 kB / 0.5859 GB, free: 3.508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.2899, allocations: 2.128 MB / 0.588 GB, free: 1.336 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006662/0.2905, allocations: 0.9619 MB / 0.5889 GB, free: 356 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.2908, allocations: 79.41 kB / 0.589 GB, free: 276 kB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2908, allocations: 0 / 0.589 GB, free: 276 kB / 462.1 MB Notification: Performance of Templates: time 0.3604/0.6512, allocations: 15.8 MB / 0.6044 GB, free: 68.97 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppThermofluidStream_ThermofluidStream.Examples.WaterHammerCalcHelperMain.o OMCppThermofluidStream_ThermofluidStream.Examples.WaterHammerCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppThermofluidStream_ThermofluidStream.Examples.WaterHammerCalcHelperMain.o] Error 1