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.001416/0.001417, allocations: 175.3 kB / 15.78 MB, free: 6.348 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.657/1.657, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007742/0.000774, allocations: 98.23 kB / 270.3 MB, free: 13.34 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.8451/0.8451, allocations: 90.6 MB / 409.1 MB, free: 14.98 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003371, allocations: 12 kB / 485.9 MB, free: 2.066 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4372/0.4375, allocations: 66.27 MB / 0.5392 GB, free: 45.48 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02502/0.4626, allocations: 28.6 MB / 0.5672 GB, free: 29.6 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.009912/0.4726, allocations: 8.958 MB / 0.5759 GB, free: 23.18 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.001142/0.4738, allocations: 20.66 kB / 0.5759 GB, free: 23.18 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001474/0.4753, allocations: 433.8 kB / 0.5763 GB, free: 22.94 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002542/0.4778, allocations: 0.6984 MB / 0.577 GB, free: 22.5 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002071/0.4799, allocations: 0.5276 MB / 0.5775 GB, free: 22.21 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002622/0.4825, allocations: 1.434 MB / 0.5789 GB, free: 21.55 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004489/0.483, allocations: 235.9 kB / 0.5792 GB, free: 21.48 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.484, allocations: 463.8 kB / 0.5796 GB, free: 21.3 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006135/0.4846, allocations: 454.7 kB / 0.58 GB, free: 21.1 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 9.765e-05/0.4847, allocations: 35.66 kB / 0.5801 GB, free: 21.1 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001653/0.4864, allocations: 373.5 kB / 0.5804 GB, free: 21.02 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001708/0.4866, allocations: 145.8 kB / 0.5806 GB, free: 20.93 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.4868, allocations: 191.8 kB / 0.5807 GB, free: 20.82 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.4881, allocations: 0.8684 MB / 0.5816 GB, free: 20.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.4881, allocations: 1.062 kB / 0.5816 GB, free: 20.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4881, allocations: 0 / 0.5816 GB, free: 20.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.4882, allocations: 4 kB / 0.5816 GB, free: 20.56 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.002309/0.4905, allocations: 1.135 MB / 0.5827 GB, free: 19.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.4905, allocations: 9.156 kB / 0.5827 GB, free: 19.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002589/0.4908, allocations: 111.1 kB / 0.5828 GB, free: 19.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008456/0.4916, allocations: 0.4953 MB / 0.5833 GB, free: 19.35 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-05/0.4917, allocations: 56.81 kB / 0.5834 GB, free: 19.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.4919, allocations: 79.33 kB / 0.5834 GB, free: 19.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.4936, allocations: 0.7992 MB / 0.5842 GB, free: 18.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/0.4936, allocations: 1 kB / 0.5842 GB, free: 18.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.344e-05/0.4937, allocations: 31.92 kB / 0.5843 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.45e-05/0.4937, allocations: 18.75 kB / 0.5843 GB, free: 18.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.495, allocations: 0.647 MB / 0.5849 GB, free: 18.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/0.4994, allocations: 3.736 MB / 0.5885 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.5007, allocations: 0.649 MB / 0.5892 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005454/0.5013, allocations: 303.8 kB / 0.5895 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002491/0.5038, allocations: 2.561 MB / 0.592 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007848/0.5046, allocations: 382.3 kB / 0.5923 GB, free: 12.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=65): time 2.275e-06/0.5046, allocations: 0 / 0.5923 GB, free: 12.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=67): time 0.004056/0.5087, allocations: 1.972 MB / 0.5943 GB, free: 11.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.5087, allocations: 85.94 kB / 0.5943 GB, free: 11.51 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.0006594/0.5094, allocations: 492.8 kB / 0.5948 GB, free: 11.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.326e-05/0.5095, allocations: 42.14 kB / 0.5949 GB, free: 11.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000358/0.5098, allocations: 375.5 kB / 0.5952 GB, free: 10.94 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.5101, allocations: 228.8 kB / 0.5954 GB, free: 10.76 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-05/0.5101, allocations: 15.69 kB / 0.5954 GB, free: 10.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5102, allocations: 375.2 kB / 0.5958 GB, free: 10.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004853/0.5107, allocations: 229.4 kB / 0.596 GB, free: 10.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005403/0.5113, allocations: 335.1 kB / 0.5963 GB, free: 10.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005333/0.5118, allocations: 295.5 kB / 0.5966 GB, free: 9.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.5118, allocations: 1.625 kB / 0.5966 GB, free: 9.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001639/0.5135, allocations: 0.8198 MB / 0.5974 GB, free: 9.605 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.64e-05/0.5136, allocations: 39.05 kB / 0.5975 GB, free: 9.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.5136, allocations: 2.062 kB / 0.5975 GB, free: 9.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003907/0.514, allocations: 98.19 kB / 0.5976 GB, free: 9.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005309/0.5145, allocations: 137.1 kB / 0.5977 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001772/0.5163, allocations: 1.839 MB / 0.5995 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004919/0.5168, allocations: 60.75 kB / 0.5995 GB, free: 7.922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.917e-05/0.5169, allocations: 26.91 kB / 0.5996 GB, free: 7.918 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.0003276/0.5172, allocations: 205.1 kB / 0.5998 GB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.946e-05/0.5173, allocations: 72.36 kB / 0.5998 GB, free: 7.707 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.5191, allocations: 0.8205 MB / 0.6006 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.5191, allocations: 7.062 kB / 0.6006 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.5191, allocations: 1.062 kB / 0.6006 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5191, allocations: 4.688 kB / 0.6006 GB, free: 7.348 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.5217, allocations: 1.645 MB / 0.6023 GB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.5217, allocations: 1.906 kB / 0.6023 GB, free: 6.215 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000524/0.5223, allocations: 121.1 kB / 0.6024 GB, free: 6.184 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003043/0.5226, allocations: 106.8 kB / 0.6025 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/0.5226, allocations: 22.7 kB / 0.6025 GB, free: 6.109 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001591/0.5242, allocations: 1.829 MB / 0.6043 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.5243, allocations: 0 / 0.6043 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.5262, allocations: 1.151 MB / 0.6054 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.5265, allocations: 201.3 kB / 0.6056 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.152e-05/0.5266, allocations: 13.38 kB / 0.6056 GB, free: 3.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004766/0.5271, allocations: 58.48 kB / 0.6057 GB, free: 3.543 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.5272, allocations: 62.8 kB / 0.6057 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.5273, allocations: 29.48 kB / 0.6058 GB, free: 3.496 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004543/0.5277, allocations: 331.5 kB / 0.6061 GB, free: 3.297 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.623e-06/0.5277, allocations: 0 / 0.6061 GB, free: 3.297 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001193/0.5289, allocations: 284.5 kB / 0.6063 GB, free: 3.23 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.0005655/0.5295, allocations: 349.8 kB / 0.6067 GB, free: 3.031 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.531, allocations: 0.8209 MB / 0.6075 GB, free: 2.551 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.531, allocations: 1.344 kB / 0.6075 GB, free: 2.551 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008234/0.5319, allocations: 491.4 kB / 0.6079 GB, free: 2.262 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.533, allocations: 188.9 kB / 0.6081 GB, free: 2.168 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003001/0.536, allocations: 2.099 MB / 0.6102 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004447/0.5365, allocations: 0.9578 MB / 0.6111 GB, free: 15.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.5367, allocations: 72.88 kB / 0.6112 GB, free: 15.87 MB / 442.7 MB Notification: Performance of SimCode: time 3.1e-07/0.5367, allocations: 0 / 0.6112 GB, free: 15.87 MB / 442.7 MB Notification: Performance of Templates: time 0.02418/0.5609, allocations: 15.43 MB / 0.6262 GB, free: 1.305 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)