Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.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.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8155/0.8155, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003202/0.0003203, allocations: 23.95 kB / 205.9 MB, free: 9.027 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1312, allocations: 31.32 MB / 237.3 MB, free: 5.723 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.TestPipePressureLoss): time 1.561/1.693, allocations: 294.4 MB / 0.5192 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.037/1.73, allocations: 34.44 MB / 0.5529 GB, free: 10.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001711/1.73, allocations: 4 kB / 0.5529 GB, free: 10.98 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/PipePressureLoss.mo:35:3-37: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/PipePressureLoss.mo:38:3-40: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.0003055/1.73, allocations: 108.3 kB / 0.553 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/1.73, allocations: 99.17 kB / 0.5531 GB, free: 10.77 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.02321/1.753, allocations: 9.567 MB / 0.5624 GB, free: 1.203 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000461/1.754, allocations: 350.3 kB / 0.5627 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/1.754, allocations: 111 kB / 0.5628 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/1.754, allocations: 143.3 kB / 0.563 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001626/1.755, allocations: 107.4 kB / 0.5631 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/1.755, allocations: 24 kB / 0.5631 GB, free: 496 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02738/1.782, allocations: 17.89 MB / 0.5806 GB, free: 14.57 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.105e-05/1.782, allocations: 51.77 kB / 0.5806 GB, free: 14.52 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/1.782, allocations: 127.4 kB / 0.5807 GB, free: 14.4 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0161/1.798, allocations: 8.421 MB / 0.589 GB, free: 5.957 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/1.798, allocations: 0 / 0.589 GB, free: 5.957 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/1.798, allocations: 0 / 0.589 GB, free: 5.957 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/1.798, allocations: 0 / 0.589 GB, free: 5.957 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.003186/1.802, allocations: 1.439 MB / 0.5904 GB, free: 4.469 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/1.802, allocations: 12.03 kB / 0.5904 GB, free: 4.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/1.802, allocations: 31.56 kB / 0.5904 GB, free: 4.426 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/1.802, allocations: 227.6 kB / 0.5906 GB, free: 4.164 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/1.802, allocations: 12.44 kB / 0.5906 GB, free: 4.152 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/1.802, allocations: 20 kB / 0.5907 GB, free: 4.133 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/1.802, allocations: 307.3 kB / 0.5909 GB, free: 3.801 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/1.802, allocations: 0 / 0.5909 GB, free: 3.801 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/1.802, allocations: 8 kB / 0.591 GB, free: 3.793 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/1.802, allocations: 12 kB / 0.591 GB, free: 3.781 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/1.803, allocations: 169 kB / 0.5911 GB, free: 3.617 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.03517/1.838, allocations: 18.12 MB / 0.6088 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/1.838, allocations: 138.6 kB / 0.609 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/1.838, allocations: 88.83 kB / 0.609 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1439/1.982, allocations: 77.73 MB / 0.6849 GB, free: 8.895 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/1.982, allocations: 38.5 kB / 0.685 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/1.982, allocations: 0 / 0.685 GB, free: 8.848 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.0009928/1.983, allocations: 443.4 kB / 0.6854 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/1.983, allocations: 55.41 kB / 0.6855 GB, free: 8.32 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/1.984, allocations: 219.1 kB / 0.6857 GB, free: 8.098 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/1.984, allocations: 33.7 kB / 0.6857 GB, free: 8.059 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.386e-05/1.984, allocations: 140.5 kB / 0.6858 GB, free: 7.914 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/1.984, allocations: 114.3 kB / 0.6859 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.1e-05/1.984, allocations: 57.61 kB / 0.686 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001041/1.984, allocations: 330.8 kB / 0.6863 GB, free: 7.406 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/1.984, allocations: 79.91 kB / 0.6864 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/1.984, allocations: 116.3 kB / 0.6865 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/1.984, allocations: 203.9 kB / 0.6867 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/1.984, allocations: 0 / 0.6867 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003988/1.985, allocations: 297.9 kB / 0.687 GB, free: 6.684 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.985, allocations: 7.938 kB / 0.687 GB, free: 6.676 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/1.985, allocations: 4 kB / 0.687 GB, free: 6.672 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008608/1.986, allocations: 156.7 kB / 0.6871 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/1.986, allocations: 16 kB / 0.6872 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004659/1.986, allocations: 0.6304 MB / 0.6878 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/1.986, allocations: 27.72 kB / 0.6878 GB, free: 5.816 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/1.986, allocations: 4 kB / 0.6878 GB, free: 5.812 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (pipePressureLoss.C2.b,pipePressureLoss.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 (11): * Single equations (assignments): 8 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001367/1.987, allocations: 145.8 kB / 0.6879 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/1.987, allocations: 19.72 kB / 0.688 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007119/1.987, allocations: 0.6002 MB / 0.6885 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003452/1.988, allocations: 226.2 kB / 0.6888 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.988, allocations: 0 / 0.6888 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/1.988, allocations: 8 kB / 0.6888 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000875/1.989, allocations: 0.7281 MB / 0.6895 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.989, allocations: 4 kB / 0.6895 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.487e-05/1.989, allocations: 12 kB / 0.6895 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003542/1.989, allocations: 122.2 kB / 0.6896 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/1.989, allocations: 4 kB / 0.6896 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004201/1.989, allocations: 0.6498 MB / 0.6902 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/1.989, allocations: 0 / 0.6902 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/1.99, allocations: 347.9 kB / 0.6906 GB, free: 2.777 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.222e-05/1.99, allocations: 100.9 kB / 0.6907 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/1.99, allocations: 11.84 kB / 0.6907 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/1.99, allocations: 4 kB / 0.6907 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.34e-05/1.99, allocations: 7.984 kB / 0.6907 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/1.99, allocations: 8 kB / 0.6907 GB, free: 2.629 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002214/1.99, allocations: 241.9 kB / 0.6909 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.31e-07/1.99, allocations: 0 / 0.6909 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002684/1.993, allocations: 1.183 MB / 0.6921 GB, free: 1.211 MB / 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 (11): * Single equations (assignments): 10 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.147/2.14, allocations: 1.717 MB / 0.6938 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005538/2.141, allocations: 231.9 kB / 0.694 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/2.141, allocations: 1.531 kB / 0.694 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001895/2.141, allocations: 91.89 kB / 0.6941 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007087/2.142, allocations: 133 kB / 0.6942 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/2.142, allocations: 0.5017 MB / 0.6947 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/2.143, allocations: 0.7732 MB / 0.6954 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.582e-05/2.143, allocations: 23.66 kB / 0.6955 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.7e-05/2.143, allocations: 18.88 kB / 0.6955 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 3.61e-07/2.143, allocations: 0 / 0.6955 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04527/2.188, allocations: 42.36 MB / 0.7369 GB, free: 205.8 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)