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.8177/0.8177, allocations: 150.9 MB / 166.4 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003087/0.0003088, allocations: 19.91 kB / 204.6 MB, free: 9.73 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1485, allocations: 31.33 MB / 235.9 MB, free: 5.426 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.591/1.739, allocations: 294.7 MB / 0.5182 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1948/1.934, allocations: 187.7 MB / 0.7015 GB, free: 1.129 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/1.934, allocations: 11.94 kB / 0.7015 GB, free: 1.117 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.0002727/1.935, allocations: 91.52 kB / 0.7016 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003009/1.935, allocations: 166.9 kB / 0.7018 GB, free: 0.8633 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.305/2.24, allocations: 11.46 MB / 0.713 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004954/2.24, allocations: 427.7 kB / 0.7134 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002627/2.241, allocations: 219.1 kB / 0.7136 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/2.241, allocations: 174.1 kB / 0.7138 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/2.241, allocations: 225.1 kB / 0.714 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/2.241, allocations: 33.41 kB / 0.714 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02966/2.271, allocations: 19.72 MB / 0.7333 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002094/2.271, allocations: 105.2 kB / 0.7334 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003269/2.271, allocations: 212.9 kB / 0.7336 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02059/2.292, allocations: 9.864 MB / 0.7432 GB, free: 20 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/2.292, allocations: 0 / 0.7432 GB, free: 20 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.823e-06/2.292, allocations: 0.875 kB / 0.7432 GB, free: 20 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.787e-06/2.292, allocations: 0 / 0.7432 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.004943/2.297, allocations: 1.829 MB / 0.745 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/2.297, allocations: 11.59 kB / 0.745 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.296e-05/2.297, allocations: 58.03 kB / 0.745 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/2.298, allocations: 343.1 kB / 0.7454 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/2.298, allocations: 31.28 kB / 0.7454 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/2.298, allocations: 32.06 kB / 0.7454 GB, free: 14.54 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/2.298, allocations: 377.1 kB / 0.7458 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/2.298, allocations: 0 / 0.7458 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/2.298, allocations: 20.78 kB / 0.7458 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/2.298, allocations: 7.469 kB / 0.7458 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003786/2.299, allocations: 266.8 kB / 0.7461 GB, free: 14.35 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.008486/2.307, allocations: 6.209 MB / 0.7521 GB, free: 9.195 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/2.307, allocations: 110.3 kB / 0.7522 GB, free: 9.16 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.245e-05/2.307, allocations: 46.19 kB / 0.7523 GB, free: 9.148 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2379/2.545, allocations: 118.3 MB / 0.8678 GB, free: 14.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/2.545, allocations: 30.56 kB / 0.8678 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.245e-06/2.545, allocations: 0 / 0.8678 GB, free: 14.8 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000928/2.546, allocations: 317.4 kB / 0.8681 GB, free: 14.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/2.546, allocations: 54.22 kB / 0.8682 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/2.547, allocations: 430.6 kB / 0.8686 GB, free: 14.09 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/2.547, allocations: 29.7 kB / 0.8686 GB, free: 14.05 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/2.547, allocations: 254.4 kB / 0.8689 GB, free: 13.85 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/2.547, allocations: 30.64 kB / 0.8689 GB, free: 13.83 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/2.547, allocations: 51.61 kB / 0.869 GB, free: 13.79 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001342/2.547, allocations: 344.8 kB / 0.8693 GB, free: 13.45 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/2.547, allocations: 65.34 kB / 0.8693 GB, free: 13.41 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/2.548, allocations: 163.5 kB / 0.8695 GB, free: 13.23 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/2.548, allocations: 235.9 kB / 0.8697 GB, free: 13.01 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/2.548, allocations: 0 / 0.8697 GB, free: 13.01 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005478/2.549, allocations: 320.8 kB / 0.87 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/2.549, allocations: 4 kB / 0.87 GB, free: 12.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/2.549, allocations: 4 kB / 0.87 GB, free: 12.76 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007949/2.549, allocations: 116.4 kB / 0.8701 GB, free: 12.65 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/2.55, allocations: 46.69 kB / 0.8702 GB, free: 12.61 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004688/2.55, allocations: 0.5619 MB / 0.8707 GB, free: 12.04 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001864/2.55, allocations: 31.38 kB / 0.8708 GB, free: 12.02 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/2.55, allocations: 12 kB / 0.8708 GB, free: 12 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.0001961/2.55, allocations: 169.8 kB / 0.8709 GB, free: 11.85 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.393e-05/2.55, allocations: 35.61 kB / 0.871 GB, free: 11.82 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004908/2.551, allocations: 211.4 kB / 0.8712 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/2.551, allocations: 0 / 0.8712 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/2.551, allocations: 4 kB / 0.8712 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/2.551, allocations: 0 / 0.8712 GB, free: 11.64 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000347/2.551, allocations: 360.1 kB / 0.8715 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/2.551, allocations: 1.203 kB / 0.8715 GB, free: 11.3 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.617e-05/2.551, allocations: 12 kB / 0.8715 GB, free: 11.29 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004455/2.552, allocations: 80.45 kB / 0.8716 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/2.552, allocations: 4 kB / 0.8716 GB, free: 11.21 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004367/2.552, allocations: 0.5648 MB / 0.8722 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/2.552, allocations: 3.938 kB / 0.8722 GB, free: 10.64 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000378/2.553, allocations: 207.1 kB / 0.8724 GB, free: 10.45 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/2.553, allocations: 108.3 kB / 0.8725 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/2.553, allocations: 4.094 kB / 0.8725 GB, free: 10.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.501e-05/2.553, allocations: 8 kB / 0.8725 GB, free: 10.31 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/2.553, allocations: 7.984 kB / 0.8725 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/2.553, allocations: 5.078 kB / 0.8725 GB, free: 10.3 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003191/2.553, allocations: 302.4 kB / 0.8728 GB, free: 10.07 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/2.553, allocations: 2.719 kB / 0.8728 GB, free: 10.07 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003993/2.557, allocations: 1.454 MB / 0.8742 GB, free: 8.719 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.006143/2.564, allocations: 2.218 MB / 0.8764 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005475/2.564, allocations: 172.2 kB / 0.8765 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/2.564, allocations: 5.141 kB / 0.8765 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001884/2.564, allocations: 61.02 kB / 0.8766 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/2.565, allocations: 74.89 kB / 0.8767 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/2.566, allocations: 0.6049 MB / 0.8773 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/2.566, allocations: 0.7987 MB / 0.878 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001453/2.566, allocations: 48.11 kB / 0.8781 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.7e-05/2.566, allocations: 28.06 kB / 0.8781 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/2.566, allocations: 0 / 0.8781 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of Templates: time 0.05861/2.625, allocations: 46.22 MB / 0.9233 GB, free: 6.961 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)