Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.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.8771/0.8771, allocations: 150.9 MB / 166.5 MB, free: 14.39 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 12.17 kB / 237 MB, free: 1.852 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05439/0.05473, allocations: 31.35 MB / 268.4 MB, free: 7.117 MB / 222.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.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.624/1.679, allocations: 294.7 MB / 0.5499 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.05541/1.734, allocations: 34.76 MB / 0.5838 GB, free: 10.13 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/1.734, allocations: 4 kB / 0.5838 GB, free: 10.13 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:45:3-47:43:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/ControlValve.mo:48:3-50:38:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0008413/1.735, allocations: 179.3 kB / 0.584 GB, free: 9.953 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006252/1.736, allocations: 167.1 kB / 0.5842 GB, free: 9.789 MB / 478.1 MB [/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. Notification: Performance of NFTyping.typeClassSections: time 0.04693/1.783, allocations: 9.909 MB / 0.5939 GB, free: 15.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009488/1.784, allocations: 390.3 kB / 0.5942 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003597/1.784, allocations: 132.6 kB / 0.5944 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004216/1.785, allocations: 171.3 kB / 0.5945 GB, free: 15.19 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004041/1.785, allocations: 167.4 kB / 0.5947 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.885e-05/1.785, allocations: 16 kB / 0.5947 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05397/1.839, allocations: 17.97 MB / 0.6122 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002361/1.84, allocations: 75.7 kB / 0.6123 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003769/1.84, allocations: 163 kB / 0.6125 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01816/1.858, allocations: 8.523 MB / 0.6208 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/1.858, allocations: 0 / 0.6208 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.304e-06/1.858, allocations: 0 / 0.6208 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.231e-05/1.858, allocations: 0 / 0.6208 GB, free: 4.242 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.003999/1.862, allocations: 1.532 MB / 0.6223 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/1.862, allocations: 12.03 kB / 0.6223 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.507e-05/1.862, allocations: 39.47 kB / 0.6223 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/1.863, allocations: 290.1 kB / 0.6226 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/1.863, allocations: 16.38 kB / 0.6226 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/1.863, allocations: 23.98 kB / 0.6226 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/1.863, allocations: 319.4 kB / 0.623 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/1.863, allocations: 4 kB / 0.623 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/1.863, allocations: 8 kB / 0.623 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/1.863, allocations: 15.98 kB / 0.623 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/1.864, allocations: 213 kB / 0.6232 GB, free: 1.68 MB / 0.4981 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.03872/1.902, allocations: 18.22 MB / 0.641 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/1.902, allocations: 142.5 kB / 0.6411 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/1.903, allocations: 108.8 kB / 0.6412 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3364/2.239, allocations: 77.73 MB / 0.7171 GB, free: 212 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/2.239, allocations: 33.44 kB / 0.7172 GB, free: 212 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.525e-06/2.239, allocations: 0 / 0.7172 GB, free: 212 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001022/2.24, allocations: 0.4966 MB / 0.7176 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.032e-05/2.24, allocations: 52.66 kB / 0.7177 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/2.24, allocations: 355.3 kB / 0.718 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/2.24, allocations: 28.36 kB / 0.7181 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.946e-05/2.241, allocations: 183.7 kB / 0.7182 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.245e-05/2.241, allocations: 109.3 kB / 0.7183 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-05/2.241, allocations: 51.05 kB / 0.7184 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.778e-05/2.241, allocations: 347 kB / 0.7187 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/2.241, allocations: 92.09 kB / 0.7188 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/2.241, allocations: 135.5 kB / 0.7189 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/2.241, allocations: 253.4 kB / 0.7192 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/2.241, allocations: 0 / 0.7192 GB, free: 211.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004051/2.242, allocations: 341.5 kB / 0.7195 GB, free: 211 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/2.242, allocations: 8.812 kB / 0.7195 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/2.242, allocations: 2.625 kB / 0.7195 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008048/2.243, allocations: 140.8 kB / 0.7196 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.011e-05/2.243, allocations: 12.83 kB / 0.7197 GB, free: 211 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004129/2.243, allocations: 0.6135 MB / 0.7203 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/2.243, allocations: 30.69 kB / 0.7203 GB, free: 210.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/2.243, allocations: 6.188 kB / 0.7203 GB, free: 210.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (ControlValve.C2.b,ControlValve.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001215/2.243, allocations: 165 kB / 0.7205 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/2.243, allocations: 34.97 kB / 0.7205 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006654/2.244, allocations: 0.6574 MB / 0.7211 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003654/2.244, allocations: 259.3 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/2.244, allocations: 0 / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/2.244, allocations: 2.75 kB / 0.7214 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009142/2.245, allocations: 0.8257 MB / 0.7222 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/2.245, allocations: 5.844 kB / 0.7222 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.57e-05/2.245, allocations: 18.41 kB / 0.7222 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003482/2.246, allocations: 107.4 kB / 0.7223 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/2.246, allocations: 4.031 kB / 0.7223 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003731/2.246, allocations: 0.6347 MB / 0.7229 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/2.246, allocations: 0 / 0.7229 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/2.247, allocations: 392.5 kB / 0.7233 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.914e-05/2.247, allocations: 118 kB / 0.7234 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.489e-05/2.247, allocations: 11.28 kB / 0.7234 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/2.247, allocations: 2.781 kB / 0.7234 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.995e-05/2.247, allocations: 9.891 kB / 0.7234 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.403e-06/2.247, allocations: 5.375 kB / 0.7234 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002908/2.247, allocations: 333.1 kB / 0.7238 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/2.247, allocations: 0 / 0.7238 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002749/2.25, allocations: 1.212 MB / 0.7249 GB, free: 208.8 MB / 0.5919 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 (13): * Single equations (assignments): 12 * 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.005043/2.255, allocations: 1.751 MB / 0.7267 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005955/2.256, allocations: 287.2 kB / 0.7269 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/2.256, allocations: 0 / 0.7269 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002691/2.256, allocations: 113.4 kB / 0.727 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007702/2.257, allocations: 135.7 kB / 0.7272 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000962/2.258, allocations: 0.6529 MB / 0.7278 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002437/2.258, allocations: 0.8046 MB / 0.7286 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001202/2.258, allocations: 34.14 kB / 0.7286 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.082e-05/2.258, allocations: 23.34 kB / 0.7286 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of SimCode: time 4.81e-07/2.258, allocations: 4 kB / 0.7287 GB, free: 207.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.04293/2.301, allocations: 43.08 MB / 0.7707 GB, free: 176.7 MB / 0.5919 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)