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.8059/0.8059, allocations: 150.9 MB / 166.4 MB, free: 14.27 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 19.97 kB / 204.5 MB, free: 9.613 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1451, allocations: 31.33 MB / 235.9 MB, free: 5.457 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.53/1.675, allocations: 294.7 MB / 0.5181 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03759/1.713, allocations: 34.76 MB / 0.552 GB, free: 10.67 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002007/1.713, allocations: 4 kB / 0.552 GB, free: 10.66 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.0004339/1.714, allocations: 156.4 kB / 0.5522 GB, free: 10.51 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/1.714, allocations: 155 kB / 0.5523 GB, free: 10.36 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.02312/1.737, allocations: 9.732 MB / 0.5618 GB, free: 0.625 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005536/1.738, allocations: 386.3 kB / 0.5622 GB, free: 252 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/1.738, allocations: 130.2 kB / 0.5623 GB, free: 124 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/1.738, allocations: 167.3 kB / 0.5625 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/1.738, allocations: 163.4 kB / 0.5627 GB, free: 15.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/1.738, allocations: 24 kB / 0.5627 GB, free: 15.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02866/1.767, allocations: 17.74 MB / 0.58 GB, free: 14.01 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/1.767, allocations: 71.77 kB / 0.5801 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/1.767, allocations: 167 kB / 0.5802 GB, free: 13.77 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01671/1.784, allocations: 8.531 MB / 0.5886 GB, free: 5.223 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/1.784, allocations: 0 / 0.5886 GB, free: 5.223 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/1.784, allocations: 0 / 0.5886 GB, free: 5.223 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/1.784, allocations: 0 / 0.5886 GB, free: 5.223 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.003784/1.788, allocations: 1.529 MB / 0.5901 GB, free: 3.645 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/1.788, allocations: 12.03 kB / 0.5901 GB, free: 3.633 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/1.788, allocations: 43.38 kB / 0.5901 GB, free: 3.59 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/1.788, allocations: 286.2 kB / 0.5904 GB, free: 3.273 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/1.789, allocations: 16.44 kB / 0.5904 GB, free: 3.258 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/1.789, allocations: 19.98 kB / 0.5904 GB, free: 3.238 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004027/1.789, allocations: 319.4 kB / 0.5907 GB, free: 2.895 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/1.789, allocations: 4 kB / 0.5907 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/1.789, allocations: 5.359 kB / 0.5907 GB, free: 2.887 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/1.789, allocations: 15.98 kB / 0.5907 GB, free: 2.871 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002719/1.789, allocations: 205 kB / 0.5909 GB, free: 2.672 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.03803/1.827, allocations: 18.12 MB / 0.6086 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/1.828, allocations: 146.5 kB / 0.6088 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/1.828, allocations: 104.8 kB / 0.6089 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1569/1.985, allocations: 77.28 MB / 0.6843 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/1.985, allocations: 38.56 kB / 0.6844 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.655e-06/1.985, allocations: 0 / 0.6844 GB, free: 8.324 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001216/1.986, allocations: 0.4914 MB / 0.6849 GB, free: 7.805 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/1.986, allocations: 59.39 kB / 0.6849 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003929/1.986, allocations: 360.5 kB / 0.6853 GB, free: 7.379 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/1.986, allocations: 25.7 kB / 0.6853 GB, free: 7.348 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/1.987, allocations: 184.4 kB / 0.6855 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.155e-05/1.987, allocations: 110.3 kB / 0.6856 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.219e-05/1.987, allocations: 53.62 kB / 0.6856 GB, free: 6.992 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001187/1.987, allocations: 346.8 kB / 0.6859 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/1.987, allocations: 91.97 kB / 0.686 GB, free: 6.555 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/1.987, allocations: 137.1 kB / 0.6862 GB, free: 6.406 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/1.987, allocations: 248.5 kB / 0.6864 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/1.987, allocations: 0 / 0.6864 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004753/1.988, allocations: 345.5 kB / 0.6867 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/1.988, allocations: 5.562 kB / 0.6867 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/1.988, allocations: 0 / 0.6867 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008102/1.989, allocations: 142.3 kB / 0.6869 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.276e-05/1.989, allocations: 19.94 kB / 0.6869 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005493/1.989, allocations: 0.6108 MB / 0.6875 GB, free: 5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/1.99, allocations: 39.47 kB / 0.6875 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/1.99, allocations: 12.06 kB / 0.6875 GB, free: 4.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 (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.0001492/1.99, allocations: 153.8 kB / 0.6877 GB, free: 4.789 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/1.99, allocations: 33.58 kB / 0.6877 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008246/1.991, allocations: 0.6522 MB / 0.6884 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004226/1.991, allocations: 247.5 kB / 0.6886 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.991, allocations: 4 kB / 0.6886 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/1.991, allocations: 0 / 0.6886 GB, free: 3.777 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/1.992, allocations: 0.8334 MB / 0.6894 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/1.992, allocations: 0 / 0.6894 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/1.992, allocations: 23.94 kB / 0.6894 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/1.993, allocations: 108.8 kB / 0.6895 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/1.993, allocations: 4 kB / 0.6895 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004987/1.993, allocations: 0.6317 MB / 0.6902 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.993, allocations: 8 kB / 0.6902 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/1.994, allocations: 387.7 kB / 0.6905 GB, free: 1.688 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.541e-05/1.994, allocations: 120.6 kB / 0.6906 GB, free: 1.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/1.994, allocations: 18.84 kB / 0.6907 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/1.994, allocations: 0 / 0.6907 GB, free: 1.535 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.357e-05/1.994, allocations: 11.92 kB / 0.6907 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/1.994, allocations: 12 kB / 0.6907 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003419/1.994, allocations: 335.1 kB / 0.691 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.11e-07/1.994, allocations: 0 / 0.691 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1489/2.143, allocations: 1.198 MB / 0.6922 GB, free: 226.2 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.004771/2.148, allocations: 1.734 MB / 0.6939 GB, free: 226.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006893/2.149, allocations: 284.8 kB / 0.6941 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/2.149, allocations: 1.75 kB / 0.6941 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002843/2.149, allocations: 119.5 kB / 0.6943 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007897/2.15, allocations: 140 kB / 0.6944 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009139/2.151, allocations: 0.6601 MB / 0.695 GB, free: 225.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/2.151, allocations: 0.8022 MB / 0.6958 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001062/2.151, allocations: 31.33 kB / 0.6958 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.492e-05/2.151, allocations: 26.78 kB / 0.6959 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/2.151, allocations: 1.344 kB / 0.6959 GB, free: 225.1 MB / 0.5762 GB Notification: Performance of Templates: time 0.0461/2.197, allocations: 43.13 MB / 0.738 GB, free: 203.8 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)