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.5809/0.5809, allocations: 120.4 MB / 139.5 MB, free: 13.01 MB / 138.7 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 3.386e-06/3.386e-06, allocations: 0 / 216.7 MB, free: 8.57 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.366e-05/2.704e-05, allocations: 2.281 kB / 216.7 MB, free: 8.566 MB / 202.7 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.009/1.009, allocations: 254.3 MB / 471.1 MB, free: 8.805 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.265/1.274, allocations: 30.8 MB / 0.4901 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/1.274, allocations: 3.312 kB / 0.4901 GB, free: 0.8711 MB / 442.7 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.0004951/1.274, allocations: 157.9 kB / 0.4903 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002734/1.275, allocations: 178.2 kB / 0.4904 GB, free: 0.8555 MB / 442.7 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.02342/1.298, allocations: 9.93 MB / 0.5001 GB, free: 14.86 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006466/1.299, allocations: 406 kB / 0.5005 GB, free: 14.71 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002077/1.299, allocations: 113.2 kB / 0.5006 GB, free: 14.66 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003292/1.299, allocations: 246.8 kB / 0.5009 GB, free: 14.51 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001793/1.299, allocations: 142.8 kB / 0.501 GB, free: 14.46 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/1.299, allocations: 18.47 kB / 0.501 GB, free: 14.46 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02553/1.325, allocations: 16.86 MB / 0.5175 GB, free: 2.453 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/1.325, allocations: 70.44 kB / 0.5176 GB, free: 2.391 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/1.325, allocations: 106.7 kB / 0.5177 GB, free: 2.289 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02057/1.346, allocations: 10.92 MB / 0.5283 GB, free: 7.871 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/1.346, allocations: 0 / 0.5283 GB, free: 7.871 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.346, allocations: 0 / 0.5283 GB, free: 7.871 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.155e-06/1.346, allocations: 0.9062 kB / 0.5283 GB, free: 7.871 MB / 474.7 MB 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.003749/1.35, allocations: 1.512 MB / 0.5298 GB, free: 6.324 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.35, allocations: 13.84 kB / 0.5298 GB, free: 6.312 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.853e-05/1.35, allocations: 62.53 kB / 0.5299 GB, free: 6.242 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.808e-05/1.35, allocations: 40.22 kB / 0.5299 GB, free: 6.203 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/1.35, allocations: 233.4 kB / 0.5301 GB, free: 5.957 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/1.35, allocations: 14.09 kB / 0.5301 GB, free: 5.941 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/1.35, allocations: 20 kB / 0.5302 GB, free: 5.922 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003235/1.35, allocations: 319.8 kB / 0.5305 GB, free: 5.59 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/1.35, allocations: 1.625 kB / 0.5305 GB, free: 5.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/1.35, allocations: 13.31 kB / 0.5305 GB, free: 5.578 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/1.35, allocations: 19.86 kB / 0.5305 GB, free: 5.559 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/1.351, allocations: 209.8 kB / 0.5307 GB, free: 5.352 MB / 474.7 MB 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.01796/1.369, allocations: 10.92 MB / 0.5414 GB, free: 10.53 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/1.369, allocations: 126.5 kB / 0.5415 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.778e-05/1.369, allocations: 96.77 kB / 0.5416 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07069/1.44, allocations: 43.58 MB / 0.5841 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/1.44, allocations: 38.56 kB / 0.5842 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.996e-06/1.44, allocations: 0 / 0.5842 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0008739/1.44, allocations: 423.4 kB / 0.5846 GB, free: 14.22 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/1.44, allocations: 59.34 kB / 0.5846 GB, free: 14.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/1.441, allocations: 357.5 kB / 0.585 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/1.441, allocations: 29.7 kB / 0.585 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/1.441, allocations: 187 kB / 0.5852 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.548e-05/1.441, allocations: 115.7 kB / 0.5853 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/1.441, allocations: 45.7 kB / 0.5853 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.915e-05/1.441, allocations: 346.8 kB / 0.5857 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.111e-05/1.441, allocations: 103.9 kB / 0.5858 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/1.441, allocations: 136.2 kB / 0.5859 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/1.442, allocations: 252.5 kB / 0.5861 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/1.442, allocations: 0 / 0.5861 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000341/1.442, allocations: 337.9 kB / 0.5865 GB, free: 12.22 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/1.442, allocations: 8.75 kB / 0.5865 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/1.442, allocations: 0.5625 kB / 0.5865 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005314/1.442, allocations: 145.3 kB / 0.5866 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.25e-05/1.443, allocations: 11.94 kB / 0.5866 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003853/1.443, allocations: 0.6204 MB / 0.5872 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.115e-05/1.443, allocations: 24.3 kB / 0.5872 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/1.443, allocations: 8.062 kB / 0.5872 GB, free: 11.38 MB / 0.5261 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.0001343/1.443, allocations: 166.4 kB / 0.5874 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/1.443, allocations: 39.7 kB / 0.5874 GB, free: 11.17 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/1.444, allocations: 0.6383 MB / 0.5881 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002342/1.444, allocations: 259 kB / 0.5883 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.444, allocations: 0.5625 kB / 0.5883 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/1.444, allocations: 4 kB / 0.5883 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006913/1.445, allocations: 0.7526 MB / 0.5891 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/1.445, allocations: 1.781 kB / 0.5891 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/1.445, allocations: 19.98 kB / 0.5891 GB, free: 9.371 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002123/1.445, allocations: 104.8 kB / 0.5892 GB, free: 9.266 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/1.445, allocations: 8.938 kB / 0.5892 GB, free: 9.258 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003005/1.445, allocations: 0.6429 MB / 0.5898 GB, free: 8.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/1.445, allocations: 4.031 kB / 0.5898 GB, free: 8.586 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000375/1.446, allocations: 377 kB / 0.5902 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/1.446, allocations: 47.69 kB / 0.5902 GB, free: 8.152 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/1.446, allocations: 7.953 kB / 0.5902 GB, free: 8.145 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/1.446, allocations: 4 kB / 0.5902 GB, free: 8.141 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/1.446, allocations: 19.97 kB / 0.5903 GB, free: 8.121 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/1.446, allocations: 6.188 kB / 0.5903 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002413/1.446, allocations: 339.1 kB / 0.5906 GB, free: 7.789 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/1.446, allocations: 0.6562 kB / 0.5906 GB, free: 7.789 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002848/1.449, allocations: 1.224 MB / 0.5918 GB, free: 6.562 MB / 0.5261 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.004556/1.453, allocations: 2.744 MB / 0.5945 GB, free: 4.027 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005513/1.454, allocations: 257.5 kB / 0.5947 GB, free: 3.77 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/1.454, allocations: 0 / 0.5947 GB, free: 3.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001471/1.454, allocations: 113 kB / 0.5948 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/1.455, allocations: 131.1 kB / 0.5949 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/1.459, allocations: 3.736 MB / 0.5986 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001313/1.459, allocations: 201.7 kB / 0.5988 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.214e-05/1.459, allocations: 34.5 kB / 0.5988 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/1.459, allocations: 132.4 kB / 0.5989 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of SimCode: time 1.192e-06/1.459, allocations: 0 / 0.5989 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06838/1.527, allocations: 50.33 MB / 0.6481 GB, free: 13.34 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/11.95, allocations: 16.77 kB / 0.6481 GB, free: 13.33 MB / 0.5886 GB " [Timeout remaining time 648] (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: 13.718203629367054] Failed to read output from testmodel.py, exit status != 0: 12.324939729645848 12.472736944 11.125083974 Calling exit ...