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.8407/0.8407, allocations: 150.9 MB / 166.5 MB, free: 14.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003335, allocations: 16.41 kB / 237.1 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05815/0.0585, allocations: 31.34 MB / 268.4 MB, free: 7.051 MB / 222.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.596/1.655, allocations: 294.8 MB / 0.5501 GB, free: 12.97 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03864/1.693, allocations: 34.75 MB / 0.584 GB, free: 10.08 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001959/1.694, allocations: 0 / 0.584 GB, free: 10.08 MB / 478.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.000486/1.694, allocations: 189.4 kB / 0.5842 GB, free: 9.895 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000312/1.694, allocations: 167.1 kB / 0.5843 GB, free: 9.73 MB / 478.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.02329/1.718, allocations: 9.913 MB / 0.594 GB, free: 15.8 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005455/1.718, allocations: 382.3 kB / 0.5944 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/1.719, allocations: 136.6 kB / 0.5945 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/1.719, allocations: 167.3 kB / 0.5947 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/1.719, allocations: 163.4 kB / 0.5948 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.873e-05/1.719, allocations: 19.98 kB / 0.5949 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03048/1.75, allocations: 17.97 MB / 0.6124 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/1.75, allocations: 75.75 kB / 0.6125 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002044/1.75, allocations: 159 kB / 0.6126 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01643/1.766, allocations: 8.527 MB / 0.621 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/1.766, allocations: 0 / 0.621 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.003e-06/1.766, allocations: 0 / 0.621 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.414e-06/1.766, allocations: 0 / 0.621 GB, free: 4.184 MB / 0.4981 GB 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.003503/1.77, allocations: 1.528 MB / 0.6224 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/1.77, allocations: 12.03 kB / 0.6225 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/1.77, allocations: 43.47 kB / 0.6225 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/1.77, allocations: 294 kB / 0.6228 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/1.77, allocations: 16.44 kB / 0.6228 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/1.77, allocations: 16 kB / 0.6228 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004334/1.771, allocations: 315.4 kB / 0.6231 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/1.771, allocations: 8 kB / 0.6231 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/1.771, allocations: 7.984 kB / 0.6231 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/1.771, allocations: 12 kB / 0.6231 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/1.771, allocations: 212.9 kB / 0.6233 GB, free: 1.629 MB / 0.4981 GB 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.03839/1.81, allocations: 18.21 MB / 0.6411 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/1.81, allocations: 142.5 kB / 0.6413 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/1.81, allocations: 112.8 kB / 0.6414 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3303/2.14, allocations: 77.74 MB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/2.14, allocations: 36.09 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 2.304e-06/2.14, allocations: 2.062 kB / 0.7173 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.001061/2.141, allocations: 0.4933 MB / 0.7178 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/2.142, allocations: 51.41 kB / 0.7179 GB, free: 211.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003347/2.142, allocations: 357.6 kB / 0.7182 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/2.142, allocations: 25.7 kB / 0.7182 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.614e-05/2.142, allocations: 189.1 kB / 0.7184 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.138e-05/2.142, allocations: 102.2 kB / 0.7185 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.434e-05/2.142, allocations: 53.81 kB / 0.7185 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.438e-05/2.142, allocations: 347.7 kB / 0.7189 GB, free: 211 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/2.142, allocations: 91.09 kB / 0.719 GB, free: 211 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/2.142, allocations: 136.6 kB / 0.7191 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/2.143, allocations: 246.2 kB / 0.7193 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/2.143, allocations: 2.562 kB / 0.7193 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004059/2.143, allocations: 345.8 kB / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/2.143, allocations: 7.562 kB / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/2.143, allocations: 6.016 kB / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008048/2.144, allocations: 143.8 kB / 0.7198 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.665e-05/2.144, allocations: 11.28 kB / 0.7198 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004277/2.144, allocations: 0.6158 MB / 0.7204 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/2.145, allocations: 24.78 kB / 0.7205 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/2.145, allocations: 12.53 kB / 0.7205 GB, free: 210.3 MB / 0.5919 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.000122/2.145, allocations: 153.3 kB / 0.7206 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/2.145, allocations: 36.75 kB / 0.7206 GB, free: 210.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007018/2.146, allocations: 0.6539 MB / 0.7213 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003841/2.146, allocations: 259.2 kB / 0.7215 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/2.146, allocations: 2.688 kB / 0.7215 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/2.146, allocations: 4.406 kB / 0.7215 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009383/2.147, allocations: 0.8298 MB / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/2.147, allocations: 0 / 0.7223 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.432e-05/2.147, allocations: 18.03 kB / 0.7224 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003618/2.147, allocations: 104.5 kB / 0.7225 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/2.147, allocations: 8.438 kB / 0.7225 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000384/2.148, allocations: 0.6296 MB / 0.7231 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/2.148, allocations: 4.203 kB / 0.7231 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/2.148, allocations: 389.6 kB / 0.7235 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.567e-05/2.148, allocations: 119.8 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/2.148, allocations: 11.22 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/2.148, allocations: 2.656 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/2.149, allocations: 10.38 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/2.149, allocations: 9.297 kB / 0.7236 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002864/2.149, allocations: 329.7 kB / 0.7239 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.9e-07/2.149, allocations: 0 / 0.7239 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00257/2.151, allocations: 1.209 MB / 0.7251 GB, free: 208.6 MB / 0.5919 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.004935/2.156, allocations: 1.758 MB / 0.7268 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005988/2.157, allocations: 290.6 kB / 0.7271 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/2.157, allocations: 0 / 0.7271 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002753/2.157, allocations: 112.5 kB / 0.7272 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/2.158, allocations: 128.8 kB / 0.7273 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009671/2.159, allocations: 0.6599 MB / 0.728 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/2.159, allocations: 0.8029 MB / 0.7288 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001163/2.159, allocations: 32.17 kB / 0.7288 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.984e-05/2.159, allocations: 25.66 kB / 0.7288 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of SimCode: time 4.91e-07/2.159, allocations: 5.062 kB / 0.7288 GB, free: 207.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.04321/2.203, allocations: 43.07 MB / 0.7709 GB, free: 176.6 MB / 0.5919 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 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1)