Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Examples.WaterHammer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01025/0.01025, allocations: 170.5 kB / 15.12 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.877/1.877, allocations: 205.4 MB / 221.3 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001193/0.001193, allocations: 94.84 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.968/0.968, allocations: 90.58 MB / 408.4 MB, free: 14.96 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003513, allocations: 11.98 kB / 485.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5788/0.5792, allocations: 66.26 MB / 0.5386 GB, free: 45.52 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02725/0.6065, allocations: 26.04 MB / 0.564 GB, free: 31.75 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.6178, allocations: 8.053 MB / 0.5718 GB, free: 26.1 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24:88:writable] Warning: Parameter Cvs_US has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26:88:writable] Warning: Parameter Cvs_UK has annotation(Evaluate=true) and no binding. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28:92:writable] Warning: Parameter m_flow_ref_set has annotation(Evaluate=true) and no binding. Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.6195, allocations: 23.2 kB / 0.5719 GB, free: 26.09 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.6213, allocations: 439.6 kB / 0.5723 GB, free: 25.84 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003562/0.6249, allocations: 0.7349 MB / 0.573 GB, free: 25.33 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.6276, allocations: 0.5461 MB / 0.5735 GB, free: 25.02 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002501/0.6301, allocations: 0.881 MB / 0.5744 GB, free: 24.55 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006185/0.6307, allocations: 241.1 kB / 0.5746 GB, free: 24.46 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001252/0.632, allocations: 433.5 kB / 0.575 GB, free: 24.28 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007034/0.6327, allocations: 390.5 kB / 0.5754 GB, free: 24.11 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.985e-05/0.6328, allocations: 35.94 kB / 0.5754 GB, free: 24.11 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002574/0.6354, allocations: 493.5 kB / 0.5759 GB, free: 24.02 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002272/0.6357, allocations: 139 kB / 0.5761 GB, free: 23.94 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.636, allocations: 191.4 kB / 0.5762 GB, free: 23.84 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001885/0.6379, allocations: 0.8633 MB / 0.5771 GB, free: 23.58 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.6379, allocations: 0 / 0.5771 GB, free: 23.58 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.826e-06/0.6379, allocations: 0 / 0.5771 GB, free: 23.58 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.6379, allocations: 1.281 kB / 0.5771 GB, free: 23.58 MB / 426.7 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.003111/0.641, allocations: 1.137 MB / 0.5782 GB, free: 22.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/0.6411, allocations: 10.33 kB / 0.5782 GB, free: 22.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.6414, allocations: 109.9 kB / 0.5783 GB, free: 22.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.6425, allocations: 0.4993 MB / 0.5788 GB, free: 22.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.629e-05/0.6425, allocations: 56.56 kB / 0.5788 GB, free: 22.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.6427, allocations: 79.7 kB / 0.5789 GB, free: 22.31 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.6444, allocations: 0.7943 MB / 0.5797 GB, free: 21.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.6445, allocations: 1.594 kB / 0.5797 GB, free: 21.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.806e-05/0.6446, allocations: 27.69 kB / 0.5797 GB, free: 21.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-05/0.6446, allocations: 22.16 kB / 0.5797 GB, free: 21.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.6462, allocations: 0.6494 MB / 0.5804 GB, free: 21.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005666/0.6518, allocations: 3.779 MB / 0.5841 GB, free: 18.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.6535, allocations: 0.6523 MB / 0.5847 GB, free: 18.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003552/0.657, allocations: 2.593 MB / 0.5872 GB, free: 16.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008874/0.6579, allocations: 388.9 kB / 0.5876 GB, free: 15.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 4.699e-06/0.658, allocations: 1.125 kB / 0.5876 GB, free: 15.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.005367/0.6633, allocations: 2.046 MB / 0.5896 GB, free: 14.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.6635, allocations: 89.39 kB / 0.5897 GB, free: 14.52 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:27:3-28: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 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:25:3-26: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 0.4.0-OM_adaptions/FlowControl/BasicControlValve.mo:23:3-24: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.0009749/0.6644, allocations: 492.6 kB / 0.5902 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.075e-05/0.6645, allocations: 37.7 kB / 0.5902 GB, free: 14.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.665, allocations: 380.6 kB / 0.5906 GB, free: 13.95 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002755/0.6653, allocations: 228.4 kB / 0.5908 GB, free: 13.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.6654, allocations: 15.56 kB / 0.5908 GB, free: 13.76 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.6656, allocations: 375.5 kB / 0.5912 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.6663, allocations: 229.9 kB / 0.5914 GB, free: 13.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008258/0.6671, allocations: 333 kB / 0.5917 GB, free: 13.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008121/0.668, allocations: 291.3 kB / 0.592 GB, free: 12.99 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.668, allocations: 1.375 kB / 0.592 GB, free: 12.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002254/0.6702, allocations: 0.8159 MB / 0.5928 GB, free: 12.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.6703, allocations: 39.16 kB / 0.5928 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.6703, allocations: 2.906 kB / 0.5928 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.6708, allocations: 95.66 kB / 0.5929 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.6715, allocations: 136.8 kB / 0.593 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002622/0.6741, allocations: 1.866 MB / 0.5949 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009403/0.6751, allocations: 57.39 kB / 0.5949 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.6752, allocations: 27.25 kB / 0.5949 GB, free: 10.93 MB / 426.7 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 (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0005839/0.6758, allocations: 210.3 kB / 0.5951 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.6759, allocations: 67.31 kB / 0.5952 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002283/0.6782, allocations: 0.83 MB / 0.596 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.6783, allocations: 7.547 kB / 0.596 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.6783, allocations: 4.656 kB / 0.596 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.6783, allocations: 4.969 kB / 0.596 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003899/0.6822, allocations: 1.659 MB / 0.5976 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/0.6822, allocations: 1.766 kB / 0.5976 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000626/0.6829, allocations: 122.5 kB / 0.5978 GB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.6833, allocations: 97.39 kB / 0.5979 GB, free: 9.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.97e-05/0.6834, allocations: 29.81 kB / 0.5979 GB, free: 9.449 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.6863, allocations: 1.864 MB / 0.5997 GB, free: 7.852 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.6863, allocations: 0.9844 kB / 0.5997 GB, free: 7.852 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003175/0.6895, allocations: 1.171 MB / 0.6008 GB, free: 7.199 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007143/0.6902, allocations: 213.5 kB / 0.6011 GB, free: 7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002043/0.6904, allocations: 17.27 kB / 0.6011 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005766/0.691, allocations: 62.92 kB / 0.6011 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.6912, allocations: 54.53 kB / 0.6012 GB, free: 6.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.065e-05/0.6913, allocations: 29.05 kB / 0.6012 GB, free: 6.918 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006186/0.6919, allocations: 331.1 kB / 0.6015 GB, free: 6.719 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6919, allocations: 0 / 0.6015 GB, free: 6.719 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001739/0.6937, allocations: 281.8 kB / 0.6018 GB, free: 6.656 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001091/0.6948, allocations: 360.3 kB / 0.6021 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.6973, allocations: 0.8057 MB / 0.6029 GB, free: 5.984 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.6973, allocations: 0 / 0.6029 GB, free: 5.984 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.6986, allocations: 496.6 kB / 0.6034 GB, free: 5.684 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.6999, allocations: 187.1 kB / 0.6036 GB, free: 5.594 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004874/0.7048, allocations: 2.067 MB / 0.6056 GB, free: 4.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.7059, allocations: 0.9746 MB / 0.6065 GB, free: 3.328 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008845/0.7068, allocations: 132.2 kB / 0.6067 GB, free: 3.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002536/0.7071, allocations: 63.41 kB / 0.6067 GB, free: 3.254 MB / 426.7 MB Notification: Performance of SimCode: time 2.845e-06/0.7071, allocations: 0 / 0.6067 GB, free: 3.254 MB / 426.7 MB Notification: Performance of Templates: time 0.03185/0.7389, allocations: 12.25 MB / 0.6187 GB, free: 8.449 MB / 442.7 MB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Examples.WaterHammer.pipe 2>&1)