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.7435/0.7435, allocations: 150.9 MB / 167.2 MB, free: 14.27 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 19.89 kB / 237.8 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04561/0.04593, allocations: 31.35 MB / 269.1 MB, free: 7.012 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.44/1.486, allocations: 294.8 MB / 0.5507 GB, free: 13.17 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03336/1.52, allocations: 34.75 MB / 0.5846 GB, free: 10.27 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/1.52, allocations: 4 kB / 0.5846 GB, free: 10.27 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.0004087/1.52, allocations: 167.2 kB / 0.5848 GB, free: 10.11 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002056/1.521, allocations: 151.1 kB / 0.5849 GB, free: 9.957 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.01999/1.541, allocations: 9.729 MB / 0.5944 GB, free: 216 kB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004866/1.541, allocations: 390.3 kB / 0.5948 GB, free: 15.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/1.541, allocations: 143.1 kB / 0.5949 GB, free: 15.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/1.542, allocations: 167.3 kB / 0.5951 GB, free: 15.53 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/1.542, allocations: 167.4 kB / 0.5952 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/1.542, allocations: 20 kB / 0.5953 GB, free: 15.34 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02667/1.568, allocations: 17.97 MB / 0.6128 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/1.569, allocations: 75.7 kB / 0.6129 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001822/1.569, allocations: 163 kB / 0.613 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01453/1.583, allocations: 8.519 MB / 0.6213 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/1.583, allocations: 4 kB / 0.6213 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/1.583, allocations: 0 / 0.6213 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.064e-05/1.583, allocations: 0 / 0.6213 GB, free: 4.578 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.003434/1.587, allocations: 1.52 MB / 0.6228 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/1.587, allocations: 12.02 kB / 0.6228 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/1.587, allocations: 43.47 kB / 0.6229 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/1.587, allocations: 294 kB / 0.6232 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/1.587, allocations: 16.44 kB / 0.6232 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/1.587, allocations: 20 kB / 0.6232 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004056/1.588, allocations: 327.3 kB / 0.6235 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/1.588, allocations: 0 / 0.6235 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/1.588, allocations: 8 kB / 0.6235 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/1.588, allocations: 15.98 kB / 0.6235 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002577/1.588, allocations: 205 kB / 0.6237 GB, free: 2.027 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.03565/1.624, allocations: 18.22 MB / 0.6415 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/1.624, allocations: 142.5 kB / 0.6417 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/1.624, allocations: 112.8 kB / 0.6418 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2952/1.919, allocations: 77.73 MB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/1.919, allocations: 35.94 kB / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=34): time 1.884e-06/1.919, allocations: 0 / 0.7177 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=34): time 0.000957/1.92, allocations: 0.4929 MB / 0.7182 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.418e-05/1.92, allocations: 53.09 kB / 0.7182 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000312/1.921, allocations: 363.6 kB / 0.7186 GB, free: 212 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.146e-05/1.921, allocations: 25.7 kB / 0.7186 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.103e-05/1.921, allocations: 184.1 kB / 0.7188 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 4.957e-05/1.921, allocations: 112 kB / 0.7189 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/1.921, allocations: 49.16 kB / 0.7189 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 7.383e-05/1.921, allocations: 345.9 kB / 0.7193 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/1.921, allocations: 89.59 kB / 0.7194 GB, free: 211.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/1.921, allocations: 137 kB / 0.7195 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/1.921, allocations: 253 kB / 0.7197 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.921, allocations: 0.5625 kB / 0.7197 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003736/1.922, allocations: 348.5 kB / 0.7201 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/1.922, allocations: 5.406 kB / 0.7201 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/1.922, allocations: 4.562 kB / 0.7201 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007412/1.923, allocations: 141.4 kB / 0.7202 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.682e-05/1.923, allocations: 12.89 kB / 0.7202 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003756/1.923, allocations: 0.6133 MB / 0.7208 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/1.923, allocations: 27.12 kB / 0.7208 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/1.923, allocations: 9.75 kB / 0.7209 GB, free: 210.8 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.0001096/1.923, allocations: 156.3 kB / 0.721 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.491e-05/1.923, allocations: 36.91 kB / 0.721 GB, free: 210.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006072/1.924, allocations: 0.6485 MB / 0.7217 GB, free: 210.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003358/1.924, allocations: 267.1 kB / 0.7219 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/1.924, allocations: 2.812 kB / 0.7219 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/1.924, allocations: 0 / 0.7219 GB, free: 210.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008387/1.925, allocations: 0.8221 MB / 0.7227 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/1.925, allocations: 0 / 0.7227 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.983e-05/1.925, allocations: 20.12 kB / 0.7227 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00031/1.926, allocations: 109.4 kB / 0.7229 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/1.926, allocations: 6.844 kB / 0.7229 GB, free: 210 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003579/1.926, allocations: 0.6278 MB / 0.7235 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/1.926, allocations: 4.062 kB / 0.7235 GB, free: 209.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004099/1.926, allocations: 387.4 kB / 0.7238 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/1.926, allocations: 120.8 kB / 0.724 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.427e-05/1.927, allocations: 14.62 kB / 0.724 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/1.927, allocations: 3.938 kB / 0.724 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/1.927, allocations: 14.36 kB / 0.724 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/1.927, allocations: 6.719 kB / 0.724 GB, free: 209.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002895/1.927, allocations: 332.7 kB / 0.7243 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/1.927, allocations: 0 / 0.7243 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002345/1.929, allocations: 1.21 MB / 0.7255 GB, free: 209.1 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.003682/1.933, allocations: 1.751 MB / 0.7272 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004964/1.934, allocations: 276.9 kB / 0.7275 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.934, allocations: 0 / 0.7275 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000247/1.934, allocations: 122.6 kB / 0.7276 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006671/1.934, allocations: 129.3 kB / 0.7277 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008194/1.935, allocations: 0.6965 MB / 0.7284 GB, free: 208.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/1.936, allocations: 0.8045 MB / 0.7292 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/1.936, allocations: 27.34 kB / 0.7292 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of SimCode: time 2.21e-07/1.936, allocations: 0 / 0.7292 GB, free: 207.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.02542/1.961, allocations: 26.08 MB / 0.7547 GB, free: 194.4 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)