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.7796/0.7796, allocations: 150.9 MB / 166 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.000264, allocations: 15.97 kB / 204 MB, free: 10.07 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1373, allocations: 31.32 MB / 235.4 MB, free: 5.445 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.558/1.696, allocations: 292.7 MB / 0.5157 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04466/1.74, allocations: 38.25 MB / 0.553 GB, free: 7.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/1.741, allocations: 4 kB / 0.553 GB, free: 7.676 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.0005664/1.741, allocations: 247.2 kB / 0.5533 GB, free: 7.434 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003698/1.742, allocations: 243.1 kB / 0.5535 GB, free: 7.195 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02417/1.766, allocations: 7.343 MB / 0.5607 GB, free: 15.85 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006917/1.767, allocations: 474.8 kB / 0.5611 GB, free: 15.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003008/1.767, allocations: 173.4 kB / 0.5613 GB, free: 15.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003626/1.767, allocations: 207.1 kB / 0.5615 GB, free: 15.01 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003484/1.768, allocations: 287.1 kB / 0.5618 GB, free: 14.73 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.76e-05/1.768, allocations: 16 kB / 0.5618 GB, free: 14.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03117/1.799, allocations: 17.88 MB / 0.5792 GB, free: 12.8 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000225/1.799, allocations: 179.3 kB / 0.5794 GB, free: 12.63 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002901/1.799, allocations: 250.3 kB / 0.5797 GB, free: 12.38 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02059/1.82, allocations: 8.858 MB / 0.5883 GB, free: 3.504 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/1.82, allocations: 0 / 0.5883 GB, free: 3.504 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/1.82, allocations: 0 / 0.5883 GB, free: 3.504 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/1.82, allocations: 4 kB / 0.5883 GB, free: 3.5 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.004484/1.825, allocations: 1.827 MB / 0.5901 GB, free: 1.621 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/1.825, allocations: 8.031 kB / 0.5901 GB, free: 1.613 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/1.825, allocations: 67.16 kB / 0.5902 GB, free: 1.547 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005255/1.825, allocations: 494.2 kB / 0.5906 GB, free: 1.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/1.825, allocations: 18.48 kB / 0.5907 GB, free: 1.004 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/1.825, allocations: 24 kB / 0.5907 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/1.826, allocations: 433.2 kB / 0.5911 GB, free: 0.5234 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/1.826, allocations: 4 kB / 0.5911 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/1.826, allocations: 11.98 kB / 0.5911 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/1.826, allocations: 12 kB / 0.5911 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004153/1.826, allocations: 349.7 kB / 0.5915 GB, free: 160 kB / 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.03624/1.863, allocations: 18.58 MB / 0.6096 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006301/1.863, allocations: 179.3 kB / 0.6098 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/1.863, allocations: 101.5 kB / 0.6099 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1438/2.007, allocations: 77.47 MB / 0.6855 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/2.007, allocations: 34.56 kB / 0.6856 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=38): time 2.485e-06/2.007, allocations: 0 / 0.6856 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of matching and sorting (n=38): time 0.002012/2.009, allocations: 0.5956 MB / 0.6861 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/2.009, allocations: 106.8 kB / 0.6862 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/2.011, allocations: 1.004 MB / 0.6872 GB, free: 3.324 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/2.011, allocations: 33.7 kB / 0.6873 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/2.011, allocations: 300.1 kB / 0.6875 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.519e-05/2.011, allocations: 130 kB / 0.6877 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.282e-05/2.011, allocations: 65.59 kB / 0.6877 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001612/2.011, allocations: 382.7 kB / 0.6881 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/2.012, allocations: 164.4 kB / 0.6882 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002362/2.012, allocations: 235 kB / 0.6885 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004008/2.012, allocations: 332.8 kB / 0.6888 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/2.012, allocations: 0 / 0.6888 GB, free: 1.633 MB / 0.5762 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007501/2.013, allocations: 0.5361 MB / 0.6893 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/2.013, allocations: 4 kB / 0.6893 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/2.013, allocations: 4 kB / 0.6893 GB, free: 1.082 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/2.015, allocations: 220.7 kB / 0.6895 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/2.015, allocations: 23.92 kB / 0.6896 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006695/2.015, allocations: 0.6856 MB / 0.6902 GB, free: 132 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/2.016, allocations: 39.56 kB / 0.6903 GB, free: 92 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/2.016, allocations: 11.98 kB / 0.6903 GB, free: 80 kB / 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.1565/2.172, allocations: 242.5 kB / 0.6905 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/2.172, allocations: 62.38 kB / 0.6906 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007776/2.173, allocations: 0.7003 MB / 0.6912 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003124/2.174, allocations: 255.4 kB / 0.6915 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/2.174, allocations: 0 / 0.6915 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/2.174, allocations: 1.469 kB / 0.6915 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/2.175, allocations: 0.9815 MB / 0.6924 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/2.175, allocations: 1.219 kB / 0.6925 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.561e-05/2.175, allocations: 21.62 kB / 0.6925 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/2.176, allocations: 219.8 kB / 0.6927 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/2.176, allocations: 8.875 kB / 0.6927 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005052/2.177, allocations: 0.701 MB / 0.6934 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/2.177, allocations: 0 / 0.6934 GB, free: 225 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004364/2.177, allocations: 409.6 kB / 0.6938 GB, free: 224.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/2.177, allocations: 176.4 kB / 0.6939 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.851e-05/2.177, allocations: 12.97 kB / 0.6939 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/2.178, allocations: 17.78 kB / 0.694 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.846e-05/2.178, allocations: 12.22 kB / 0.694 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/2.178, allocations: 8.625 kB / 0.694 GB, free: 224.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008643/2.178, allocations: 0.8127 MB / 0.6948 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.6e-07/2.178, allocations: 0.625 kB / 0.6948 GB, free: 224.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002978/2.181, allocations: 1.247 MB / 0.696 GB, free: 224.6 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.004486/2.186, allocations: 1.844 MB / 0.6978 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006598/2.187, allocations: 359.7 kB / 0.6981 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/2.187, allocations: 3.125 kB / 0.6981 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002671/2.187, allocations: 110.1 kB / 0.6982 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008269/2.188, allocations: 146.5 kB / 0.6984 GB, free: 224.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/2.189, allocations: 1.308 MB / 0.6997 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/2.189, allocations: 0.9281 MB / 0.7006 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001467/2.19, allocations: 59.27 kB / 0.7006 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.97e-05/2.19, allocations: 31.5 kB / 0.7007 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of SimCode: time 2.2e-07/2.19, allocations: 0 / 0.7007 GB, free: 223.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.0467/2.236, allocations: 45.53 MB / 0.7451 GB, free: 195.9 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)