Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8313/0.8313, allocations: 150.9 MB / 167.1 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003431/0.0003432, allocations: 19.97 kB / 205.9 MB, free: 9.035 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1456, allocations: 31.31 MB / 237.3 MB, free: 5.727 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.SimpleExamples.TestControlValve): time 1.605/1.751, allocations: 294.6 MB / 0.5194 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03822/1.789, allocations: 34.76 MB / 0.5533 GB, free: 10.55 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001953/1.789, allocations: 0 / 0.5533 GB, free: 10.55 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.000447/1.79, allocations: 163.2 kB / 0.5535 GB, free: 10.39 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/1.79, allocations: 147.1 kB / 0.5536 GB, free: 10.25 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.02318/1.813, allocations: 9.744 MB / 0.5631 GB, free: 0.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000554/1.814, allocations: 382.3 kB / 0.5635 GB, free: 128 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/1.814, allocations: 130.4 kB / 0.5636 GB, free: 16 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/1.814, allocations: 171.2 kB / 0.5638 GB, free: 15.83 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/1.814, allocations: 159.4 kB / 0.5639 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/1.814, allocations: 27.94 kB / 0.564 GB, free: 15.65 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02863/1.843, allocations: 17.97 MB / 0.5815 GB, free: 13.65 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/1.843, allocations: 71.77 kB / 0.5816 GB, free: 13.58 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/1.843, allocations: 167 kB / 0.5817 GB, free: 13.42 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0174/1.861, allocations: 8.519 MB / 0.59 GB, free: 4.879 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.861, allocations: 0 / 0.59 GB, free: 4.879 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.443e-06/1.861, allocations: 0 / 0.59 GB, free: 4.879 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/1.861, allocations: 0 / 0.59 GB, free: 4.879 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.003597/1.864, allocations: 1.524 MB / 0.5915 GB, free: 3.305 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/1.864, allocations: 12.03 kB / 0.5915 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.479e-05/1.865, allocations: 47.38 kB / 0.5916 GB, free: 3.246 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/1.865, allocations: 286.2 kB / 0.5919 GB, free: 2.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/1.865, allocations: 16.38 kB / 0.5919 GB, free: 2.914 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.103e-05/1.865, allocations: 24 kB / 0.5919 GB, free: 2.891 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004402/1.865, allocations: 315.5 kB / 0.5922 GB, free: 2.551 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/1.865, allocations: 3.938 kB / 0.5922 GB, free: 2.547 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/1.865, allocations: 8 kB / 0.5922 GB, free: 2.539 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/1.865, allocations: 11.98 kB / 0.5922 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002746/1.866, allocations: 209 kB / 0.5924 GB, free: 2.324 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.03667/1.902, allocations: 18.21 MB / 0.6102 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/1.903, allocations: 148.4 kB / 0.6104 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/1.903, allocations: 112.9 kB / 0.6105 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1473/2.05, allocations: 77.73 MB / 0.6864 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.148e-05/2.05, allocations: 34.55 kB / 0.6864 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 2.745e-06/2.05, allocations: 0 / 0.6864 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.001152/2.051, allocations: 0.4953 MB / 0.6869 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/2.051, allocations: 51.41 kB / 0.6869 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/2.052, allocations: 360.5 kB / 0.6873 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/2.052, allocations: 25.7 kB / 0.6873 GB, free: 6.445 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/2.052, allocations: 184.4 kB / 0.6875 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.991e-05/2.052, allocations: 110.3 kB / 0.6876 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.533e-05/2.052, allocations: 57.62 kB / 0.6876 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001084/2.052, allocations: 346.8 kB / 0.688 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001291/2.052, allocations: 87.97 kB / 0.6881 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/2.052, allocations: 140.2 kB / 0.6882 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/2.053, allocations: 247.9 kB / 0.6884 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/2.053, allocations: 0 / 0.6884 GB, free: 5.246 MB / 0.5762 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004675/2.053, allocations: 338.8 kB / 0.6888 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/2.053, allocations: 4 kB / 0.6888 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/2.053, allocations: 8 kB / 0.6888 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000797/2.054, allocations: 136.8 kB / 0.6889 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.471e-05/2.054, allocations: 23.86 kB / 0.6889 GB, free: 4.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005111/2.055, allocations: 0.6149 MB / 0.6895 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/2.055, allocations: 31.59 kB / 0.6896 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/2.055, allocations: 4 kB / 0.6896 GB, free: 4.059 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.0001481/2.055, allocations: 157.8 kB / 0.6897 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.823e-05/2.055, allocations: 36.69 kB / 0.6897 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008049/2.056, allocations: 0.6484 MB / 0.6904 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004138/2.056, allocations: 255.5 kB / 0.6906 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/2.056, allocations: 0 / 0.6906 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/2.056, allocations: 0 / 0.6906 GB, free: 2.879 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/2.057, allocations: 0.8296 MB / 0.6914 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/2.057, allocations: 0 / 0.6914 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/2.057, allocations: 16.84 kB / 0.6914 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003454/2.058, allocations: 112.7 kB / 0.6916 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/2.058, allocations: 7.984 kB / 0.6916 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004665/2.058, allocations: 0.6342 MB / 0.6922 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/2.058, allocations: 0 / 0.6922 GB, free: 1.195 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/2.059, allocations: 395.7 kB / 0.6926 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/2.059, allocations: 120.7 kB / 0.6927 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/2.059, allocations: 7.906 kB / 0.6927 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/2.059, allocations: 4 kB / 0.6927 GB, free: 0.6406 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.809e-05/2.059, allocations: 11.92 kB / 0.6927 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/2.059, allocations: 12 kB / 0.6927 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000352/2.06, allocations: 331.1 kB / 0.693 GB, free: 300 kB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/2.06, allocations: 0 / 0.693 GB, free: 300 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.1564/2.216, allocations: 1.198 MB / 0.6942 GB, free: 226 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.005423/2.221, allocations: 1.747 MB / 0.6959 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000715/2.222, allocations: 279.6 kB / 0.6962 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/2.222, allocations: 2.812 kB / 0.6962 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003067/2.223, allocations: 117.3 kB / 0.6963 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007626/2.223, allocations: 126 kB / 0.6964 GB, free: 225.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/2.224, allocations: 0.6605 MB / 0.697 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/2.225, allocations: 0.8038 MB / 0.6978 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000116/2.225, allocations: 36.25 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.372e-05/2.225, allocations: 23.25 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of SimCode: time 4.01e-07/2.225, allocations: 0.75 kB / 0.6979 GB, free: 224.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.04592/2.271, allocations: 43.02 MB / 0.7399 GB, free: 203.1 MB / 0.5762 GB make -j1 -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)