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.7432/0.7432, allocations: 150.9 MB / 167 MB, free: 14.26 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003126, allocations: 11.97 kB / 205.2 MB, free: 9.605 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 31.33 MB / 236.6 MB, free: 5.449 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.423/1.541, allocations: 294.7 MB / 0.5189 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1727/1.714, allocations: 187.7 MB / 0.7022 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/1.714, allocations: 11.94 kB / 0.7022 GB, free: 1.07 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.0002338/1.714, allocations: 91.45 kB / 0.7023 GB, free: 0.9805 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000266/1.715, allocations: 170.9 kB / 0.7024 GB, free: 0.8125 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.2542/1.969, allocations: 11.46 MB / 0.7136 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004432/1.969, allocations: 423.2 kB / 0.714 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002658/1.97, allocations: 215.3 kB / 0.7143 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/1.97, allocations: 174 kB / 0.7144 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002321/1.97, allocations: 221.5 kB / 0.7146 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.328e-05/1.97, allocations: 33.47 kB / 0.7147 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02738/1.997, allocations: 19.72 MB / 0.7339 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001538/1.998, allocations: 107.2 kB / 0.734 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002444/1.998, allocations: 208.7 kB / 0.7342 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01786/2.016, allocations: 9.864 MB / 0.7439 GB, free: 20 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/2.016, allocations: 1 kB / 0.7439 GB, free: 20 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.994e-06/2.016, allocations: 0 / 0.7439 GB, free: 20 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.216e-06/2.016, allocations: 2.109 kB / 0.7439 GB, free: 20 kB / 0.5762 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.004302/2.02, allocations: 1.842 MB / 0.7457 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/2.02, allocations: 11.06 kB / 0.7457 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.412e-05/2.02, allocations: 56.44 kB / 0.7457 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/2.021, allocations: 337 kB / 0.746 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/2.021, allocations: 28.17 kB / 0.7461 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.644e-05/2.021, allocations: 33.09 kB / 0.7461 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004635/2.021, allocations: 382.8 kB / 0.7465 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/2.021, allocations: 0 / 0.7465 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/2.021, allocations: 20.69 kB / 0.7465 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/2.021, allocations: 8.156 kB / 0.7465 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003569/2.022, allocations: 260.7 kB / 0.7467 GB, free: 14.34 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.007685/2.029, allocations: 6.21 MB / 0.7528 GB, free: 9.188 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/2.029, allocations: 113.4 kB / 0.7529 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.929e-05/2.03, allocations: 46.66 kB / 0.753 GB, free: 9.145 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2234/2.253, allocations: 118.3 MB / 0.8685 GB, free: 14.79 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/2.253, allocations: 38.53 kB / 0.8685 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.933e-06/2.253, allocations: 0 / 0.8685 GB, free: 14.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000802/2.254, allocations: 306.8 kB / 0.8688 GB, free: 14.45 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/2.254, allocations: 58.58 kB / 0.8689 GB, free: 14.39 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004545/2.254, allocations: 425 kB / 0.8693 GB, free: 14.04 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/2.254, allocations: 25.7 kB / 0.8693 GB, free: 14.01 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/2.255, allocations: 261.8 kB / 0.8695 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/2.255, allocations: 27.41 kB / 0.8696 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.861e-05/2.255, allocations: 61.81 kB / 0.8696 GB, free: 13.74 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001062/2.255, allocations: 340.8 kB / 0.8699 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/2.255, allocations: 65.47 kB / 0.87 GB, free: 13.36 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/2.255, allocations: 161.9 kB / 0.8702 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002585/2.255, allocations: 234.1 kB / 0.8704 GB, free: 12.97 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/2.255, allocations: 4 kB / 0.8704 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000539/2.256, allocations: 307.6 kB / 0.8707 GB, free: 12.72 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/2.256, allocations: 11.17 kB / 0.8707 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/2.256, allocations: 5.094 kB / 0.8707 GB, free: 12.71 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007635/2.257, allocations: 120.9 kB / 0.8708 GB, free: 12.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/2.257, allocations: 35.08 kB / 0.8708 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004239/2.257, allocations: 0.5679 MB / 0.8714 GB, free: 12 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/2.257, allocations: 31.23 kB / 0.8714 GB, free: 11.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/2.257, allocations: 16.31 kB / 0.8714 GB, free: 11.96 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.0001508/2.258, allocations: 171.5 kB / 0.8716 GB, free: 11.8 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/2.258, allocations: 31.62 kB / 0.8716 GB, free: 11.77 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/2.258, allocations: 219.7 kB / 0.8718 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/2.258, allocations: 0 / 0.8718 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/2.258, allocations: 1.203 kB / 0.8719 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/2.258, allocations: 0 / 0.8719 GB, free: 11.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/2.259, allocations: 356.9 kB / 0.8722 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/2.259, allocations: 0 / 0.8722 GB, free: 11.25 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/2.259, allocations: 15.98 kB / 0.8722 GB, free: 11.23 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004076/2.259, allocations: 81.95 kB / 0.8723 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/2.259, allocations: 1.188 kB / 0.8723 GB, free: 11.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003962/2.259, allocations: 0.5722 MB / 0.8728 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/2.259, allocations: 3.938 kB / 0.8728 GB, free: 10.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/2.26, allocations: 204 kB / 0.873 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.573e-05/2.26, allocations: 105.6 kB / 0.8731 GB, free: 10.28 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.975e-05/2.26, allocations: 4 kB / 0.8731 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.392e-05/2.26, allocations: 10.17 kB / 0.8732 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/2.26, allocations: 8.062 kB / 0.8732 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/2.26, allocations: 0 / 0.8732 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002886/2.26, allocations: 306.2 kB / 0.8735 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/2.26, allocations: 0 / 0.8735 GB, free: 10.02 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003469/2.264, allocations: 1.454 MB / 0.8749 GB, free: 8.672 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.006514/2.27, allocations: 2.224 MB / 0.877 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004859/2.271, allocations: 171.3 kB / 0.8772 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.271, allocations: 4.125 kB / 0.8772 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000167/2.271, allocations: 57.47 kB / 0.8773 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004304/2.271, allocations: 70.06 kB / 0.8773 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/2.272, allocations: 0.6436 MB / 0.878 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/2.273, allocations: 0.7987 MB / 0.8787 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.381e-05/2.273, allocations: 28.56 kB / 0.8788 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/2.273, allocations: 4 kB / 0.8788 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of Templates: time 0.03855/2.311, allocations: 29.96 MB / 0.908 GB, free: 7.188 MB / 0.7481 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)