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.8206/0.8206, allocations: 150.9 MB / 167.1 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004542/0.0004543, allocations: 15.97 kB / 206 MB, free: 9.027 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1638, allocations: 31.32 MB / 237.3 MB, free: 5.723 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.561/1.725, allocations: 294.5 MB / 0.5193 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03683/1.762, allocations: 34.76 MB / 0.5532 GB, free: 10.58 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/1.762, allocations: 0 / 0.5532 GB, free: 10.58 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.0004189/1.762, allocations: 159.3 kB / 0.5534 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002542/1.762, allocations: 151 kB / 0.5535 GB, free: 10.28 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.02302/1.785, allocations: 9.736 MB / 0.563 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005094/1.786, allocations: 390.3 kB / 0.5634 GB, free: 156 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/1.786, allocations: 129.7 kB / 0.5635 GB, free: 28 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/1.786, allocations: 167.3 kB / 0.5637 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/1.787, allocations: 159.4 kB / 0.5638 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/1.787, allocations: 23.94 kB / 0.5639 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02826/1.815, allocations: 17.97 MB / 0.5814 GB, free: 13.69 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/1.815, allocations: 71.7 kB / 0.5815 GB, free: 13.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/1.815, allocations: 167 kB / 0.5816 GB, free: 13.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01574/1.831, allocations: 8.523 MB / 0.59 GB, free: 4.914 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/1.831, allocations: 4 kB / 0.59 GB, free: 4.91 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.603e-06/1.831, allocations: 0 / 0.59 GB, free: 4.91 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/1.831, allocations: 0 / 0.59 GB, free: 4.91 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.003516/1.835, allocations: 1.52 MB / 0.5914 GB, free: 3.34 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/1.835, allocations: 8.031 kB / 0.5915 GB, free: 3.332 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.197e-05/1.835, allocations: 47.38 kB / 0.5915 GB, free: 3.285 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/1.835, allocations: 290.1 kB / 0.5918 GB, free: 2.965 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/1.835, allocations: 13.38 kB / 0.5918 GB, free: 2.953 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/1.835, allocations: 20 kB / 0.5918 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004305/1.836, allocations: 323.4 kB / 0.5921 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/1.836, allocations: 0 / 0.5921 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/1.836, allocations: 12 kB / 0.5921 GB, free: 2.574 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/1.836, allocations: 8 kB / 0.5921 GB, free: 2.566 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002806/1.836, allocations: 216.9 kB / 0.5923 GB, free: 2.355 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.03589/1.872, allocations: 18.22 MB / 0.6101 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/1.872, allocations: 138.5 kB / 0.6103 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/1.872, allocations: 108.8 kB / 0.6104 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1707/2.043, allocations: 77.74 MB / 0.6863 GB, free: 7.492 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/2.043, allocations: 38.56 kB / 0.6863 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.034e-06/2.043, allocations: 0 / 0.6863 GB, free: 7.445 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001111/2.044, allocations: 495.2 kB / 0.6868 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.067e-05/2.044, allocations: 55.39 kB / 0.6869 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/2.045, allocations: 360.4 kB / 0.6872 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/2.045, allocations: 29.7 kB / 0.6872 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/2.045, allocations: 184.4 kB / 0.6874 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.477e-05/2.045, allocations: 114.3 kB / 0.6875 GB, free: 6.176 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.626e-05/2.045, allocations: 45.7 kB / 0.6876 GB, free: 6.125 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001204/2.045, allocations: 346.8 kB / 0.6879 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/2.045, allocations: 91.95 kB / 0.688 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/2.045, allocations: 136.2 kB / 0.6881 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002852/2.046, allocations: 247.9 kB / 0.6883 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/2.046, allocations: 0 / 0.6883 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004598/2.046, allocations: 341.7 kB / 0.6887 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/2.046, allocations: 4 kB / 0.6887 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/2.046, allocations: 0 / 0.6887 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008232/2.047, allocations: 146.2 kB / 0.6888 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.154e-05/2.047, allocations: 15.94 kB / 0.6888 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005113/2.048, allocations: 0.6165 MB / 0.6894 GB, free: 4.133 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001278/2.048, allocations: 27.53 kB / 0.6895 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/2.048, allocations: 16.06 kB / 0.6895 GB, free: 4.09 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.0001383/2.048, allocations: 155.6 kB / 0.6896 GB, free: 3.93 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/2.048, allocations: 31.56 kB / 0.6896 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008129/2.049, allocations: 0.6522 MB / 0.6903 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004264/2.049, allocations: 263.5 kB / 0.6905 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/2.049, allocations: 4 kB / 0.6905 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/2.049, allocations: 0 / 0.6905 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/2.05, allocations: 0.8194 MB / 0.6913 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/2.05, allocations: 0 / 0.6913 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/2.05, allocations: 23.98 kB / 0.6914 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003456/2.051, allocations: 112.7 kB / 0.6915 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/2.051, allocations: 4 kB / 0.6915 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004793/2.051, allocations: 0.6342 MB / 0.6921 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/2.051, allocations: 4.062 kB / 0.6921 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/2.052, allocations: 387.7 kB / 0.6925 GB, free: 0.8242 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/2.052, allocations: 122.3 kB / 0.6926 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/2.052, allocations: 7.906 kB / 0.6926 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/2.052, allocations: 7.984 kB / 0.6926 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/2.052, allocations: 11.94 kB / 0.6926 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/2.052, allocations: 7.984 kB / 0.6926 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000326/2.052, allocations: 331.1 kB / 0.6929 GB, free: 336 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.052, allocations: 0 / 0.6929 GB, free: 336 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1528/2.205, allocations: 1.2 MB / 0.6941 GB, free: 226.3 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.004444/2.21, allocations: 1.739 MB / 0.6958 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006547/2.21, allocations: 278.5 kB / 0.6961 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/2.21, allocations: 0 / 0.6961 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002773/2.211, allocations: 121.8 kB / 0.6962 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.0007285/2.211, allocations: 130.7 kB / 0.6963 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009605/2.212, allocations: 0.6708 MB / 0.697 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/2.213, allocations: 0.8028 MB / 0.6977 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.607e-05/2.213, allocations: 32.56 kB / 0.6978 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.854e-05/2.213, allocations: 22.62 kB / 0.6978 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/2.213, allocations: 0 / 0.6978 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04462/2.257, allocations: 43.02 MB / 0.7398 GB, free: 203.2 MB / 0.5762 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 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)