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.0008474/0.0008476, allocations: 171.5 kB / 16.11 MB, free: 5.688 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.197/1.197, allocations: 205 MB / 221.9 MB, free: 9.141 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.000716/0.000716, allocations: 94.23 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6163/0.6163, allocations: 90.5 MB / 408.3 MB, free: 3.938 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.000284, allocations: 8.219 kB / 484.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 65.81 MB / 0.5378 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01987/0.2489, allocations: 30.41 MB / 0.5675 GB, free: 8.488 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.007383/0.2563, allocations: 9.574 MB / 0.5768 GB, free: 14.88 MB / 410.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.0005989/0.257, allocations: 19.88 kB / 0.5768 GB, free: 14.86 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.258, allocations: 469.6 kB / 0.5773 GB, free: 14.4 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.2594, allocations: 0.6913 MB / 0.5779 GB, free: 13.7 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.2607, allocations: 0.625 MB / 0.5786 GB, free: 13.08 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.262, allocations: 1.615 MB / 0.5801 GB, free: 11.46 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.2623, allocations: 257.6 kB / 0.5804 GB, free: 11.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006325/0.2629, allocations: 485.9 kB / 0.5808 GB, free: 10.72 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.2634, allocations: 469.6 kB / 0.5813 GB, free: 10.26 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.045e-05/0.2635, allocations: 36 kB / 0.5813 GB, free: 10.23 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009777/0.2645, allocations: 0.5033 MB / 0.5818 GB, free: 9.723 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.2646, allocations: 151.2 kB / 0.582 GB, free: 9.574 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003554/0.265, allocations: 429.6 kB / 0.5824 GB, free: 9.152 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00126/0.2662, allocations: 1.222 MB / 0.5836 GB, free: 7.926 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2663, allocations: 3.984 kB / 0.5836 GB, free: 7.922 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2663, allocations: 0 / 0.5836 GB, free: 7.922 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2663, allocations: 0 / 0.5836 GB, free: 7.922 MB / 410.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.001806/0.2681, allocations: 1.129 MB / 0.5847 GB, free: 6.734 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2681, allocations: 8.031 kB / 0.5847 GB, free: 6.727 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002295/0.2684, allocations: 111.7 kB / 0.5848 GB, free: 6.617 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006293/0.269, allocations: 0.5247 MB / 0.5853 GB, free: 6.055 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/0.2691, allocations: 54.38 kB / 0.5853 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.2692, allocations: 88.11 kB / 0.5854 GB, free: 5.914 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.2705, allocations: 0.7946 MB / 0.5862 GB, free: 5.105 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.2705, allocations: 4 kB / 0.5862 GB, free: 5.102 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.481e-05/0.2706, allocations: 32 kB / 0.5862 GB, free: 5.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.2706, allocations: 16 kB / 0.5863 GB, free: 5.055 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.2717, allocations: 0.648 MB / 0.5869 GB, free: 4.406 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/0.2755, allocations: 3.732 MB / 0.5905 GB, free: 288 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.2767, allocations: 0.6585 MB / 0.5912 GB, free: 15.62 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004976/0.2772, allocations: 302.4 kB / 0.5915 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002244/0.2795, allocations: 2.551 MB / 0.594 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006321/0.2801, allocations: 393.8 kB / 0.5943 GB, free: 11.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.144e-06/0.2801, allocations: 0 / 0.5943 GB, free: 11.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.003627/0.2838, allocations: 1.979 MB / 0.5963 GB, free: 9.918 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.2838, allocations: 89.67 kB / 0.5964 GB, free: 9.812 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.0005046/0.2843, allocations: 496.4 kB / 0.5968 GB, free: 9.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/0.2844, allocations: 41.7 kB / 0.5969 GB, free: 9.273 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.2846, allocations: 379.8 kB / 0.5972 GB, free: 8.895 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.2848, allocations: 228.7 kB / 0.5974 GB, free: 8.668 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.2848, allocations: 8 kB / 0.5975 GB, free: 8.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.285, allocations: 378.8 kB / 0.5978 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.2854, allocations: 237.9 kB / 0.598 GB, free: 8.051 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.2859, allocations: 339.8 kB / 0.5984 GB, free: 7.684 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009709/0.2869, allocations: 0.5965 MB / 0.5989 GB, free: 7.047 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2869, allocations: 4 kB / 0.599 GB, free: 7.043 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001434/0.2884, allocations: 0.8346 MB / 0.5998 GB, free: 6.191 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.2884, allocations: 37.7 kB / 0.5998 GB, free: 6.148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.2884, allocations: 0 / 0.5998 GB, free: 6.148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.2887, allocations: 96.84 kB / 0.5999 GB, free: 6.051 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.2893, allocations: 135.8 kB / 0.6 GB, free: 5.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/0.291, allocations: 1.835 MB / 0.6018 GB, free: 3.953 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004104/0.2914, allocations: 55.91 kB / 0.6019 GB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.688e-05/0.2915, allocations: 27.98 kB / 0.6019 GB, free: 3.871 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 (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.0002614/0.2918, allocations: 213.7 kB / 0.6021 GB, free: 3.652 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.984e-05/0.2919, allocations: 67.16 kB / 0.6022 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.2935, allocations: 0.819 MB / 0.603 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.2935, allocations: 3.984 kB / 0.603 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2935, allocations: 4 kB / 0.603 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/0.2938, allocations: 204.2 kB / 0.6032 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.715e-05/0.2938, allocations: 12 kB / 0.6032 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/0.2943, allocations: 59.94 kB / 0.6032 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.2944, allocations: 56.47 kB / 0.6033 GB, free: 2.398 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001899/0.2963, allocations: 0.8664 MB / 0.6041 GB, free: 1.52 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001717/0.298, allocations: 1.163 MB / 0.6053 GB, free: 352 kB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000479/0.2985, allocations: 296.3 kB / 0.6056 GB, free: 56 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003367/0.2989, allocations: 334.8 kB / 0.6059 GB, free: 15.73 MB / 442.7 MB Notification: Performance of Backend: time 3.11e-07/0.2989, allocations: 0 / 0.6059 GB, free: 15.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.3006, allocations: 0.9845 MB / 0.6068 GB, free: 14.71 MB / 442.7 MB Notification: Performance of SimCode: time 0.002605/0.3033, allocations: 2.413 MB / 0.6092 GB, free: 12.25 MB / 442.7 MB Notification: Performance of Templates: time 0.02035/0.3236, allocations: 13.7 MB / 0.6226 GB, free: 14.62 MB / 458.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)