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.8395/0.8395, allocations: 150.9 MB / 167.1 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003722, allocations: 15.97 kB / 205.9 MB, free: 9.023 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.143, allocations: 31.33 MB / 237.3 MB, free: 5.719 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.588/1.731, allocations: 294.5 MB / 0.5193 GB, free: 13.22 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03756/1.768, allocations: 34.75 MB / 0.5532 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001896/1.769, allocations: 7.938 kB / 0.5532 GB, free: 10.59 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.0004228/1.769, allocations: 148.3 kB / 0.5534 GB, free: 10.44 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/1.769, allocations: 155.1 kB / 0.5535 GB, free: 10.29 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.02205/1.791, allocations: 9.744 MB / 0.563 GB, free: 0.543 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005301/1.792, allocations: 386.3 kB / 0.5634 GB, free: 168 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/1.792, allocations: 129.3 kB / 0.5635 GB, free: 40 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/1.792, allocations: 167.3 kB / 0.5637 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/1.792, allocations: 167.4 kB / 0.5638 GB, free: 15.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/1.792, allocations: 19.94 kB / 0.5639 GB, free: 15.69 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02834/1.821, allocations: 17.97 MB / 0.5814 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/1.821, allocations: 75.7 kB / 0.5815 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/1.821, allocations: 163 kB / 0.5816 GB, free: 13.47 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01591/1.837, allocations: 8.531 MB / 0.59 GB, free: 4.918 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/1.837, allocations: 0 / 0.59 GB, free: 4.918 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.473e-06/1.837, allocations: 0 / 0.59 GB, free: 4.918 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/1.837, allocations: 0 / 0.59 GB, free: 4.918 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.003405/1.841, allocations: 1.521 MB / 0.5914 GB, free: 3.348 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/1.841, allocations: 12.03 kB / 0.5915 GB, free: 3.336 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.639e-05/1.841, allocations: 43.38 kB / 0.5915 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/1.841, allocations: 294.1 kB / 0.5918 GB, free: 2.969 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/1.841, allocations: 20.44 kB / 0.5918 GB, free: 2.949 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/1.841, allocations: 16 kB / 0.5918 GB, free: 2.934 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/1.842, allocations: 315.4 kB / 0.5921 GB, free: 2.594 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/1.842, allocations: 0 / 0.5921 GB, free: 2.594 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/1.842, allocations: 8 kB / 0.5921 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/1.842, allocations: 19.98 kB / 0.5921 GB, free: 2.566 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002818/1.842, allocations: 209 kB / 0.5923 GB, free: 2.363 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.0371/1.879, allocations: 18.22 MB / 0.6101 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/1.879, allocations: 142.5 kB / 0.6103 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/1.879, allocations: 104.8 kB / 0.6104 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1527/2.032, allocations: 77.74 MB / 0.6863 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/2.032, allocations: 38.55 kB / 0.6863 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.464e-06/2.032, allocations: 4 kB / 0.6863 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001111/2.033, allocations: 499.2 kB / 0.6868 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.789e-05/2.033, allocations: 59.41 kB / 0.6869 GB, free: 6.871 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/2.034, allocations: 352.5 kB / 0.6872 GB, free: 6.523 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/2.034, allocations: 25.7 kB / 0.6872 GB, free: 6.492 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/2.034, allocations: 192.4 kB / 0.6874 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.776e-05/2.034, allocations: 114.3 kB / 0.6875 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.246e-05/2.034, allocations: 45.7 kB / 0.6876 GB, free: 6.133 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001167/2.034, allocations: 342.8 kB / 0.6879 GB, free: 5.789 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/2.034, allocations: 99.97 kB / 0.688 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/2.034, allocations: 140.2 kB / 0.6881 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/2.035, allocations: 243.9 kB / 0.6883 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/2.035, allocations: 12 kB / 0.6884 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000474/2.035, allocations: 333.7 kB / 0.6887 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/2.035, allocations: 4 kB / 0.6887 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/2.035, allocations: 4 kB / 0.6887 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000834/2.036, allocations: 142.1 kB / 0.6888 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.911e-05/2.036, allocations: 15.92 kB / 0.6888 GB, free: 4.773 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005328/2.037, allocations: 0.6109 MB / 0.6894 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/2.037, allocations: 35.56 kB / 0.6895 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.696e-05/2.037, allocations: 11.97 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.000152/2.037, allocations: 159 kB / 0.6896 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/2.037, allocations: 31.56 kB / 0.6897 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008098/2.038, allocations: 0.6522 MB / 0.6903 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004206/2.038, allocations: 247.5 kB / 0.6905 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/2.038, allocations: 0 / 0.6905 GB, free: 2.918 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/2.038, allocations: 3.984 kB / 0.6905 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/2.039, allocations: 0.8319 MB / 0.6913 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/2.039, allocations: 0 / 0.6913 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.711e-05/2.039, allocations: 23.92 kB / 0.6914 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003392/2.04, allocations: 108.7 kB / 0.6915 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/2.04, allocations: 4 kB / 0.6915 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004919/2.04, allocations: 0.6304 MB / 0.6921 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/2.04, allocations: 32 / 0.6921 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005074/2.041, allocations: 395.6 kB / 0.6925 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/2.041, allocations: 116.7 kB / 0.6926 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/2.041, allocations: 11.91 kB / 0.6926 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/2.041, allocations: 8.062 kB / 0.6926 GB, free: 0.6758 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.877e-05/2.041, allocations: 19.92 kB / 0.6926 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/2.041, allocations: 0 / 0.6926 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003418/2.042, allocations: 335.1 kB / 0.6929 GB, free: 336 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/2.042, allocations: 0 / 0.6929 GB, free: 336 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.146/2.188, allocations: 1.198 MB / 0.6941 GB, free: 226.1 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.004372/2.192, allocations: 1.738 MB / 0.6958 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006253/2.193, allocations: 282.1 kB / 0.6961 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/2.193, allocations: 0.5 kB / 0.6961 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002669/2.193, allocations: 119.5 kB / 0.6962 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.0007192/2.194, allocations: 124.9 kB / 0.6963 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000923/2.195, allocations: 0.6616 MB / 0.697 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/2.195, allocations: 0.802 MB / 0.6977 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.644e-05/2.195, allocations: 36.02 kB / 0.6978 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/2.195, allocations: 23.77 kB / 0.6978 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/2.195, allocations: 0 / 0.6978 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.04411/2.239, allocations: 43.03 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 cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)