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.8276/0.8276, allocations: 150.9 MB / 166.1 MB, free: 14.6 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003398, allocations: 11.97 kB / 204.2 MB, free: 10.08 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1607, allocations: 31.33 MB / 235.5 MB, free: 5.453 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.726/1.886, allocations: 293.5 MB / 0.5166 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03609/1.923, allocations: 34.64 MB / 0.5505 GB, free: 11.23 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000235/1.923, allocations: 4 kB / 0.5505 GB, free: 11.23 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.0003533/1.923, allocations: 99.53 kB / 0.5506 GB, free: 11.13 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/1.923, allocations: 83.36 kB / 0.5506 GB, free: 11.05 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.02467/1.948, allocations: 8.398 MB / 0.5588 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005555/1.949, allocations: 350.3 kB / 0.5592 GB, free: 2.309 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/1.949, allocations: 108.2 kB / 0.5593 GB, free: 2.207 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/1.949, allocations: 139.3 kB / 0.5594 GB, free: 2.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/1.949, allocations: 111.4 kB / 0.5595 GB, free: 1.961 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/1.949, allocations: 20 kB / 0.5595 GB, free: 1.941 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0318/1.981, allocations: 17.75 MB / 0.5769 GB, free: 172 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-05/1.981, allocations: 43.8 kB / 0.5769 GB, free: 128 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/1.981, allocations: 135.4 kB / 0.577 GB, free: 15.99 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01985/2.001, allocations: 8.433 MB / 0.5853 GB, free: 7.539 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/2.001, allocations: 0 / 0.5853 GB, free: 7.539 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.064e-06/2.001, allocations: 0 / 0.5853 GB, free: 7.539 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/2.001, allocations: 0 / 0.5853 GB, free: 7.539 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.003834/2.005, allocations: 1.447 MB / 0.5867 GB, free: 6.043 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/2.005, allocations: 8.031 kB / 0.5867 GB, free: 6.035 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/2.005, allocations: 31.56 kB / 0.5867 GB, free: 6.004 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/2.006, allocations: 239.2 kB / 0.587 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.887e-05/2.006, allocations: 16.44 kB / 0.587 GB, free: 5.715 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.309e-05/2.006, allocations: 16 kB / 0.587 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004153/2.006, allocations: 299.3 kB / 0.5873 GB, free: 5.379 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/2.006, allocations: 0 / 0.5873 GB, free: 5.379 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/2.006, allocations: 8 kB / 0.5873 GB, free: 5.371 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/2.006, allocations: 11.98 kB / 0.5873 GB, free: 5.359 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/2.006, allocations: 173 kB / 0.5875 GB, free: 5.191 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.03497/2.041, allocations: 18.02 MB / 0.605 GB, free: 1.297 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/2.042, allocations: 134.5 kB / 0.6052 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/2.042, allocations: 88.84 kB / 0.6053 GB, free: 1.066 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.15/2.192, allocations: 77.26 MB / 0.6807 GB, free: 11.04 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/2.192, allocations: 38.56 kB / 0.6807 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.675e-06/2.192, allocations: 0 / 0.6807 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001072/2.193, allocations: 450.2 kB / 0.6812 GB, free: 10.53 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/2.193, allocations: 55.41 kB / 0.6812 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/2.193, allocations: 219.1 kB / 0.6814 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/2.193, allocations: 29.7 kB / 0.6815 GB, free: 10.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/2.193, allocations: 148.5 kB / 0.6816 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/2.193, allocations: 106.3 kB / 0.6817 GB, free: 9.945 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/2.194, allocations: 53.59 kB / 0.6818 GB, free: 9.887 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001287/2.194, allocations: 334.8 kB / 0.6821 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/2.194, allocations: 75.98 kB / 0.6822 GB, free: 9.477 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/2.194, allocations: 116.2 kB / 0.6823 GB, free: 9.348 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/2.194, allocations: 208.6 kB / 0.6825 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/2.194, allocations: 0 / 0.6825 GB, free: 9.129 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004729/2.195, allocations: 297.6 kB / 0.6827 GB, free: 8.828 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/2.195, allocations: 7.938 kB / 0.6828 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/2.195, allocations: 4 kB / 0.6828 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009356/2.196, allocations: 162.2 kB / 0.6829 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.85e-05/2.196, allocations: 11.94 kB / 0.6829 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005406/2.196, allocations: 0.6382 MB / 0.6835 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/2.196, allocations: 27.66 kB / 0.6836 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/2.196, allocations: 4 kB / 0.6836 GB, free: 7.949 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.0001522/2.197, allocations: 145.7 kB / 0.6837 GB, free: 7.797 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.762e-05/2.197, allocations: 19.72 kB / 0.6837 GB, free: 7.777 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007657/2.197, allocations: 0.5988 MB / 0.6843 GB, free: 7.113 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003586/2.198, allocations: 222.3 kB / 0.6845 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/2.198, allocations: 0 / 0.6845 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/2.198, allocations: 4 kB / 0.6845 GB, free: 6.883 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009961/2.199, allocations: 0.7372 MB / 0.6853 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/2.199, allocations: 0 / 0.6853 GB, free: 6.086 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-05/2.199, allocations: 12 kB / 0.6853 GB, free: 6.074 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003995/2.199, allocations: 115.4 kB / 0.6854 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/2.199, allocations: 4 kB / 0.6854 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000488/2.2, allocations: 0.6586 MB / 0.686 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/2.2, allocations: 64 / 0.686 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004587/2.2, allocations: 345.5 kB / 0.6864 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/2.2, allocations: 108.8 kB / 0.6865 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.584e-05/2.2, allocations: 15.84 kB / 0.6865 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/2.201, allocations: 0 / 0.6865 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/2.201, allocations: 15.98 kB / 0.6865 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/2.201, allocations: 4 kB / 0.6865 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002486/2.201, allocations: 237.9 kB / 0.6867 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/2.201, allocations: 0 / 0.6867 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003649/2.205, allocations: 1.187 MB / 0.6879 GB, free: 3.344 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.006372/2.211, allocations: 1.777 MB / 0.6896 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0005113/2.211, allocations: 237.4 kB / 0.6898 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/2.211, allocations: 0 / 0.6898 GB, free: 1.336 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001866/2.212, allocations: 97.28 kB / 0.6899 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007089/2.212, allocations: 136.4 kB / 0.6901 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000817/2.213, allocations: 0.6085 MB / 0.6907 GB, free: 488 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1593/2.373, allocations: 0.7641 MB / 0.6914 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000139/2.373, allocations: 22.75 kB / 0.6914 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/2.373, allocations: 21.22 kB / 0.6914 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 1.403e-06/2.373, allocations: 0.6562 kB / 0.6914 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.04809/2.421, allocations: 42.81 MB / 0.7333 GB, free: 206.5 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestPipePressureLoss.pipe 2>&1)