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.8201/0.8201, allocations: 150.9 MB / 167.1 MB, free: 14.24 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.00037, allocations: 15.97 kB / 206 MB, free: 8.922 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1505, allocations: 31.33 MB / 237.3 MB, free: 5.77 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.618/1.768, allocations: 294.5 MB / 0.5194 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.194/1.962, allocations: 187.7 MB / 0.7027 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002748/1.962, allocations: 11.88 kB / 0.7027 GB, free: 1.012 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.0002887/1.963, allocations: 99.42 kB / 0.7028 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003277/1.963, allocations: 162.9 kB / 0.703 GB, free: 0.7539 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.3221/2.285, allocations: 11.46 MB / 0.7142 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005421/2.286, allocations: 428.9 kB / 0.7146 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/2.286, allocations: 220.3 kB / 0.7148 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/2.286, allocations: 173.6 kB / 0.7149 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/2.286, allocations: 228.9 kB / 0.7152 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.04e-05/2.286, allocations: 36.97 kB / 0.7152 GB, free: 2.344 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03481/2.321, allocations: 19.96 MB / 0.7347 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001992/2.321, allocations: 106.8 kB / 0.7348 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000308/2.322, allocations: 209.8 kB / 0.735 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0242/2.346, allocations: 9.85 MB / 0.7446 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/2.346, allocations: 2.844 kB / 0.7446 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.074e-06/2.346, allocations: 3.875 kB / 0.7446 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.654e-05/2.346, allocations: 0 / 0.7446 GB, free: 15.74 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.005459/2.352, allocations: 1.832 MB / 0.7464 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/2.352, allocations: 7.156 kB / 0.7464 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/2.352, allocations: 59.08 kB / 0.7465 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/2.352, allocations: 351.8 kB / 0.7468 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/2.352, allocations: 28.44 kB / 0.7468 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/2.352, allocations: 35.06 kB / 0.7469 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/2.353, allocations: 373.2 kB / 0.7472 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/2.353, allocations: 3.547 kB / 0.7472 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/2.353, allocations: 18.5 kB / 0.7472 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/2.353, allocations: 8.469 kB / 0.7472 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003896/2.353, allocations: 266.1 kB / 0.7475 GB, free: 14.07 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.008466/2.362, allocations: 6.206 MB / 0.7536 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/2.362, allocations: 105.4 kB / 0.7537 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.689e-05/2.362, allocations: 56.23 kB / 0.7537 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2297/2.592, allocations: 119 MB / 0.8699 GB, free: 13.74 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/2.592, allocations: 38.38 kB / 0.8699 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.204e-06/2.592, allocations: 1.203 kB / 0.8699 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0009316/2.593, allocations: 313.3 kB / 0.8702 GB, free: 13.4 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/2.593, allocations: 55.41 kB / 0.8703 GB, free: 13.33 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/2.593, allocations: 421.8 kB / 0.8707 GB, free: 12.99 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/2.593, allocations: 25.7 kB / 0.8707 GB, free: 12.96 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/2.594, allocations: 265.6 kB / 0.871 GB, free: 12.75 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/2.594, allocations: 26.89 kB / 0.871 GB, free: 12.73 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.098e-05/2.594, allocations: 55.17 kB / 0.871 GB, free: 12.69 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001335/2.594, allocations: 348.7 kB / 0.8714 GB, free: 12.35 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/2.594, allocations: 66.3 kB / 0.8714 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/2.594, allocations: 159.7 kB / 0.8716 GB, free: 12.13 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/2.594, allocations: 230.3 kB / 0.8718 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/2.594, allocations: 0 / 0.8718 GB, free: 11.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005708/2.595, allocations: 314.9 kB / 0.8721 GB, free: 11.67 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/2.595, allocations: 9.875 kB / 0.8721 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/2.595, allocations: 5.703 kB / 0.8721 GB, free: 11.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007808/2.596, allocations: 118.8 kB / 0.8722 GB, free: 11.55 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/2.596, allocations: 39.17 kB / 0.8723 GB, free: 11.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004666/2.597, allocations: 0.5686 MB / 0.8728 GB, free: 10.94 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/2.597, allocations: 31.12 kB / 0.8729 GB, free: 10.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/2.597, allocations: 11.44 kB / 0.8729 GB, free: 10.91 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.0001752/2.597, allocations: 176.9 kB / 0.873 GB, free: 10.75 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.388e-05/2.597, allocations: 31.66 kB / 0.8731 GB, free: 10.72 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004566/2.597, allocations: 213 kB / 0.8733 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/2.597, allocations: 4 kB / 0.8733 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/2.597, allocations: 0 / 0.8733 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/2.597, allocations: 1.203 kB / 0.8733 GB, free: 10.54 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003472/2.598, allocations: 363 kB / 0.8736 GB, free: 10.2 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/2.598, allocations: 0 / 0.8736 GB, free: 10.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/2.598, allocations: 8 kB / 0.8736 GB, free: 10.19 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000415/2.598, allocations: 75.64 kB / 0.8737 GB, free: 10.12 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/2.598, allocations: 4 kB / 0.8737 GB, free: 10.11 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004354/2.599, allocations: 0.565 MB / 0.8743 GB, free: 9.543 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/2.599, allocations: 11.06 kB / 0.8743 GB, free: 9.535 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/2.599, allocations: 193.9 kB / 0.8745 GB, free: 9.348 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/2.599, allocations: 112.3 kB / 0.8746 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.892e-05/2.599, allocations: 5.078 kB / 0.8746 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-05/2.599, allocations: 11.23 kB / 0.8746 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/2.599, allocations: 8 kB / 0.8746 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/2.599, allocations: 4 kB / 0.8746 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003515/2.6, allocations: 303.1 kB / 0.8749 GB, free: 8.973 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/2.6, allocations: 0 / 0.8749 GB, free: 8.973 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004062/2.604, allocations: 1.455 MB / 0.8763 GB, free: 7.621 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.006508/2.61, allocations: 2.222 MB / 0.8785 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006027/2.611, allocations: 172.3 kB / 0.8786 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/2.611, allocations: 0 / 0.8786 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001798/2.611, allocations: 56.7 kB / 0.8787 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/2.612, allocations: 71.11 kB / 0.8788 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001156/2.613, allocations: 0.5985 MB / 0.8793 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/2.613, allocations: 0.7993 MB / 0.8801 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001446/2.613, allocations: 50.91 kB / 0.8802 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/2.613, allocations: 24.06 kB / 0.8802 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of SimCode: time 6.21e-07/2.613, allocations: 0 / 0.8802 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of Templates: time 0.06024/2.674, allocations: 46.21 MB / 0.9253 GB, free: 5.887 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 cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)