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.9082/0.9082, allocations: 150.9 MB / 167.1 MB, free: 14.43 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003952/0.0003953, allocations: 23.97 kB / 206 MB, free: 9.004 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1443, allocations: 31.32 MB / 237.3 MB, free: 5.746 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.584/1.728, allocations: 294.6 MB / 0.5194 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03894/1.767, allocations: 34.76 MB / 0.5533 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/1.767, allocations: 0 / 0.5533 GB, free: 10.53 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.0004444/1.768, allocations: 155.3 kB / 0.5535 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002236/1.768, allocations: 151 kB / 0.5536 GB, free: 10.23 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.02271/1.791, allocations: 9.742 MB / 0.5631 GB, free: 492 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005504/1.791, allocations: 386.3 kB / 0.5635 GB, free: 104 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/1.791, allocations: 133.9 kB / 0.5636 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/1.792, allocations: 163.3 kB / 0.5638 GB, free: 15.81 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/1.792, allocations: 159.4 kB / 0.5639 GB, free: 15.66 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/1.792, allocations: 23.94 kB / 0.564 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02842/1.82, allocations: 17.98 MB / 0.5815 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/1.821, allocations: 67.66 kB / 0.5816 GB, free: 13.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/1.821, allocations: 163 kB / 0.5817 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01723/1.838, allocations: 8.527 MB / 0.5901 GB, free: 4.859 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/1.838, allocations: 0 / 0.5901 GB, free: 4.859 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.244e-06/1.838, allocations: 0 / 0.5901 GB, free: 4.859 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/1.838, allocations: 4 kB / 0.5901 GB, free: 4.855 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.003574/1.842, allocations: 1.52 MB / 0.5915 GB, free: 3.285 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/1.842, allocations: 8.031 kB / 0.5916 GB, free: 3.277 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.059e-05/1.842, allocations: 47.38 kB / 0.5916 GB, free: 3.23 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000296/1.842, allocations: 290.1 kB / 0.5919 GB, free: 2.91 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/1.842, allocations: 16.44 kB / 0.5919 GB, free: 2.895 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.214e-05/1.842, allocations: 16 kB / 0.5919 GB, free: 2.879 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004256/1.843, allocations: 327.4 kB / 0.5922 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/1.843, allocations: 0 / 0.5922 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/1.843, allocations: 11.94 kB / 0.5922 GB, free: 2.516 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/1.843, allocations: 8 kB / 0.5922 GB, free: 2.508 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/1.843, allocations: 218.4 kB / 0.5924 GB, free: 2.297 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.03739/1.88, allocations: 18.22 MB / 0.6102 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/1.881, allocations: 137.4 kB / 0.6104 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/1.881, allocations: 108.8 kB / 0.6105 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1529/2.034, allocations: 77.74 MB / 0.6864 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/2.034, allocations: 30.56 kB / 0.6864 GB, free: 7.398 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.294e-06/2.034, allocations: 4 kB / 0.6864 GB, free: 7.395 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001155/2.035, allocations: 0.4953 MB / 0.6869 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/2.035, allocations: 51.41 kB / 0.687 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/2.035, allocations: 360.4 kB / 0.6873 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/2.035, allocations: 29.7 kB / 0.6873 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/2.035, allocations: 184.4 kB / 0.6875 GB, free: 6.234 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/2.036, allocations: 114.3 kB / 0.6876 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-05/2.036, allocations: 49.7 kB / 0.6877 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001332/2.036, allocations: 342.8 kB / 0.688 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/2.036, allocations: 91.97 kB / 0.6881 GB, free: 5.633 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/2.036, allocations: 140.2 kB / 0.6882 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/2.036, allocations: 243.9 kB / 0.6884 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/2.036, allocations: 0 / 0.6884 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000452/2.037, allocations: 341.8 kB / 0.6888 GB, free: 4.883 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/2.037, allocations: 5.406 kB / 0.6888 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/2.037, allocations: 0 / 0.6888 GB, free: 4.879 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000797/2.038, allocations: 142 kB / 0.6889 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.59e-05/2.038, allocations: 27.92 kB / 0.6889 GB, free: 4.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005483/2.038, allocations: 0.6108 MB / 0.6895 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/2.038, allocations: 27.59 kB / 0.6896 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/2.038, allocations: 8 kB / 0.6896 GB, free: 4.039 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.00015/2.039, allocations: 153.9 kB / 0.6897 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.641e-05/2.039, allocations: 31.56 kB / 0.6897 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000831/2.039, allocations: 0.6522 MB / 0.6904 GB, free: 3.121 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004252/2.04, allocations: 252.9 kB / 0.6906 GB, free: 2.867 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/2.04, allocations: 11.98 kB / 0.6906 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/2.04, allocations: 0 / 0.6906 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/2.041, allocations: 0.8179 MB / 0.6914 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/2.041, allocations: 3.047 kB / 0.6914 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.868e-05/2.041, allocations: 27.92 kB / 0.6915 GB, free: 1.953 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003355/2.041, allocations: 112.8 kB / 0.6916 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.809e-06/2.041, allocations: 0 / 0.6916 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004842/2.042, allocations: 0.6396 MB / 0.6922 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/2.042, allocations: 3.938 kB / 0.6922 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005089/2.042, allocations: 391.8 kB / 0.6926 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/2.043, allocations: 116.7 kB / 0.6927 GB, free: 0.6367 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/2.043, allocations: 11.91 kB / 0.6927 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/2.043, allocations: 0 / 0.6927 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/2.043, allocations: 11.92 kB / 0.6927 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/2.043, allocations: 11.98 kB / 0.6927 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003365/2.043, allocations: 331.1 kB / 0.693 GB, free: 284 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/2.043, allocations: 0 / 0.693 GB, free: 284 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1542/2.197, allocations: 1.203 MB / 0.6942 GB, free: 226 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.004408/2.202, allocations: 1.732 MB / 0.6959 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007015/2.203, allocations: 286.8 kB / 0.6962 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/2.203, allocations: 1.125 kB / 0.6962 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002783/2.203, allocations: 117.7 kB / 0.6963 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/2.204, allocations: 131.5 kB / 0.6964 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/2.205, allocations: 0.6583 MB / 0.697 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/2.205, allocations: 0.8012 MB / 0.6978 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.322e-05/2.205, allocations: 32.02 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.957e-05/2.205, allocations: 24.28 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4e-07/2.205, allocations: 0.5312 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.0456/2.251, allocations: 43.03 MB / 0.7399 GB, free: 203.1 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)