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.8156/0.8156, allocations: 150.9 MB / 166.7 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003787, allocations: 15.97 kB / 204.8 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.182/0.1824, allocations: 31.32 MB / 236.1 MB, free: 5.441 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.701/1.884, allocations: 293.7 MB / 0.5174 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03649/1.92, allocations: 34.97 MB / 0.5515 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003271/1.921, allocations: 4 kB / 0.5515 GB, free: 10.81 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.0005416/1.921, allocations: 140.5 kB / 0.5517 GB, free: 10.67 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/1.921, allocations: 135.3 kB / 0.5518 GB, free: 10.54 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.02902/1.951, allocations: 8.548 MB / 0.5601 GB, free: 1.992 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007045/1.951, allocations: 386.3 kB / 0.5605 GB, free: 1.613 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/1.951, allocations: 136.2 kB / 0.5606 GB, free: 1.488 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003424/1.952, allocations: 163.3 kB / 0.5608 GB, free: 1.328 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/1.952, allocations: 167.3 kB / 0.5609 GB, free: 1.164 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/1.952, allocations: 20 kB / 0.561 GB, free: 1.145 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0372/1.989, allocations: 17.82 MB / 0.5784 GB, free: 15.3 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/1.99, allocations: 75.75 kB / 0.5784 GB, free: 15.22 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002468/1.99, allocations: 171 kB / 0.5786 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/2.003, allocations: 5.778 MB / 0.5842 GB, free: 9.262 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.427e-05/2.003, allocations: 4 kB / 0.5843 GB, free: 9.258 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.114e-06/2.003, allocations: 0 / 0.5843 GB, free: 9.258 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/2.003, allocations: 0 / 0.5843 GB, free: 9.258 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.006274/2.009, allocations: 1.524 MB / 0.5857 GB, free: 7.684 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/2.009, allocations: 8.031 kB / 0.5857 GB, free: 7.676 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.14e-05/2.009, allocations: 43.38 kB / 0.5858 GB, free: 7.633 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/2.01, allocations: 282.2 kB / 0.5861 GB, free: 7.316 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/2.01, allocations: 20.44 kB / 0.5861 GB, free: 7.297 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/2.01, allocations: 20 kB / 0.5861 GB, free: 7.277 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004769/2.01, allocations: 319.4 kB / 0.5864 GB, free: 6.938 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/2.01, allocations: 0 / 0.5864 GB, free: 6.938 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/2.01, allocations: 8 kB / 0.5864 GB, free: 6.93 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/2.01, allocations: 19.98 kB / 0.5864 GB, free: 6.91 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/2.011, allocations: 209 kB / 0.5866 GB, free: 6.707 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.03632/2.047, allocations: 18.12 MB / 0.6043 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/2.047, allocations: 142.5 kB / 0.6045 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/2.047, allocations: 104.8 kB / 0.6046 GB, free: 2.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1488/2.196, allocations: 77.29 MB / 0.68 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/2.196, allocations: 34.56 kB / 0.6801 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.325e-06/2.196, allocations: 0 / 0.6801 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001197/2.197, allocations: 0.4914 MB / 0.6806 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/2.197, allocations: 51.41 kB / 0.6806 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003941/2.198, allocations: 360.4 kB / 0.6809 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/2.198, allocations: 25.7 kB / 0.681 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000131/2.198, allocations: 188.4 kB / 0.6811 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.656e-05/2.198, allocations: 114.3 kB / 0.6813 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.607e-05/2.198, allocations: 53.62 kB / 0.6813 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001322/2.198, allocations: 338.8 kB / 0.6816 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/2.198, allocations: 95.95 kB / 0.6817 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/2.199, allocations: 132.2 kB / 0.6818 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/2.199, allocations: 252.5 kB / 0.6821 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/2.199, allocations: 0 / 0.6821 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00047/2.199, allocations: 345.5 kB / 0.6824 GB, free: 9.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/2.199, allocations: 4 kB / 0.6824 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/2.199, allocations: 8.125 kB / 0.6824 GB, free: 9.816 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008513/2.2, allocations: 128.7 kB / 0.6826 GB, free: 9.688 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.162e-05/2.2, allocations: 19.94 kB / 0.6826 GB, free: 9.668 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005562/2.201, allocations: 0.6159 MB / 0.6832 GB, free: 9.027 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/2.201, allocations: 31.53 kB / 0.6832 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/2.201, allocations: 4 kB / 0.6832 GB, free: 8.992 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.0001527/2.201, allocations: 158.6 kB / 0.6834 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.063e-05/2.201, allocations: 35.56 kB / 0.6834 GB, free: 8.793 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008372/2.202, allocations: 0.6624 MB / 0.684 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000416/2.203, allocations: 254.4 kB / 0.6843 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/2.203, allocations: 0 / 0.6843 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/2.203, allocations: 0 / 0.6843 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/2.204, allocations: 0.8349 MB / 0.6851 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/2.204, allocations: 0 / 0.6851 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.633e-05/2.204, allocations: 16 kB / 0.6851 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003489/2.204, allocations: 104.8 kB / 0.6852 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/2.204, allocations: 4 kB / 0.6852 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005226/2.205, allocations: 0.6366 MB / 0.6858 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/2.205, allocations: 4.031 kB / 0.6858 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005085/2.205, allocations: 386.4 kB / 0.6862 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/2.205, allocations: 120.6 kB / 0.6863 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.786e-05/2.205, allocations: 19.78 kB / 0.6863 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/2.206, allocations: 0 / 0.6863 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/2.206, allocations: 19.92 kB / 0.6864 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/2.206, allocations: 4 kB / 0.6864 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003336/2.206, allocations: 335.1 kB / 0.6867 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/2.206, allocations: 0 / 0.6867 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003091/2.209, allocations: 1.21 MB / 0.6879 GB, free: 4.004 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.005534/2.215, allocations: 1.794 MB / 0.6896 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006615/2.215, allocations: 289.3 kB / 0.6899 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/2.215, allocations: 0 / 0.6899 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002981/2.216, allocations: 125.1 kB / 0.69 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007566/2.216, allocations: 129.3 kB / 0.6901 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/2.218, allocations: 0.8085 MB / 0.6909 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/2.218, allocations: 0.8105 MB / 0.6917 GB, free: 4 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1726/2.391, allocations: 21.36 kB / 0.6917 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.052e-06/2.391, allocations: 1.156 kB / 0.6917 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.0363/2.427, allocations: 26.1 MB / 0.7172 GB, free: 218.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)