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.8068/0.8068, allocations: 150.9 MB / 167.1 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.000328, allocations: 15.97 kB / 206 MB, free: 9.062 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1403, allocations: 31.32 MB / 237.3 MB, free: 5.715 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.593/1.733, allocations: 294.6 MB / 0.5194 GB, free: 13.16 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03888/1.772, allocations: 35.08 MB / 0.5536 GB, free: 10.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003028/1.772, allocations: 8 kB / 0.5536 GB, free: 10.19 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.0005721/1.773, allocations: 259.1 kB / 0.5539 GB, free: 9.934 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003273/1.773, allocations: 266.8 kB / 0.5541 GB, free: 9.672 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.02392/1.797, allocations: 9.824 MB / 0.5637 GB, free: 15.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007754/1.798, allocations: 494.8 kB / 0.5642 GB, free: 15.36 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/1.798, allocations: 185.7 kB / 0.5644 GB, free: 15.17 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/1.798, allocations: 239.1 kB / 0.5646 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003007/1.799, allocations: 295.1 kB / 0.5649 GB, free: 14.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.916e-05/1.799, allocations: 24 kB / 0.5649 GB, free: 14.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02874/1.827, allocations: 18.04 MB / 0.5825 GB, free: 12.56 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/1.828, allocations: 175.4 kB / 0.5827 GB, free: 12.39 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002842/1.828, allocations: 278.2 kB / 0.583 GB, free: 12.11 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01782/1.846, allocations: 8.862 MB / 0.5916 GB, free: 3.23 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.846, allocations: 0 / 0.5916 GB, free: 3.23 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.363e-06/1.846, allocations: 4 kB / 0.5916 GB, free: 3.227 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/1.846, allocations: 0 / 0.5916 GB, free: 3.227 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.004089/1.85, allocations: 1.811 MB / 0.5934 GB, free: 1.363 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/1.85, allocations: 8.031 kB / 0.5934 GB, free: 1.355 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/1.85, allocations: 71.14 kB / 0.5935 GB, free: 1.285 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/1.851, allocations: 495.4 kB / 0.5939 GB, free: 0.7578 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/1.851, allocations: 20.56 kB / 0.594 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/1.851, allocations: 24 kB / 0.594 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005368/1.851, allocations: 433.2 kB / 0.5944 GB, free: 264 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/1.851, allocations: 3.938 kB / 0.5944 GB, free: 260 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/1.851, allocations: 15.94 kB / 0.5944 GB, free: 244 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.577e-05/1.851, allocations: 19.98 kB / 0.5944 GB, free: 224 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004463/1.852, allocations: 337.8 kB / 0.5948 GB, free: 15.89 MB / 494.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.03708/1.889, allocations: 18.7 MB / 0.613 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005718/1.89, allocations: 174.6 kB / 0.6132 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001316/1.89, allocations: 96.84 kB / 0.6133 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1507/2.04, allocations: 77.93 MB / 0.6894 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/2.04, allocations: 34.56 kB / 0.6894 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.254e-06/2.04, allocations: 0 / 0.6894 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.001777/2.042, allocations: 0.5842 MB / 0.69 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/2.042, allocations: 106.8 kB / 0.6901 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001138/2.043, allocations: 1 MB / 0.6911 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/2.044, allocations: 29.7 kB / 0.6911 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/2.044, allocations: 308.1 kB / 0.6914 GB, free: 2.164 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.313e-05/2.044, allocations: 122.1 kB / 0.6915 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/2.044, allocations: 69.58 kB / 0.6916 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001485/2.044, allocations: 382.7 kB / 0.6919 GB, free: 1.586 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001968/2.044, allocations: 160.3 kB / 0.6921 GB, free: 1.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/2.045, allocations: 243.1 kB / 0.6923 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003823/2.045, allocations: 332.7 kB / 0.6926 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/2.045, allocations: 4 kB / 0.6926 GB, free: 0.8086 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006935/2.046, allocations: 0.5423 MB / 0.6932 GB, free: 264 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/2.046, allocations: 5.562 kB / 0.6932 GB, free: 260 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/2.046, allocations: 0 / 0.6932 GB, free: 260 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001628/2.047, allocations: 220.8 kB / 0.6934 GB, free: 36 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.997e-05/2.047, allocations: 23.98 kB / 0.6934 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1494/2.197, allocations: 0.6693 MB / 0.6941 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/2.197, allocations: 40.56 kB / 0.6941 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/2.197, allocations: 13.39 kB / 0.6941 GB, free: 225.5 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.0002511/2.198, allocations: 256.7 kB / 0.6944 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.816e-05/2.198, allocations: 63.62 kB / 0.6944 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006556/2.198, allocations: 0.6938 MB / 0.6951 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003025/2.199, allocations: 253.9 kB / 0.6953 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/2.199, allocations: 0 / 0.6953 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/2.199, allocations: 1.656 kB / 0.6953 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/2.2, allocations: 0.9749 MB / 0.6963 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/2.2, allocations: 1.25 kB / 0.6963 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.69e-05/2.2, allocations: 19.31 kB / 0.6963 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009113/2.201, allocations: 186.3 kB / 0.6965 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/2.201, allocations: 3.391 kB / 0.6965 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004633/2.201, allocations: 0.7049 MB / 0.6972 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/2.201, allocations: 1.25 kB / 0.6972 GB, free: 224.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004157/2.202, allocations: 414.6 kB / 0.6976 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/2.202, allocations: 168.5 kB / 0.6977 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/2.202, allocations: 16.89 kB / 0.6978 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/2.202, allocations: 13.38 kB / 0.6978 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/2.202, allocations: 16.27 kB / 0.6978 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/2.202, allocations: 10.77 kB / 0.6978 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000795/2.203, allocations: 0.8099 MB / 0.6986 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/2.203, allocations: 0 / 0.6986 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002969/2.206, allocations: 1.251 MB / 0.6998 GB, free: 223.8 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.004083/2.21, allocations: 1.783 MB / 0.7015 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006266/2.211, allocations: 359.5 kB / 0.7019 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/2.211, allocations: 2.188 kB / 0.7019 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002562/2.211, allocations: 114.5 kB / 0.702 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/2.212, allocations: 149.2 kB / 0.7021 GB, free: 223.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/2.213, allocations: 1.111 MB / 0.7032 GB, free: 223.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/2.213, allocations: 0.935 MB / 0.7041 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001295/2.213, allocations: 62.19 kB / 0.7042 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/2.213, allocations: 29.91 kB / 0.7042 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/2.213, allocations: 0.6875 kB / 0.7042 GB, free: 222.5 MB / 0.5762 GB Notification: Performance of Templates: time 0.04943/2.263, allocations: 45.58 MB / 0.7487 GB, free: 195.1 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 -s cvode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestBend.pipe 2>&1)