Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.824/0.824, allocations: 150.9 MB / 167.1 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003142, allocations: 11.97 kB / 206 MB, free: 9.066 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 31.33 MB / 237.3 MB, free: 5.723 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.597/1.734, allocations: 294.6 MB / 0.5194 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1884/1.922, allocations: 187.7 MB / 0.7027 GB, free: 1 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003901/1.922, allocations: 7.938 kB / 0.7027 GB, free: 0.9922 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0003405/1.923, allocations: 87.5 kB / 0.7028 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004708/1.923, allocations: 166.9 kB / 0.703 GB, free: 0.7422 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.2958/2.219, allocations: 11.46 MB / 0.7142 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004518/2.22, allocations: 426.8 kB / 0.7146 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/2.22, allocations: 217.6 kB / 0.7148 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001482/2.22, allocations: 173.6 kB / 0.7149 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/2.22, allocations: 223.7 kB / 0.7151 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/2.22, allocations: 32.72 kB / 0.7152 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03046/2.251, allocations: 19.97 MB / 0.7347 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002189/2.251, allocations: 105.9 kB / 0.7348 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003391/2.251, allocations: 210.3 kB / 0.735 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02135/2.273, allocations: 9.854 MB / 0.7446 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.942e-06/2.273, allocations: 2.781 kB / 0.7446 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.894e-06/2.273, allocations: 0.8438 kB / 0.7446 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 9.298e-06/2.273, allocations: 0 / 0.7446 GB, free: 15.72 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.004218/2.277, allocations: 1.828 MB / 0.7464 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/2.277, allocations: 11.72 kB / 0.7464 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.417e-05/2.277, allocations: 59.52 kB / 0.7465 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004699/2.278, allocations: 359.9 kB / 0.7468 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/2.278, allocations: 24 kB / 0.7468 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/2.278, allocations: 35.28 kB / 0.7469 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000512/2.278, allocations: 377.3 kB / 0.7472 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/2.278, allocations: 2.75 kB / 0.7472 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/2.278, allocations: 19.72 kB / 0.7472 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/2.278, allocations: 8.938 kB / 0.7473 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003956/2.279, allocations: 260 kB / 0.7475 GB, free: 14.05 MB / 0.5919 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007927/2.287, allocations: 6.202 MB / 0.7536 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/2.287, allocations: 114.9 kB / 0.7537 GB, free: 8.855 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.23e-05/2.287, allocations: 46.69 kB / 0.7537 GB, free: 8.844 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2291/2.516, allocations: 119 MB / 0.8699 GB, free: 13.73 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/2.516, allocations: 37.75 kB / 0.8699 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.615e-06/2.516, allocations: 4 kB / 0.8699 GB, free: 13.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0008865/2.517, allocations: 310 kB / 0.8702 GB, free: 13.38 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/2.517, allocations: 51.41 kB / 0.8703 GB, free: 13.32 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005252/2.517, allocations: 424.8 kB / 0.8707 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/2.517, allocations: 29.45 kB / 0.8707 GB, free: 12.95 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/2.518, allocations: 258.9 kB / 0.871 GB, free: 12.74 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/2.518, allocations: 33.53 kB / 0.871 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.445e-05/2.518, allocations: 59.09 kB / 0.871 GB, free: 12.67 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001081/2.518, allocations: 340.7 kB / 0.8714 GB, free: 12.34 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/2.518, allocations: 65.59 kB / 0.8714 GB, free: 12.29 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/2.518, allocations: 164.1 kB / 0.8716 GB, free: 12.11 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/2.518, allocations: 231 kB / 0.8718 GB, free: 11.9 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/2.519, allocations: 7.656 kB / 0.8718 GB, free: 11.89 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005882/2.519, allocations: 307.5 kB / 0.8721 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/2.519, allocations: 4 kB / 0.8721 GB, free: 11.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/2.519, allocations: 7.094 kB / 0.8721 GB, free: 11.65 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008073/2.52, allocations: 119.7 kB / 0.8722 GB, free: 11.54 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/2.52, allocations: 36.27 kB / 0.8723 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004466/2.521, allocations: 0.5649 MB / 0.8728 GB, free: 10.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/2.521, allocations: 26.81 kB / 0.8728 GB, free: 10.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/2.521, allocations: 19.86 kB / 0.8729 GB, free: 10.89 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001603/2.521, allocations: 176.3 kB / 0.873 GB, free: 10.74 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.23e-05/2.521, allocations: 31.62 kB / 0.8731 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004721/2.522, allocations: 226.4 kB / 0.8733 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/2.522, allocations: 3.984 kB / 0.8733 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/2.522, allocations: 0 / 0.8733 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/2.522, allocations: 4 kB / 0.8733 GB, free: 10.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/2.522, allocations: 349.9 kB / 0.8736 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/2.522, allocations: 0 / 0.8736 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.973e-05/2.522, allocations: 11.98 kB / 0.8736 GB, free: 10.17 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004394/2.522, allocations: 71.59 kB / 0.8737 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/2.522, allocations: 7.984 kB / 0.8737 GB, free: 10.1 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004105/2.523, allocations: 0.5641 MB / 0.8743 GB, free: 9.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/2.523, allocations: 3.938 kB / 0.8743 GB, free: 9.527 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003722/2.523, allocations: 207.1 kB / 0.8745 GB, free: 9.336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/2.523, allocations: 108.7 kB / 0.8746 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/2.523, allocations: 7.625 kB / 0.8746 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.048e-05/2.523, allocations: 5.031 kB / 0.8746 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.458e-05/2.524, allocations: 7.984 kB / 0.8746 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/2.524, allocations: 0 / 0.8746 GB, free: 9.195 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003603/2.524, allocations: 304.9 kB / 0.8749 GB, free: 8.961 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.61e-07/2.524, allocations: 4 kB / 0.8749 GB, free: 8.957 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003686/2.528, allocations: 1.455 MB / 0.8763 GB, free: 7.605 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007022/2.535, allocations: 2.216 MB / 0.8785 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000482/2.535, allocations: 167.4 kB / 0.8786 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/2.535, allocations: 0 / 0.8786 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001909/2.535, allocations: 64.25 kB / 0.8787 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/2.536, allocations: 70.25 kB / 0.8788 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/2.537, allocations: 0.602 MB / 0.8793 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/2.537, allocations: 0.799 MB / 0.8801 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001446/2.537, allocations: 47.06 kB / 0.8802 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.221e-05/2.537, allocations: 28.06 kB / 0.8802 GB, free: 4 MB / 0.7169 GB Notification: Performance of SimCode: time 4.8e-07/2.537, allocations: 4 kB / 0.8802 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of Templates: time 0.05827/2.596, allocations: 46.21 MB / 0.9253 GB, free: 5.875 MB / 0.7637 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)