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.8106/0.8106, allocations: 150.9 MB / 166.1 MB, free: 14.58 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002947/0.0002948, allocations: 11.97 kB / 204.2 MB, free: 10.03 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1621, allocations: 31.32 MB / 235.5 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.588/1.75, allocations: 293.6 MB / 0.5167 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03761/1.788, allocations: 34.97 MB / 0.5508 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/1.788, allocations: 0 / 0.5508 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.0005116/1.789, allocations: 152.6 kB / 0.551 GB, free: 10.66 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/1.789, allocations: 127.3 kB / 0.5511 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.02393/1.813, allocations: 8.548 MB / 0.5594 GB, free: 1.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006712/1.813, allocations: 382.3 kB / 0.5598 GB, free: 1.605 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/1.814, allocations: 133.7 kB / 0.5599 GB, free: 1.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002636/1.814, allocations: 167.3 kB / 0.5601 GB, free: 1.316 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/1.814, allocations: 163.4 kB / 0.5602 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/1.814, allocations: 16 kB / 0.5603 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02842/1.843, allocations: 17.84 MB / 0.5777 GB, free: 15.28 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001479/1.843, allocations: 75.75 kB / 0.5777 GB, free: 15.21 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002051/1.843, allocations: 159 kB / 0.5779 GB, free: 15.05 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01883/1.862, allocations: 8.55 MB / 0.5862 GB, free: 6.48 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/1.862, allocations: 0 / 0.5862 GB, free: 6.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.334e-06/1.862, allocations: 3.938 kB / 0.5863 GB, free: 6.477 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/1.862, allocations: 0 / 0.5863 GB, free: 6.477 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.004093/1.866, allocations: 1.52 MB / 0.5877 GB, free: 4.906 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/1.866, allocations: 8.031 kB / 0.5877 GB, free: 4.898 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.973e-05/1.866, allocations: 55.38 kB / 0.5878 GB, free: 4.844 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/1.866, allocations: 286.2 kB / 0.5881 GB, free: 4.523 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/1.866, allocations: 16.44 kB / 0.5881 GB, free: 4.508 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/1.867, allocations: 16 kB / 0.5881 GB, free: 4.492 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/1.867, allocations: 323.4 kB / 0.5884 GB, free: 4.148 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/1.867, allocations: 7.938 kB / 0.5884 GB, free: 4.141 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/1.867, allocations: 9.828 kB / 0.5884 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/1.867, allocations: 8 kB / 0.5884 GB, free: 4.125 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000289/1.867, allocations: 213 kB / 0.5886 GB, free: 3.918 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.03424/1.902, allocations: 18.11 MB / 0.6063 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/1.902, allocations: 152.3 kB / 0.6065 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/1.902, allocations: 104.8 kB / 0.6066 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1408/2.043, allocations: 77.27 MB / 0.682 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/2.043, allocations: 34.56 kB / 0.6821 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.285e-06/2.043, allocations: 4 kB / 0.6821 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001116/2.044, allocations: 499.2 kB / 0.6825 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.451e-05/2.044, allocations: 55.41 kB / 0.6826 GB, free: 9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004063/2.044, allocations: 352.5 kB / 0.6829 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/2.044, allocations: 25.7 kB / 0.683 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/2.045, allocations: 196.4 kB / 0.6831 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/2.045, allocations: 110.3 kB / 0.6832 GB, free: 8.309 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.445e-05/2.045, allocations: 49.64 kB / 0.6833 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001214/2.045, allocations: 346.8 kB / 0.6836 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/2.045, allocations: 91.97 kB / 0.6837 GB, free: 7.816 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001507/2.045, allocations: 137.1 kB / 0.6838 GB, free: 7.668 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/2.045, allocations: 248.5 kB / 0.6841 GB, free: 7.41 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/2.045, allocations: 4 kB / 0.6841 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000443/2.046, allocations: 341.6 kB / 0.6844 GB, free: 7.062 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/2.046, allocations: 5.25 kB / 0.6844 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/2.046, allocations: 4 kB / 0.6844 GB, free: 7.055 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000839/2.047, allocations: 140.7 kB / 0.6846 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.545e-05/2.047, allocations: 19.86 kB / 0.6846 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005358/2.047, allocations: 0.6046 MB / 0.6852 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/2.048, allocations: 35.56 kB / 0.6852 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/2.048, allocations: 7.984 kB / 0.6852 GB, free: 6.223 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.0001446/2.048, allocations: 166.4 kB / 0.6854 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/2.048, allocations: 33.39 kB / 0.6854 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007833/2.049, allocations: 0.6507 MB / 0.686 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004025/2.049, allocations: 258.4 kB / 0.6863 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/2.049, allocations: 0 / 0.6863 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/2.049, allocations: 3.984 kB / 0.6863 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009982/2.05, allocations: 0.8341 MB / 0.6871 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/2.05, allocations: 0 / 0.6871 GB, free: 4.137 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/2.05, allocations: 19.98 kB / 0.6871 GB, free: 4.117 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003521/2.05, allocations: 108.7 kB / 0.6872 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/2.05, allocations: 0 / 0.6872 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004737/2.051, allocations: 0.6343 MB / 0.6878 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/2.051, allocations: 0 / 0.6878 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004816/2.051, allocations: 394.9 kB / 0.6882 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/2.052, allocations: 120.7 kB / 0.6883 GB, free: 2.809 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/2.052, allocations: 11.84 kB / 0.6883 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/2.052, allocations: 4 kB / 0.6883 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/2.052, allocations: 15.92 kB / 0.6884 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/2.052, allocations: 4 kB / 0.6884 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003452/2.052, allocations: 335.1 kB / 0.6887 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/2.052, allocations: 0 / 0.6887 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002822/2.055, allocations: 1.206 MB / 0.6899 GB, free: 1.238 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.1544/2.209, allocations: 1.794 MB / 0.6916 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008373/2.21, allocations: 279.5 kB / 0.6919 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/2.21, allocations: 1.531 kB / 0.6919 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002741/2.211, allocations: 118.6 kB / 0.692 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.0008089/2.211, allocations: 138.3 kB / 0.6921 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/2.212, allocations: 0.7831 MB / 0.6929 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/2.213, allocations: 0.8073 MB / 0.6937 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001128/2.213, allocations: 32.91 kB / 0.6937 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.391e-05/2.213, allocations: 23.12 kB / 0.6937 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.61e-07/2.213, allocations: 0 / 0.6937 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.0456/2.258, allocations: 43.48 MB / 0.7362 GB, free: 204.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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)