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.008185/0.008185, allocations: 167.7 kB / 15.13 MB, free: 6.02 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.415/1.415, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.000758/0.0007579, allocations: 82.31 kB / 269.6 MB, free: 13.33 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.7382/0.7382, allocations: 90.61 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 15.98 kB / 485.3 MB, free: 2.035 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.3419, allocations: 66.27 MB / 0.5386 GB, free: 45.46 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02345/0.3654, allocations: 28.61 MB / 0.5665 GB, free: 29.58 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.008586/0.3741, allocations: 8.95 MB / 0.5753 GB, free: 23.17 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.000935/0.375, allocations: 24.34 kB / 0.5753 GB, free: 23.16 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.3761, allocations: 437.8 kB / 0.5757 GB, free: 22.92 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001776/0.3779, allocations: 0.7023 MB / 0.5764 GB, free: 22.47 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00158/0.3795, allocations: 0.5147 MB / 0.5769 GB, free: 22.2 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001574/0.3811, allocations: 1.435 MB / 0.5783 GB, free: 21.54 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004347/0.3815, allocations: 237.9 kB / 0.5785 GB, free: 21.46 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007875/0.3823, allocations: 461 kB / 0.579 GB, free: 21.28 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005297/0.3829, allocations: 450 kB / 0.5794 GB, free: 21.09 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.23e-05/0.383, allocations: 35.28 kB / 0.5794 GB, free: 21.09 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.3844, allocations: 382.5 kB / 0.5798 GB, free: 21 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3846, allocations: 140.1 kB / 0.5799 GB, free: 20.91 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.3848, allocations: 199.4 kB / 0.5801 GB, free: 20.8 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.3861, allocations: 0.8627 MB / 0.581 GB, free: 20.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3861, allocations: 1.406 kB / 0.581 GB, free: 20.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3861, allocations: 0 / 0.581 GB, free: 20.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.3861, allocations: 0 / 0.581 GB, free: 20.55 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.002042/0.3882, allocations: 1.139 MB / 0.5821 GB, free: 19.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3882, allocations: 13.06 kB / 0.5821 GB, free: 19.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.3885, allocations: 110.6 kB / 0.5822 GB, free: 19.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007235/0.3892, allocations: 0.4957 MB / 0.5827 GB, free: 19.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.001e-05/0.3893, allocations: 61.11 kB / 0.5827 GB, free: 19.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.3894, allocations: 78.94 kB / 0.5828 GB, free: 19.27 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001475/0.3909, allocations: 0.796 MB / 0.5836 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.138e-05/0.391, allocations: 2.422 kB / 0.5836 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-05/0.391, allocations: 31.41 kB / 0.5836 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.3911, allocations: 18.84 kB / 0.5836 GB, free: 18.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.3923, allocations: 0.6413 MB / 0.5843 GB, free: 18.69 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.3964, allocations: 3.739 MB / 0.5879 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.3976, allocations: 0.6505 MB / 0.5886 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.3981, allocations: 302.8 kB / 0.5888 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002238/0.4003, allocations: 2.561 MB / 0.5913 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00068/0.401, allocations: 387 kB / 0.5917 GB, free: 12.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.034e-06/0.4011, allocations: 1.219 kB / 0.5917 GB, free: 12.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003692/0.4048, allocations: 1.968 MB / 0.5936 GB, free: 11.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.4048, allocations: 85.05 kB / 0.5937 GB, free: 11.49 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.0005901/0.4054, allocations: 493.5 kB / 0.5942 GB, free: 11.27 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.88e-05/0.4055, allocations: 41.95 kB / 0.5942 GB, free: 11.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.4057, allocations: 379.7 kB / 0.5946 GB, free: 10.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.4058, allocations: 228.8 kB / 0.5948 GB, free: 10.74 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.4058, allocations: 11.22 kB / 0.5948 GB, free: 10.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.882e-05/0.4059, allocations: 378.9 kB / 0.5952 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004357/0.4064, allocations: 229.1 kB / 0.5954 GB, free: 10.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00048/0.4069, allocations: 338.9 kB / 0.5957 GB, free: 10.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/0.4074, allocations: 291.1 kB / 0.596 GB, free: 9.961 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4074, allocations: 1.312 kB / 0.596 GB, free: 9.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001416/0.4088, allocations: 0.82 MB / 0.5968 GB, free: 9.586 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.4088, allocations: 35.03 kB / 0.5968 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.4089, allocations: 2.875 kB / 0.5968 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/0.4092, allocations: 98.98 kB / 0.5969 GB, free: 9.523 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005214/0.4098, allocations: 137 kB / 0.5971 GB, free: 9.508 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.4114, allocations: 1.833 MB / 0.5989 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.4118, allocations: 60.98 kB / 0.5989 GB, free: 7.906 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-05/0.4119, allocations: 27.27 kB / 0.5989 GB, free: 7.902 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.0002887/0.4122, allocations: 210.8 kB / 0.5991 GB, free: 7.727 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.4123, allocations: 67.34 kB / 0.5992 GB, free: 7.691 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.4139, allocations: 0.8262 MB / 0.6 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.414, allocations: 7.516 kB / 0.6 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.414, allocations: 1.781 kB / 0.6 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.414, allocations: 5.016 kB / 0.6 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/0.4163, allocations: 1.641 MB / 0.6016 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.4163, allocations: 1.062 kB / 0.6016 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004891/0.4168, allocations: 123.4 kB / 0.6017 GB, free: 6.141 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002899/0.4171, allocations: 98.45 kB / 0.6018 GB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.4172, allocations: 26.45 kB / 0.6019 GB, free: 6.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.4187, allocations: 1.83 MB / 0.6037 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4187, allocations: 1.312 kB / 0.6037 GB, free: 4.406 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.4205, allocations: 1.15 MB / 0.6048 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.4207, allocations: 201.3 kB / 0.605 GB, free: 3.535 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.448e-05/0.4208, allocations: 13.69 kB / 0.605 GB, free: 3.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004753/0.4213, allocations: 58.23 kB / 0.605 GB, free: 3.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.4214, allocations: 62.36 kB / 0.6051 GB, free: 3.465 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.572e-05/0.4215, allocations: 29.67 kB / 0.6051 GB, free: 3.453 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003707/0.4218, allocations: 327.1 kB / 0.6054 GB, free: 3.258 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.32e-07/0.4218, allocations: 0 / 0.6054 GB, free: 3.258 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009281/0.4228, allocations: 285.4 kB / 0.6057 GB, free: 3.191 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.0005111/0.4233, allocations: 356.5 kB / 0.606 GB, free: 2.984 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.4247, allocations: 0.8144 MB / 0.6068 GB, free: 2.512 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4248, allocations: 0 / 0.6068 GB, free: 2.512 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008008/0.4256, allocations: 496.2 kB / 0.6073 GB, free: 2.219 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.4266, allocations: 194.2 kB / 0.6075 GB, free: 2.125 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002528/0.4291, allocations: 2.068 MB / 0.6095 GB, free: 0.6875 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000494/0.4296, allocations: 0.9538 MB / 0.6105 GB, free: 15.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005349/0.4302, allocations: 132.8 kB / 0.6106 GB, free: 15.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.4304, allocations: 68.78 kB / 0.6106 GB, free: 15.79 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4304, allocations: 0 / 0.6106 GB, free: 15.79 MB / 442.7 MB Notification: Performance of Templates: time 0.01996/0.4503, allocations: 12.31 MB / 0.6227 GB, free: 4.379 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)