Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve") translateModel(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.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.7879/0.7879, allocations: 150.9 MB / 166.7 MB, free: 14.67 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004116, allocations: 15.97 kB / 204.8 MB, free: 10.05 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1681, allocations: 31.32 MB / 236.1 MB, free: 5.422 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.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.603/1.771, allocations: 293.6 MB / 0.5174 GB, free: 13.6 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1982/1.969, allocations: 185.7 MB / 0.6988 GB, free: 3.461 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003164/1.969, allocations: 4 kB / 0.6988 GB, free: 3.457 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:44:3-45:68:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/PressureLosses/ControlValve.mo:46:3-47:66:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0002868/1.97, allocations: 84.62 kB / 0.6988 GB, free: 3.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002997/1.97, allocations: 143.2 kB / 0.699 GB, free: 3.234 MB / 0.5762 GB [/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.3532/2.323, allocations: 10.11 MB / 0.7088 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005837/2.324, allocations: 426.8 kB / 0.7093 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/2.324, allocations: 219.1 kB / 0.7095 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002039/2.324, allocations: 175.5 kB / 0.7096 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/2.325, allocations: 225.8 kB / 0.7098 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.289e-05/2.325, allocations: 36.22 kB / 0.7099 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03167/2.356, allocations: 19.89 MB / 0.7293 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002092/2.357, allocations: 107.8 kB / 0.7294 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003117/2.357, allocations: 207.4 kB / 0.7296 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01362/2.371, allocations: 6.836 MB / 0.7363 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/2.371, allocations: 0 / 0.7363 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.502e-06/2.371, allocations: 0 / 0.7363 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.207e-06/2.371, allocations: 1.031 kB / 0.7363 GB, free: 3.711 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.006102/2.377, allocations: 1.83 MB / 0.7381 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/2.377, allocations: 10.09 kB / 0.7381 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/2.377, allocations: 62.34 kB / 0.7381 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/2.377, allocations: 338.3 kB / 0.7385 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/2.377, allocations: 25.28 kB / 0.7385 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.3e-05/2.378, allocations: 32.16 kB / 0.7385 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005753/2.378, allocations: 379.7 kB / 0.7389 GB, free: 18.29 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/2.378, allocations: 4.094 kB / 0.7389 GB, free: 18.29 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/2.378, allocations: 21.77 kB / 0.7389 GB, free: 18.28 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.398e-05/2.378, allocations: 10.78 kB / 0.7389 GB, free: 18.28 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004261/2.379, allocations: 262.5 kB / 0.7392 GB, free: 18.28 MB / 0.5919 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.01004/2.389, allocations: 6.209 MB / 0.7452 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/2.389, allocations: 116.4 kB / 0.7453 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.521e-05/2.389, allocations: 47.06 kB / 0.7454 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2231/2.612, allocations: 118.3 MB / 0.8609 GB, free: 5.242 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.11e-05/2.612, allocations: 38.55 kB / 0.8609 GB, free: 5.195 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/2.612, allocations: 0 / 0.8609 GB, free: 5.195 MB / 0.7012 GB Notification: Performance of matching and sorting (n=7): time 0.0009283/2.613, allocations: 307.6 kB / 0.8612 GB, free: 4.902 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/2.613, allocations: 55.41 kB / 0.8613 GB, free: 4.836 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004867/2.614, allocations: 421.7 kB / 0.8617 GB, free: 4.492 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/2.614, allocations: 34.67 kB / 0.8617 GB, free: 4.457 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/2.614, allocations: 260.9 kB / 0.862 GB, free: 4.258 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/2.614, allocations: 27.27 kB / 0.862 GB, free: 4.234 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.413e-05/2.614, allocations: 58.98 kB / 0.862 GB, free: 4.188 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001364/2.614, allocations: 344.8 kB / 0.8624 GB, free: 3.855 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/2.614, allocations: 61.59 kB / 0.8624 GB, free: 3.812 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/2.614, allocations: 166 kB / 0.8626 GB, free: 3.633 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/2.615, allocations: 234 kB / 0.8628 GB, free: 3.414 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/2.615, allocations: 0 / 0.8628 GB, free: 3.414 MB / 0.7012 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005664/2.615, allocations: 316 kB / 0.8631 GB, free: 3.176 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/2.615, allocations: 8 kB / 0.8631 GB, free: 3.168 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/2.615, allocations: 8 kB / 0.8631 GB, free: 3.16 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008291/2.616, allocations: 115.9 kB / 0.8632 GB, free: 3.051 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/2.616, allocations: 41.89 kB / 0.8633 GB, free: 3.016 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005134/2.617, allocations: 0.5678 MB / 0.8638 GB, free: 2.445 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/2.617, allocations: 28.89 kB / 0.8639 GB, free: 2.418 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.978e-05/2.617, allocations: 15.38 kB / 0.8639 GB, free: 2.406 MB / 0.7012 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 6 (SourceP1.C.ftype,PuitsP1.fluid,ControlValve.fluid,SourceP1.fluid1,SourceP1.C.diff_on_2,ControlValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002054/2.617, allocations: 174.2 kB / 0.864 GB, free: 2.25 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.188e-05/2.617, allocations: 31.62 kB / 0.8641 GB, free: 2.219 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004839/2.618, allocations: 223.4 kB / 0.8643 GB, free: 2.035 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/2.618, allocations: 0 / 0.8643 GB, free: 2.035 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/2.618, allocations: 0 / 0.8643 GB, free: 2.035 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/2.618, allocations: 0 / 0.8643 GB, free: 2.035 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003633/2.618, allocations: 356.5 kB / 0.8646 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/2.618, allocations: 0 / 0.8646 GB, free: 1.695 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.449e-05/2.618, allocations: 5.094 kB / 0.8646 GB, free: 1.691 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004266/2.619, allocations: 85.64 kB / 0.8647 GB, free: 1.613 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/2.619, allocations: 0 / 0.8647 GB, free: 1.613 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004221/2.619, allocations: 0.5679 MB / 0.8653 GB, free: 1.043 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/2.619, allocations: 8 kB / 0.8653 GB, free: 1.035 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/2.62, allocations: 207.1 kB / 0.8655 GB, free: 0.8438 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 9.496e-05/2.62, allocations: 112 kB / 0.8656 GB, free: 0.7188 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.142e-05/2.62, allocations: 3.938 kB / 0.8656 GB, free: 0.7148 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.52e-05/2.62, allocations: 3.938 kB / 0.8656 GB, free: 0.7109 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/2.62, allocations: 11.98 kB / 0.8656 GB, free: 0.6992 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/2.62, allocations: 5.203 kB / 0.8656 GB, free: 0.6953 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0003076/2.62, allocations: 298.6 kB / 0.8659 GB, free: 476 kB / 0.7012 GB Notification: Performance of sort global known variables: time 1.61e-07/2.62, allocations: 0 / 0.8659 GB, free: 476 kB / 0.7012 GB Notification: Performance of remove unused functions: time 0.004608/2.625, allocations: 1.46 MB / 0.8673 GB, free: 15.11 MB / 0.7169 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 (4): * Single equations (assignments): 3 * 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.008872/2.634, allocations: 2.292 MB / 0.8695 GB, free: 13.16 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006815/2.634, allocations: 167.8 kB / 0.8697 GB, free: 13.04 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/2.634, allocations: 5.453 kB / 0.8697 GB, free: 13.03 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001763/2.635, allocations: 58.95 kB / 0.8698 GB, free: 12.98 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005802/2.635, allocations: 76.83 kB / 0.8698 GB, free: 12.93 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/2.637, allocations: 0.7642 MB / 0.8706 GB, free: 12.17 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/2.637, allocations: 0.7984 MB / 0.8714 GB, free: 11.34 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.431e-05/2.637, allocations: 36.14 kB / 0.8714 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.637, allocations: 7 kB / 0.8714 GB, free: 11.31 MB / 0.7169 GB Notification: Performance of Templates: time 0.04368/2.681, allocations: 29.95 MB / 0.9007 GB, free: 13.5 MB / 0.7481 GB make -j1 -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.makefile (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & ./ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1)