Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7845/0.7845, allocations: 150.9 MB / 166.1 MB, free: 14.59 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 15.98 kB / 204.2 MB, free: 10.06 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1346, allocations: 31.33 MB / 235.5 MB, free: 5.469 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.Examples.SimpleExamples.TestControlValve): time 1.522/1.657, allocations: 293.7 MB / 0.5168 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03585/1.693, allocations: 34.97 MB / 0.5509 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002037/1.693, allocations: 4 kB / 0.5509 GB, free: 10.8 MB / 446.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.000441/1.694, allocations: 140.4 kB / 0.5511 GB, free: 10.67 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000231/1.694, allocations: 139.2 kB / 0.5512 GB, free: 10.53 MB / 446.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.02283/1.717, allocations: 8.552 MB / 0.5595 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005162/1.717, allocations: 382.3 kB / 0.5599 GB, free: 1.602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/1.717, allocations: 124.6 kB / 0.56 GB, free: 1.484 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/1.718, allocations: 163.3 kB / 0.5602 GB, free: 1.324 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/1.718, allocations: 175.4 kB / 0.5603 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.042e-05/1.718, allocations: 16 kB / 0.5604 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02622/1.744, allocations: 17.83 MB / 0.5778 GB, free: 15.29 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/1.744, allocations: 75.77 kB / 0.5778 GB, free: 15.21 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/1.744, allocations: 167 kB / 0.578 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01577/1.76, allocations: 8.546 MB / 0.5863 GB, free: 6.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/1.76, allocations: 0 / 0.5863 GB, free: 6.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.563e-06/1.76, allocations: 0 / 0.5863 GB, free: 6.48 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/1.76, allocations: 0 / 0.5863 GB, free: 6.48 MB / 478.1 MB 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.003443/1.764, allocations: 1.524 MB / 0.5878 GB, free: 4.906 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/1.764, allocations: 8.031 kB / 0.5878 GB, free: 4.898 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.413e-05/1.764, allocations: 43.38 kB / 0.5879 GB, free: 4.855 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/1.764, allocations: 290.2 kB / 0.5882 GB, free: 4.531 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/1.764, allocations: 12.44 kB / 0.5882 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.791e-05/1.764, allocations: 20 kB / 0.5882 GB, free: 4.5 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/1.765, allocations: 323.4 kB / 0.5885 GB, free: 4.156 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/1.765, allocations: 0 / 0.5885 GB, free: 4.156 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/1.765, allocations: 8 kB / 0.5885 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/1.765, allocations: 13.08 kB / 0.5885 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002638/1.765, allocations: 216.9 kB / 0.5887 GB, free: 3.926 MB / 478.1 MB 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.0343/1.799, allocations: 18.11 MB / 0.6064 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/1.8, allocations: 142.5 kB / 0.6066 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/1.8, allocations: 108.8 kB / 0.6067 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1366/1.936, allocations: 77.27 MB / 0.6821 GB, free: 9.637 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/1.936, allocations: 39.62 kB / 0.6822 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.795e-06/1.936, allocations: 0 / 0.6822 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001083/1.937, allocations: 499.2 kB / 0.6826 GB, free: 9.074 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/1.937, allocations: 55.41 kB / 0.6827 GB, free: 9.008 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/1.938, allocations: 356.5 kB / 0.683 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/1.938, allocations: 29.7 kB / 0.6831 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/1.938, allocations: 184.4 kB / 0.6832 GB, free: 8.434 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.386e-05/1.938, allocations: 114.3 kB / 0.6833 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/1.938, allocations: 49.64 kB / 0.6834 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001048/1.938, allocations: 346.8 kB / 0.6837 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/1.938, allocations: 91.97 kB / 0.6838 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/1.938, allocations: 140.2 kB / 0.6839 GB, free: 7.676 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/1.939, allocations: 248.5 kB / 0.6842 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.939, allocations: 4 kB / 0.6842 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004402/1.939, allocations: 341.5 kB / 0.6845 GB, free: 7.07 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/1.939, allocations: 5.562 kB / 0.6845 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/1.939, allocations: 4 kB / 0.6845 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008052/1.94, allocations: 136.8 kB / 0.6846 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.025e-05/1.94, allocations: 19.92 kB / 0.6847 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004931/1.941, allocations: 0.6147 MB / 0.6853 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/1.941, allocations: 39.55 kB / 0.6853 GB, free: 6.227 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/1.941, allocations: 8 kB / 0.6853 GB, free: 6.219 MB / 0.5762 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.0001373/1.941, allocations: 149.8 kB / 0.6855 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.005e-05/1.941, allocations: 35.56 kB / 0.6855 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007464/1.942, allocations: 0.6547 MB / 0.6861 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003975/1.942, allocations: 255.9 kB / 0.6864 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.942, allocations: 0 / 0.6864 GB, free: 5.043 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.942, allocations: 7.984 kB / 0.6864 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009566/1.943, allocations: 0.8225 MB / 0.6872 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.943, allocations: 4 kB / 0.6872 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.588e-05/1.943, allocations: 23.92 kB / 0.6872 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003307/1.944, allocations: 106.5 kB / 0.6873 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/1.944, allocations: 4 kB / 0.6873 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004289/1.944, allocations: 0.6382 MB / 0.6879 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.944, allocations: 0 / 0.6879 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004747/1.945, allocations: 387.2 kB / 0.6883 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.05e-05/1.945, allocations: 120.7 kB / 0.6884 GB, free: 2.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.499e-05/1.945, allocations: 11.84 kB / 0.6884 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/1.945, allocations: 12.06 kB / 0.6884 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.601e-05/1.945, allocations: 11.92 kB / 0.6885 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/1.945, allocations: 7.984 kB / 0.6885 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003064/1.945, allocations: 331.1 kB / 0.6888 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/1.945, allocations: 0 / 0.6888 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002692/1.948, allocations: 1.206 MB / 0.69 GB, free: 1.246 MB / 0.5762 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.144/2.092, allocations: 1.799 MB / 0.6917 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000752/2.093, allocations: 280.8 kB / 0.692 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/2.093, allocations: 1.438 kB / 0.692 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002976/2.093, allocations: 120.7 kB / 0.6921 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/2.094, allocations: 124.1 kB / 0.6922 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/2.095, allocations: 0.7901 MB / 0.693 GB, free: 225.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/2.095, allocations: 0.8032 MB / 0.6938 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000132/2.095, allocations: 37.03 kB / 0.6938 GB, free: 225 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.266e-05/2.095, allocations: 22.09 kB / 0.6938 GB, free: 225 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/2.095, allocations: 0 / 0.6938 GB, free: 225 MB / 0.5762 GB Notification: Performance of Templates: time 0.04586/2.141, allocations: 43.48 MB / 0.7363 GB, free: 204.2 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)