Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.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.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8121/0.8121, allocations: 150.9 MB / 166.7 MB, free: 14.56 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003074, allocations: 19.97 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1575, allocations: 31.32 MB / 236.1 MB, free: 5.434 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.TestControlValve): time 1.526/1.684, allocations: 293.6 MB / 0.5173 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03448/1.718, allocations: 34.96 MB / 0.5514 GB, free: 10.86 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/1.719, allocations: 0 / 0.5514 GB, free: 10.86 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/ControlValve.mo:45:3-47:43: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/ControlValve.mo:48:3-50:38: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.0004348/1.719, allocations: 148.4 kB / 0.5516 GB, free: 10.72 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002076/1.719, allocations: 135.2 kB / 0.5517 GB, free: 10.59 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.0237/1.743, allocations: 8.549 MB / 0.56 GB, free: 2.035 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005586/1.744, allocations: 386.3 kB / 0.5604 GB, free: 1.656 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/1.744, allocations: 127.9 kB / 0.5605 GB, free: 1.535 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/1.744, allocations: 171.3 kB / 0.5607 GB, free: 1.367 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001779/1.744, allocations: 163.4 kB / 0.5608 GB, free: 1.207 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/1.744, allocations: 20 kB / 0.5609 GB, free: 1.188 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02539/1.77, allocations: 17.83 MB / 0.5783 GB, free: 15.33 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001353/1.77, allocations: 71.77 kB / 0.5784 GB, free: 15.26 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/1.77, allocations: 159 kB / 0.5785 GB, free: 15.11 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009157/1.779, allocations: 5.789 MB / 0.5842 GB, free: 9.301 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/1.779, allocations: 0 / 0.5842 GB, free: 9.301 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.403e-06/1.779, allocations: 0 / 0.5842 GB, free: 9.301 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.804e-06/1.779, allocations: 0 / 0.5842 GB, free: 9.301 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.004039/1.783, allocations: 1.524 MB / 0.5856 GB, free: 7.727 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/1.783, allocations: 8.031 kB / 0.5857 GB, free: 7.719 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/1.783, allocations: 55.38 kB / 0.5857 GB, free: 7.664 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/1.784, allocations: 282.2 kB / 0.586 GB, free: 7.348 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/1.784, allocations: 16.38 kB / 0.586 GB, free: 7.332 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/1.784, allocations: 24.98 kB / 0.586 GB, free: 7.309 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/1.784, allocations: 323.4 kB / 0.5863 GB, free: 6.965 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.784, allocations: 0 / 0.5863 GB, free: 6.965 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.956e-05/1.784, allocations: 8 kB / 0.5863 GB, free: 6.957 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/1.784, allocations: 11.98 kB / 0.5863 GB, free: 6.945 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/1.785, allocations: 209 kB / 0.5865 GB, free: 6.742 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.03372/1.818, allocations: 18.12 MB / 0.6042 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/1.818, allocations: 147.1 kB / 0.6044 GB, free: 2.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/1.819, allocations: 108.8 kB / 0.6045 GB, free: 2.488 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1375/1.956, allocations: 77.28 MB / 0.6799 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/1.956, allocations: 34.56 kB / 0.68 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 3.947e-06/1.956, allocations: 4 kB / 0.68 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001062/1.957, allocations: 499.2 kB / 0.6805 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/1.957, allocations: 55.41 kB / 0.6805 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/1.958, allocations: 352.5 kB / 0.6808 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/1.958, allocations: 33.7 kB / 0.6809 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/1.958, allocations: 188.4 kB / 0.6811 GB, free: 11.23 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.187e-05/1.958, allocations: 110.3 kB / 0.6812 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.585e-05/1.958, allocations: 49.62 kB / 0.6812 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001123/1.958, allocations: 346.8 kB / 0.6815 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/1.958, allocations: 91.95 kB / 0.6816 GB, free: 10.63 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/1.958, allocations: 136.2 kB / 0.6818 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/1.959, allocations: 248.5 kB / 0.682 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/1.959, allocations: 3.938 kB / 0.682 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004137/1.959, allocations: 337.7 kB / 0.6823 GB, free: 9.883 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/1.959, allocations: 9.406 kB / 0.6823 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/1.959, allocations: 3.984 kB / 0.6823 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/1.96, allocations: 140.6 kB / 0.6825 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.582e-05/1.96, allocations: 11.94 kB / 0.6825 GB, free: 9.719 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004843/1.96, allocations: 0.6108 MB / 0.6831 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/1.961, allocations: 31.56 kB / 0.6831 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/1.961, allocations: 8 kB / 0.6831 GB, free: 9.043 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 (ControlValve.C2.b,ControlValve.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 (13): * Single equations (assignments): 10 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.961, allocations: 166.3 kB / 0.6833 GB, free: 8.871 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/1.961, allocations: 31.56 kB / 0.6833 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007587/1.962, allocations: 0.6624 MB / 0.6839 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003877/1.962, allocations: 251.4 kB / 0.6842 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.962, allocations: 4 kB / 0.6842 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/1.962, allocations: 0 / 0.6842 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009474/1.963, allocations: 0.8314 MB / 0.685 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/1.963, allocations: 0 / 0.685 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.612e-05/1.963, allocations: 23.92 kB / 0.685 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003282/1.963, allocations: 108.8 kB / 0.6851 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/1.963, allocations: 0 / 0.6851 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004431/1.964, allocations: 0.6367 MB / 0.6858 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/1.964, allocations: 0 / 0.6858 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004658/1.964, allocations: 389.5 kB / 0.6861 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/1.964, allocations: 124.7 kB / 0.6862 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.53e-05/1.964, allocations: 15.83 kB / 0.6863 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/1.965, allocations: 4 kB / 0.6863 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.667e-05/1.965, allocations: 11.92 kB / 0.6863 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/1.965, allocations: 4 kB / 0.6863 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003072/1.965, allocations: 339.1 kB / 0.6866 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.965, allocations: 0 / 0.6866 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002718/1.968, allocations: 1.202 MB / 0.6878 GB, free: 4.055 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 (13): * Single equations (assignments): 12 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004343/1.972, allocations: 1.802 MB / 0.6895 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006355/1.973, allocations: 285.3 kB / 0.6898 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/1.973, allocations: 0 / 0.6898 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002739/1.973, allocations: 128.1 kB / 0.6899 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007295/1.974, allocations: 122.7 kB / 0.69 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/1.975, allocations: 0.8046 MB / 0.6908 GB, free: 0.8945 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/1.975, allocations: 0.8105 MB / 0.6916 GB, free: 56 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.139e-05/1.975, allocations: 27.44 kB / 0.6916 GB, free: 28 kB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/1.975, allocations: 0 / 0.6916 GB, free: 28 kB / 0.5762 GB Notification: Performance of Templates: time 0.1781/2.153, allocations: 26.1 MB / 0.7171 GB, free: 218.3 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)