Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.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.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.7741/0.7741, allocations: 150.9 MB / 166.7 MB, free: 14.64 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003204, allocations: 11.98 kB / 204.8 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.151, allocations: 31.33 MB / 236.1 MB, free: 5.469 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.TestBend): time 1.519/1.67, allocations: 293.6 MB / 0.5174 GB, free: 13.66 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03523/1.706, allocations: 35.29 MB / 0.5518 GB, free: 10.51 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/1.706, allocations: 4 kB / 0.5518 GB, free: 10.5 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/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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.0005547/1.706, allocations: 256.4 kB / 0.5521 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003177/1.707, allocations: 247 kB / 0.5523 GB, free: 10.01 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.02283/1.73, allocations: 8.618 MB / 0.5607 GB, free: 1.395 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006662/1.73, allocations: 498.8 kB / 0.5612 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/1.731, allocations: 180.4 kB / 0.5614 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/1.731, allocations: 239.1 kB / 0.5616 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003267/1.731, allocations: 303.1 kB / 0.5619 GB, free: 204 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/1.731, allocations: 24 kB / 0.5619 GB, free: 180 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02675/1.758, allocations: 17.9 MB / 0.5794 GB, free: 14.25 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/1.758, allocations: 183.3 kB / 0.5796 GB, free: 14.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/1.759, allocations: 278.2 kB / 0.5798 GB, free: 13.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/1.769, allocations: 6.051 MB / 0.5857 GB, free: 7.73 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/1.769, allocations: 0 / 0.5857 GB, free: 7.73 MB / 478.1 MB Notification: Performance of FrontEnd: time 6.221e-06/1.769, allocations: 4 kB / 0.5857 GB, free: 7.727 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/1.769, allocations: 0 / 0.5857 GB, free: 7.727 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004568/1.774, allocations: 1.819 MB / 0.5875 GB, free: 5.855 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/1.774, allocations: 8.031 kB / 0.5875 GB, free: 5.848 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/1.774, allocations: 67.16 kB / 0.5876 GB, free: 5.781 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/1.774, allocations: 0.4884 MB / 0.5881 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/1.774, allocations: 20.56 kB / 0.5881 GB, free: 5.227 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/1.775, allocations: 24 kB / 0.5881 GB, free: 5.203 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/1.775, allocations: 433.2 kB / 0.5885 GB, free: 4.746 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/1.775, allocations: 4 kB / 0.5885 GB, free: 4.742 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.79e-05/1.775, allocations: 8 kB / 0.5885 GB, free: 4.734 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/1.775, allocations: 15.98 kB / 0.5885 GB, free: 4.719 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/1.776, allocations: 345.7 kB / 0.5889 GB, free: 4.379 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.03464/1.81, allocations: 18.59 MB / 0.607 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006011/1.811, allocations: 174.6 kB / 0.6072 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/1.811, allocations: 103.5 kB / 0.6073 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1435/1.954, allocations: 77.47 MB / 0.683 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/1.954, allocations: 38.56 kB / 0.683 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/1.954, allocations: 0 / 0.683 GB, free: 9.305 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001768/1.956, allocations: 0.5801 MB / 0.6836 GB, free: 8.695 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.484e-05/1.956, allocations: 110.8 kB / 0.6837 GB, free: 8.562 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/1.957, allocations: 1 MB / 0.6846 GB, free: 7.551 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/1.958, allocations: 37.64 kB / 0.6847 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/1.958, allocations: 304.1 kB / 0.685 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.742e-05/1.958, allocations: 126.1 kB / 0.6851 GB, free: 7.082 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.797e-05/1.958, allocations: 61.59 kB / 0.6851 GB, free: 7.016 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001605/1.958, allocations: 386.7 kB / 0.6855 GB, free: 6.629 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/1.958, allocations: 160.4 kB / 0.6857 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/1.959, allocations: 231.1 kB / 0.6859 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000414/1.959, allocations: 336.7 kB / 0.6862 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.959, allocations: 0 / 0.6862 GB, free: 5.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006997/1.96, allocations: 0.5386 MB / 0.6867 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/1.96, allocations: 4 kB / 0.6867 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.96, allocations: 4 kB / 0.6867 GB, free: 5.309 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/1.961, allocations: 220.6 kB / 0.687 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.862e-05/1.961, allocations: 19.98 kB / 0.687 GB, free: 5.07 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006366/1.962, allocations: 0.682 MB / 0.6876 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/1.962, allocations: 43.56 kB / 0.6877 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/1.962, allocations: 8 kB / 0.6877 GB, free: 4.312 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (Bend.C2.b,Bend.C1.a,SinkP1.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 (18): * Single equations (assignments): 15 * 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,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002375/1.963, allocations: 250.2 kB / 0.6879 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.917e-05/1.963, allocations: 67.16 kB / 0.688 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007926/1.964, allocations: 0.7057 MB / 0.6887 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003425/1.964, allocations: 250.4 kB / 0.6889 GB, free: 2.957 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.964, allocations: 4.609 kB / 0.6889 GB, free: 2.953 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/1.964, allocations: 4 kB / 0.6889 GB, free: 2.949 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/1.965, allocations: 0.9785 MB / 0.6899 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/1.965, allocations: 4 kB / 0.6899 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.181e-05/1.965, allocations: 27.89 kB / 0.6899 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009325/1.966, allocations: 169.9 kB / 0.6901 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/1.966, allocations: 15.94 kB / 0.6901 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006039/1.967, allocations: 0.6986 MB / 0.6908 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/1.967, allocations: 0 / 0.6908 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004727/1.967, allocations: 427 kB / 0.6912 GB, free: 0.5352 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/1.967, allocations: 168.2 kB / 0.6913 GB, free: 360 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.731e-05/1.967, allocations: 15.84 kB / 0.6914 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/1.968, allocations: 12 kB / 0.6914 GB, free: 332 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/1.968, allocations: 11.97 kB / 0.6914 GB, free: 320 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/1.968, allocations: 4 kB / 0.6914 GB, free: 316 kB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.1772/2.145, allocations: 0.8123 MB / 0.6922 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.1e-07/2.145, allocations: 0 / 0.6922 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003247/2.148, allocations: 1.25 MB / 0.6934 GB, free: 225.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (12): * Single equations (assignments): 11 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005338/2.153, allocations: 1.835 MB / 0.6952 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007685/2.154, allocations: 363.6 kB / 0.6955 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/2.154, allocations: 1.125 kB / 0.6955 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002665/2.155, allocations: 114.5 kB / 0.6956 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008943/2.155, allocations: 151.1 kB / 0.6958 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/2.157, allocations: 1.361 MB / 0.6971 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/2.157, allocations: 0.934 MB / 0.698 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/2.157, allocations: 33 kB / 0.6981 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of SimCode: time 3e-07/2.157, allocations: 1.281 kB / 0.6981 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.03709/2.195, allocations: 29.87 MB / 0.7272 GB, free: 214.8 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)