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.8223/0.8223, allocations: 150.9 MB / 166.1 MB, free: 14.89 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 11.98 kB / 204.2 MB, free: 10.17 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1809, allocations: 31.33 MB / 235.5 MB, free: 5.504 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.646/1.827, allocations: 293.7 MB / 0.5168 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03849/1.866, allocations: 35.28 MB / 0.5512 GB, free: 10.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003294/1.866, allocations: 4 kB / 0.5512 GB, free: 10.46 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.0006027/1.867, allocations: 252 kB / 0.5515 GB, free: 10.22 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003487/1.867, allocations: 243.1 kB / 0.5517 GB, free: 9.98 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.02559/1.893, allocations: 8.616 MB / 0.5601 GB, free: 1.359 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007363/1.894, allocations: 498.8 kB / 0.5606 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/1.894, allocations: 183.4 kB / 0.5608 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/1.894, allocations: 239.1 kB / 0.561 GB, free: 472 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/1.894, allocations: 307.1 kB / 0.5613 GB, free: 164 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/1.895, allocations: 24 kB / 0.5613 GB, free: 140 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02865/1.923, allocations: 17.9 MB / 0.5788 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002385/1.923, allocations: 179.4 kB / 0.579 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002852/1.924, allocations: 274.2 kB / 0.5792 GB, free: 13.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02119/1.945, allocations: 8.885 MB / 0.5879 GB, free: 4.859 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/1.945, allocations: 0 / 0.5879 GB, free: 4.859 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.643e-06/1.945, allocations: 3.938 kB / 0.5879 GB, free: 4.855 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/1.945, allocations: 0 / 0.5879 GB, free: 4.855 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.004714/1.95, allocations: 1.819 MB / 0.5897 GB, free: 2.984 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/1.95, allocations: 12.03 kB / 0.5897 GB, free: 2.973 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/1.95, allocations: 67.16 kB / 0.5897 GB, free: 2.906 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/1.95, allocations: 498.2 kB / 0.5902 GB, free: 2.375 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/1.95, allocations: 20.56 kB / 0.5902 GB, free: 2.352 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/1.951, allocations: 20 kB / 0.5903 GB, free: 2.332 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005506/1.951, allocations: 433.2 kB / 0.5907 GB, free: 1.875 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/1.951, allocations: 8 kB / 0.5907 GB, free: 1.867 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/1.951, allocations: 12 kB / 0.5907 GB, free: 1.855 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/1.951, allocations: 15.98 kB / 0.5907 GB, free: 1.84 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004039/1.952, allocations: 345.7 kB / 0.591 GB, free: 1.5 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.03639/1.988, allocations: 18.58 MB / 0.6092 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/1.989, allocations: 170.6 kB / 0.6093 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/1.989, allocations: 103.2 kB / 0.6094 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1431/2.132, allocations: 77.47 MB / 0.6851 GB, free: 6.488 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/2.132, allocations: 30.56 kB / 0.6851 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 4.679e-06/2.132, allocations: 0 / 0.6851 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.00185/2.134, allocations: 0.5995 MB / 0.6857 GB, free: 5.82 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/2.134, allocations: 106.8 kB / 0.6858 GB, free: 5.691 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/2.135, allocations: 1 MB / 0.6868 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/2.135, allocations: 25.7 kB / 0.6868 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/2.135, allocations: 312.1 kB / 0.6871 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.421e-05/2.135, allocations: 114.1 kB / 0.6872 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.236e-05/2.135, allocations: 73.59 kB / 0.6873 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001536/2.136, allocations: 386.7 kB / 0.6877 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/2.136, allocations: 152.4 kB / 0.6878 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/2.136, allocations: 239.1 kB / 0.688 GB, free: 3.352 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003563/2.136, allocations: 332.8 kB / 0.6884 GB, free: 3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/2.136, allocations: 11.94 kB / 0.6884 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006845/2.137, allocations: 0.5229 MB / 0.6889 GB, free: 2.457 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/2.137, allocations: 12.88 kB / 0.6889 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/2.137, allocations: 0 / 0.6889 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001703/2.139, allocations: 228.7 kB / 0.6891 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.002e-05/2.139, allocations: 23.98 kB / 0.6891 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006035/2.139, allocations: 0.6745 MB / 0.6898 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/2.14, allocations: 39.53 kB / 0.6898 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/2.14, allocations: 12 kB / 0.6898 GB, free: 1.445 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.0002297/2.14, allocations: 255.8 kB / 0.6901 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.822e-05/2.14, allocations: 63.16 kB / 0.6901 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007414/2.141, allocations: 0.7056 MB / 0.6908 GB, free: 352 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003249/2.141, allocations: 254.4 kB / 0.6911 GB, free: 88 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/2.141, allocations: 0 / 0.6911 GB, free: 88 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/2.141, allocations: 3.938 kB / 0.6911 GB, free: 84 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2012/2.342, allocations: 0.9716 MB / 0.692 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/2.342, allocations: 4.156 kB / 0.692 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/2.342, allocations: 13.97 kB / 0.692 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009426/2.343, allocations: 179.3 kB / 0.6922 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.731e-05/2.343, allocations: 5.531 kB / 0.6922 GB, free: 226.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000497/2.344, allocations: 0.7077 MB / 0.6929 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/2.344, allocations: 2.531 kB / 0.6929 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/2.344, allocations: 415.2 kB / 0.6933 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/2.345, allocations: 169.7 kB / 0.6935 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/2.345, allocations: 15.81 kB / 0.6935 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/2.345, allocations: 13.02 kB / 0.6935 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/2.345, allocations: 13.16 kB / 0.6935 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/2.345, allocations: 5.766 kB / 0.6935 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009544/2.346, allocations: 0.8152 MB / 0.6943 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.12e-07/2.346, allocations: 0 / 0.6943 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003535/2.349, allocations: 1.256 MB / 0.6955 GB, free: 225.4 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.004923/2.354, allocations: 1.838 MB / 0.6973 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006976/2.355, allocations: 359.8 kB / 0.6977 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/2.355, allocations: 4.781 kB / 0.6977 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002575/2.355, allocations: 118.7 kB / 0.6978 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/2.356, allocations: 151.8 kB / 0.6979 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/2.358, allocations: 1.296 MB / 0.6992 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/2.358, allocations: 0.9341 MB / 0.7001 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001565/2.358, allocations: 61.83 kB / 0.7002 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.506e-05/2.358, allocations: 31.53 kB / 0.7002 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/2.358, allocations: 0 / 0.7002 GB, free: 223.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.0485/2.407, allocations: 46.03 MB / 0.7452 GB, free: 196.5 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)