Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8227/0.8227, allocations: 150.9 MB / 167.1 MB, free: 14.47 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003593, allocations: 7.984 kB / 205.9 MB, free: 9.012 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.141, allocations: 31.33 MB / 237.3 MB, free: 5.727 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.TestDiaphragm): time 1.583/1.724, allocations: 294.4 MB / 0.5192 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03749/1.762, allocations: 34.67 MB / 0.5531 GB, free: 10.7 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/1.762, allocations: 4 kB / 0.5531 GB, free: 10.7 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/Diaphragm.mo:30:3-32:42: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/Diaphragm.mo:33:3-35:37: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.0003296/1.762, allocations: 116.8 kB / 0.5532 GB, free: 10.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/1.763, allocations: 87.23 kB / 0.5533 GB, free: 10.5 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.02206/1.785, allocations: 9.644 MB / 0.5627 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005287/1.785, allocations: 346.8 kB / 0.563 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002289/1.785, allocations: 122.3 kB / 0.5631 GB, free: 396 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/1.786, allocations: 147.3 kB / 0.5633 GB, free: 248 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/1.786, allocations: 119.4 kB / 0.5634 GB, free: 128 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.639e-05/1.786, allocations: 20 kB / 0.5634 GB, free: 108 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02826/1.814, allocations: 17.97 MB / 0.581 GB, free: 14.12 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.825e-05/1.814, allocations: 39.84 kB / 0.581 GB, free: 14.08 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/1.814, allocations: 143.3 kB / 0.5811 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0174/1.832, allocations: 8.464 MB / 0.5894 GB, free: 5.453 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/1.832, allocations: 0 / 0.5894 GB, free: 5.453 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.463e-06/1.832, allocations: 0 / 0.5894 GB, free: 5.453 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/1.832, allocations: 0 / 0.5894 GB, free: 5.453 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003479/1.835, allocations: 1.454 MB / 0.5908 GB, free: 3.949 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/1.835, allocations: 16.03 kB / 0.5908 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/1.835, allocations: 27.62 kB / 0.5909 GB, free: 3.906 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/1.836, allocations: 234.5 kB / 0.5911 GB, free: 3.637 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/1.836, allocations: 16.44 kB / 0.5911 GB, free: 3.617 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.658e-05/1.836, allocations: 20 kB / 0.5911 GB, free: 3.598 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004136/1.836, allocations: 313.1 kB / 0.5914 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/1.836, allocations: 3.938 kB / 0.5914 GB, free: 3.254 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/1.836, allocations: 11.94 kB / 0.5914 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.836, allocations: 16.59 kB / 0.5914 GB, free: 3.227 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002592/1.837, allocations: 173 kB / 0.5916 GB, free: 3.059 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.03778/1.874, allocations: 18.16 MB / 0.6094 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004354/1.875, allocations: 142.6 kB / 0.6095 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/1.875, allocations: 96.77 kB / 0.6096 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1512/2.026, allocations: 77.91 MB / 0.6857 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/2.026, allocations: 44.27 kB / 0.6857 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.784e-06/2.026, allocations: 0 / 0.6857 GB, free: 8.012 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0008477/2.027, allocations: 419.4 kB / 0.6861 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/2.027, allocations: 81.11 kB / 0.6862 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/2.027, allocations: 223 kB / 0.6864 GB, free: 7.25 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/2.027, allocations: 25.7 kB / 0.6864 GB, free: 7.219 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/2.027, allocations: 156.4 kB / 0.6866 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.6e-05/2.028, allocations: 110.3 kB / 0.6867 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.775e-05/2.028, allocations: 53.64 kB / 0.6867 GB, free: 6.891 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001062/2.028, allocations: 338.8 kB / 0.6871 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/2.028, allocations: 75.97 kB / 0.6871 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/2.028, allocations: 130 kB / 0.6872 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/2.028, allocations: 225.6 kB / 0.6875 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/2.028, allocations: 4 kB / 0.6875 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004399/2.029, allocations: 301.9 kB / 0.6878 GB, free: 5.781 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/2.029, allocations: 11.94 kB / 0.6878 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/2.029, allocations: 0 / 0.6878 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009462/2.03, allocations: 140.8 kB / 0.6879 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.807e-05/2.03, allocations: 15.94 kB / 0.6879 GB, free: 5.613 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000502/2.03, allocations: 0.62 MB / 0.6885 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/2.03, allocations: 23.69 kB / 0.6885 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/2.031, allocations: 8 kB / 0.6886 GB, free: 4.938 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.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 (15): * Single equations (assignments): 12 * 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.0001171/2.031, allocations: 137.8 kB / 0.6887 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/2.031, allocations: 23.72 kB / 0.6887 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009189/2.032, allocations: 0.612 MB / 0.6893 GB, free: 4.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005294/2.032, allocations: 223.5 kB / 0.6895 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/2.032, allocations: 3.938 kB / 0.6895 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/2.032, allocations: 0 / 0.6895 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/2.033, allocations: 0.7359 MB / 0.6902 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/2.033, allocations: 0 / 0.6902 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/2.033, allocations: 23.92 kB / 0.6903 GB, free: 3.043 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003393/2.034, allocations: 104.8 kB / 0.6904 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/2.034, allocations: 5.312 kB / 0.6904 GB, free: 2.934 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000455/2.034, allocations: 0.644 MB / 0.691 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/2.034, allocations: 0 / 0.691 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/2.035, allocations: 343.8 kB / 0.6913 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.803e-05/2.035, allocations: 109 kB / 0.6914 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.686e-05/2.035, allocations: 19.78 kB / 0.6914 GB, free: 1.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/2.035, allocations: 4 kB / 0.6914 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/2.035, allocations: 15.92 kB / 0.6915 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/2.035, allocations: 4 kB / 0.6915 GB, free: 1.742 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002304/2.035, allocations: 237.9 kB / 0.6917 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.035, allocations: 3.938 kB / 0.6917 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002901/2.038, allocations: 1.21 MB / 0.6929 GB, free: 304 kB / 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.1548/2.193, allocations: 1.758 MB / 0.6946 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000707/2.194, allocations: 248.8 kB / 0.6948 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/2.194, allocations: 1.188 kB / 0.6948 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002448/2.194, allocations: 99.8 kB / 0.6949 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.0007053/2.195, allocations: 123.6 kB / 0.695 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000797/2.196, allocations: 0.5047 MB / 0.6955 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/2.196, allocations: 0.7691 MB / 0.6963 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.95e-05/2.196, allocations: 33.33 kB / 0.6963 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/2.196, allocations: 21.06 kB / 0.6963 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.213e-06/2.196, allocations: 0.875 kB / 0.6963 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.05126/2.247, allocations: 42.84 MB / 0.7382 GB, free: 204.9 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)