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.8239/0.8239, allocations: 153.8 MB / 173.4 MB, free: 4.867 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004795/0.0004795, allocations: 15.98 kB / 250.6 MB, free: 4.363 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1652, allocations: 33.35 MB / 283.9 MB, free: 1.727 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.777/1.942, allocations: 307.2 MB / 0.5773 GB, free: 17.39 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03146/1.973, allocations: 30.79 MB / 0.6074 GB, free: 2.668 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003193/1.974, allocations: 2.781 kB / 0.6074 GB, free: 2.668 MB / 478.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.0005264/1.974, allocations: 167.9 kB / 0.6075 GB, free: 2.613 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/1.974, allocations: 163.7 kB / 0.6077 GB, free: 2.531 MB / 478.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.02782/2.002, allocations: 9.848 MB / 0.6173 GB, free: 12.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008029/2.003, allocations: 398.2 kB / 0.6177 GB, free: 12.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/2.003, allocations: 104.8 kB / 0.6178 GB, free: 12 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/2.004, allocations: 179.3 kB / 0.618 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/2.004, allocations: 179.3 kB / 0.6181 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.204e-05/2.004, allocations: 23.98 kB / 0.6182 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03464/2.038, allocations: 17.72 MB / 0.6355 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001826/2.039, allocations: 71.7 kB / 0.6355 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002233/2.039, allocations: 135.3 kB / 0.6357 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02172/2.061, allocations: 8.555 MB / 0.644 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/2.061, allocations: 4.938 kB / 0.644 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/2.061, allocations: 0 / 0.644 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.809e-06/2.061, allocations: 0 / 0.644 GB, free: 1.098 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.00439/2.065, allocations: 1.5 MB / 0.6455 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/2.065, allocations: 12.03 kB / 0.6455 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.256e-05/2.065, allocations: 8.375 kB / 0.6455 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.775e-05/2.065, allocations: 62.53 kB / 0.6456 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.276e-05/2.065, allocations: 43.72 kB / 0.6456 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000357/2.066, allocations: 232.6 kB / 0.6458 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/2.066, allocations: 12.44 kB / 0.6458 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/2.066, allocations: 28.75 kB / 0.6459 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005061/2.066, allocations: 323.4 kB / 0.6462 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/2.066, allocations: 0.9844 kB / 0.6462 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/2.066, allocations: 8 kB / 0.6462 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/2.066, allocations: 15.98 kB / 0.6462 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/2.067, allocations: 209.1 kB / 0.6464 GB, free: 14.57 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.03484/2.101, allocations: 10.94 MB / 0.6571 GB, free: 3.559 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/2.102, allocations: 134.5 kB / 0.6572 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001334/2.102, allocations: 85.86 kB / 0.6573 GB, free: 3.332 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1436/2.245, allocations: 43.59 MB / 0.6999 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/2.245, allocations: 34.56 kB / 0.6999 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.084e-06/2.245, allocations: 3.938 kB / 0.6999 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001204/2.247, allocations: 420.3 kB / 0.7003 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/2.247, allocations: 51.41 kB / 0.7003 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/2.247, allocations: 364.4 kB / 0.7007 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/2.247, allocations: 33.7 kB / 0.7007 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/2.247, allocations: 180.7 kB / 0.7009 GB, free: 6.594 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/2.247, allocations: 122.9 kB / 0.701 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.469e-05/2.247, allocations: 45.7 kB / 0.7011 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001605/2.248, allocations: 351.6 kB / 0.7014 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/2.248, allocations: 91.97 kB / 0.7015 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/2.248, allocations: 144.9 kB / 0.7016 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/2.248, allocations: 252.8 kB / 0.7019 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.248, allocations: 0 / 0.7019 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005253/2.249, allocations: 349.5 kB / 0.7022 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/2.249, allocations: 8 kB / 0.7022 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/2.249, allocations: 0 / 0.7022 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008393/2.25, allocations: 137.3 kB / 0.7023 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.511e-05/2.25, allocations: 13.58 kB / 0.7023 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006284/2.25, allocations: 0.6119 MB / 0.7029 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/2.251, allocations: 27.73 kB / 0.703 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/2.251, allocations: 11.98 kB / 0.703 GB, free: 4.371 MB / 0.5606 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.0001696/2.251, allocations: 157.9 kB / 0.7031 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/2.251, allocations: 33.12 kB / 0.7032 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008844/2.252, allocations: 0.6354 MB / 0.7038 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004506/2.252, allocations: 259.1 kB / 0.704 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/2.252, allocations: 3.938 kB / 0.704 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/2.252, allocations: 7.984 kB / 0.704 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/2.253, allocations: 0.7498 MB / 0.7048 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/2.253, allocations: 0 / 0.7048 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.419e-05/2.253, allocations: 23.94 kB / 0.7048 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003691/2.254, allocations: 102.8 kB / 0.7049 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/2.254, allocations: 16.86 kB / 0.7049 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005851/2.254, allocations: 0.6402 MB / 0.7055 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/2.254, allocations: 0 / 0.7055 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005573/2.255, allocations: 391.2 kB / 0.7059 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.364e-05/2.255, allocations: 39.8 kB / 0.7059 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.296e-05/2.255, allocations: 11.89 kB / 0.706 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/2.255, allocations: 4 kB / 0.706 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/2.255, allocations: 8.047 kB / 0.706 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/2.255, allocations: 11.98 kB / 0.706 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003835/2.256, allocations: 331.1 kB / 0.7063 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/2.256, allocations: 1.781 kB / 0.7063 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003296/2.259, allocations: 1.228 MB / 0.7075 GB, free: 15.57 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.006805/2.266, allocations: 2.58 MB / 0.71 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000781/2.266, allocations: 262.1 kB / 0.7103 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/2.266, allocations: 0 / 0.7103 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003096/2.267, allocations: 114 kB / 0.7104 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008211/2.268, allocations: 127.1 kB / 0.7105 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006613/2.274, allocations: 3.724 MB / 0.7141 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/2.274, allocations: 202 kB / 0.7143 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001346/2.275, allocations: 39.81 kB / 0.7144 GB, free: 8.414 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/2.275, allocations: 124.8 kB / 0.7145 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of SimCode: time 6.51e-07/2.275, allocations: 0 / 0.7145 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09411/2.369, allocations: 49.73 MB / 0.7631 GB, free: 7.301 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.21/17.58, allocations: 13.45 kB / 0.7631 GB, free: 7.297 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.83559242996853] Failed to read output from testmodel.py, exit status != 0: 18.16044458502438 18.171940755 16.1087146 Calling exit ...