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 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo): time 0.8526/0.8526, allocations: 153.8 MB / 172.7 MB, free: 4.961 MB / 142.1 MB " [Timeout remaining time 179] Using package ThermoSysPro with version 4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004483/0.0004483, allocations: 15.97 kB / 249.8 MB, free: 4.473 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1782, allocations: 33.37 MB / 283.2 MB, free: 1.844 MB / 222.1 MB Notification: Automatically loaded package Complex 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.1.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.1.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestControlValve): time 1.876/2.054, allocations: 307.5 MB / 0.5769 GB, free: 15.88 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03899/2.093, allocations: 35.03 MB / 0.6111 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/2.094, allocations: 5.812 kB / 0.6111 GB, free: 14.09 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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.0006684/2.094, allocations: 184.5 kB / 0.6113 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004065/2.095, allocations: 166.1 kB / 0.6115 GB, free: 13.94 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 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 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 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 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 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 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 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.03173/2.127, allocations: 9.986 MB / 0.6212 GB, free: 8.145 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008408/2.127, allocations: 395 kB / 0.6216 GB, free: 7.758 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/2.128, allocations: 112.7 kB / 0.6217 GB, free: 7.652 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003747/2.128, allocations: 183.2 kB / 0.6219 GB, free: 7.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/2.128, allocations: 176.6 kB / 0.622 GB, free: 7.301 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/2.128, allocations: 20 kB / 0.6221 GB, free: 7.281 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04122/2.17, allocations: 18.01 MB / 0.6396 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001918/2.17, allocations: 67.77 kB / 0.6397 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002904/2.17, allocations: 167 kB / 0.6399 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02447/2.195, allocations: 8.548 MB / 0.6482 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/2.195, allocations: 4 kB / 0.6482 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.094e-06/2.195, allocations: 0 / 0.6482 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.948e-06/2.195, allocations: 0 / 0.6482 GB, free: 12.45 MB / 0.5137 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.004869/2.199, allocations: 1.508 MB / 0.6497 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/2.199, allocations: 8.031 kB / 0.6497 GB, free: 10.9 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.689e-05/2.2, allocations: 66.53 kB / 0.6498 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.588e-05/2.2, allocations: 43.72 kB / 0.6498 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/2.2, allocations: 232 kB / 0.65 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/2.2, allocations: 16.44 kB / 0.65 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/2.2, allocations: 20 kB / 0.6501 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/2.2, allocations: 331.4 kB / 0.6504 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/2.201, allocations: 3.281 kB / 0.6504 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.154e-05/2.201, allocations: 8 kB / 0.6504 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/2.201, allocations: 8 kB / 0.6504 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/2.201, allocations: 217.1 kB / 0.6506 GB, free: 9.922 MB / 0.5137 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.03495/2.236, allocations: 11.34 MB / 0.6617 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002407/2.236, allocations: 122.5 kB / 0.6618 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001258/2.236, allocations: 96.83 kB / 0.6619 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.146/2.382, allocations: 43.41 MB / 0.7043 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/2.382, allocations: 42.56 kB / 0.7043 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.144e-06/2.382, allocations: 0 / 0.7043 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001156/2.383, allocations: 421.5 kB / 0.7047 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/2.383, allocations: 55.41 kB / 0.7048 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004189/2.384, allocations: 356.5 kB / 0.7051 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/2.384, allocations: 29.7 kB / 0.7051 GB, free: 1.809 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/2.384, allocations: 180.7 kB / 0.7053 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.32e-05/2.384, allocations: 123.7 kB / 0.7054 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/2.384, allocations: 49.7 kB / 0.7055 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001621/2.384, allocations: 346.8 kB / 0.7058 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/2.384, allocations: 95.97 kB / 0.7059 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/2.385, allocations: 144.2 kB / 0.706 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/2.385, allocations: 253.6 kB / 0.7063 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/2.385, allocations: 0 / 0.7063 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000503/2.385, allocations: 350.4 kB / 0.7066 GB, free: 248 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/2.385, allocations: 9.406 kB / 0.7066 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/2.385, allocations: 1.125 kB / 0.7066 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000836/2.386, allocations: 142.2 kB / 0.7068 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.37e-05/2.386, allocations: 11.98 kB / 0.7068 GB, free: 84 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006227/2.387, allocations: 0.6123 MB / 0.7074 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/2.387, allocations: 31.77 kB / 0.7074 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/2.387, allocations: 11.98 kB / 0.7074 GB, free: 15.4 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.0001834/2.387, allocations: 162.9 kB / 0.7076 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/2.387, allocations: 27.81 kB / 0.7076 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000912/2.388, allocations: 0.642 MB / 0.7082 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004453/2.389, allocations: 255.6 kB / 0.7085 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/2.389, allocations: 0 / 0.7085 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/2.389, allocations: 0.8438 kB / 0.7085 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/2.39, allocations: 0.7923 MB / 0.7092 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/2.39, allocations: 0 / 0.7092 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.351e-05/2.39, allocations: 27.92 kB / 0.7093 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003544/2.39, allocations: 104.8 kB / 0.7094 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/2.39, allocations: 11.94 kB / 0.7094 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005848/2.391, allocations: 0.6309 MB / 0.71 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/2.391, allocations: 4.062 kB / 0.71 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/2.392, allocations: 389.5 kB / 0.7104 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.012e-05/2.392, allocations: 40.58 kB / 0.7104 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/2.392, allocations: 16.88 kB / 0.7104 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/2.392, allocations: 4 kB / 0.7104 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/2.392, allocations: 15.92 kB / 0.7104 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/2.392, allocations: 5.594 kB / 0.7104 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003816/2.392, allocations: 335.1 kB / 0.7108 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/2.392, allocations: 0 / 0.7108 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003302/2.396, allocations: 1.224 MB / 0.712 GB, free: 10.56 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.006315/2.402, allocations: 2.581 MB / 0.7145 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000719/2.403, allocations: 264.8 kB / 0.7147 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/2.403, allocations: 1.406 kB / 0.7147 GB, free: 7.719 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000293/2.403, allocations: 110 kB / 0.7148 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007854/2.404, allocations: 127.5 kB / 0.715 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005853/2.41, allocations: 3.744 MB / 0.7186 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004494/2.41, allocations: 0.804 MB / 0.7194 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001309/2.41, allocations: 33.09 kB / 0.7194 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/2.41, allocations: 127.4 kB / 0.7196 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of SimCode: time 1.031e-06/2.41, allocations: 0 / 0.7196 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1016/2.512, allocations: 49.57 MB / 0.768 GB, free: 1.738 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/17.85, allocations: 14.58 kB / 0.768 GB, free: 1.73 MB / 0.6231 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve_fmu --startTime=0 --stopTime=80 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.981962194899097] Failed to read output from testmodel.py, exit status != 0: 18.37139319209382 18.381599276 16.184538135 Calling exit ...