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.5857/0.5857, allocations: 120.4 MB / 139.5 MB, free: 12.98 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 2.985e-06/2.985e-06, allocations: 0 / 216.7 MB, free: 8.617 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.201e-05/2.5e-05, allocations: 2.281 kB / 216.7 MB, free: 8.613 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.05/1.05, allocations: 254.3 MB / 471 MB, free: 8.832 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.2944/1.344, allocations: 30.81 MB / 0.4901 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000239/1.344, allocations: 4.562 kB / 0.4901 GB, free: 0.9219 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.0005675/1.345, allocations: 158.2 kB / 0.4902 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/1.345, allocations: 180.4 kB / 0.4904 GB, free: 0.9062 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.02348/1.369, allocations: 9.93 MB / 0.5001 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007762/1.369, allocations: 408.4 kB / 0.5005 GB, free: 14.77 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/1.37, allocations: 122.2 kB / 0.5006 GB, free: 14.7 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003819/1.37, allocations: 245.5 kB / 0.5009 GB, free: 14.56 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/1.37, allocations: 143.8 kB / 0.501 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/1.37, allocations: 17.97 kB / 0.501 GB, free: 14.5 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02812/1.398, allocations: 16.85 MB / 0.5175 GB, free: 2.5 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000214/1.399, allocations: 78.36 kB / 0.5175 GB, free: 2.426 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/1.399, allocations: 104.2 kB / 0.5176 GB, free: 2.328 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02271/1.422, allocations: 10.91 MB / 0.5283 GB, free: 7.914 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/1.422, allocations: 0.5938 kB / 0.5283 GB, free: 7.914 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.422, allocations: 0 / 0.5283 GB, free: 7.914 MB / 474.7 MB Notification: Performance of Transformations before backend: time 8.526e-06/1.422, allocations: 0.5312 kB / 0.5283 GB, free: 7.914 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.004318/1.426, allocations: 1.509 MB / 0.5298 GB, free: 6.375 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/1.426, allocations: 12.03 kB / 0.5298 GB, free: 6.363 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.446e-05/1.426, allocations: 63.56 kB / 0.5298 GB, free: 6.293 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/1.426, allocations: 49.34 kB / 0.5299 GB, free: 6.246 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/1.426, allocations: 227.4 kB / 0.5301 GB, free: 6.004 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/1.426, allocations: 13.91 kB / 0.5301 GB, free: 5.988 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/1.426, allocations: 23.94 kB / 0.5301 GB, free: 5.965 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/1.427, allocations: 325.1 kB / 0.5305 GB, free: 5.629 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/1.427, allocations: 3.938 kB / 0.5305 GB, free: 5.625 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/1.427, allocations: 8 kB / 0.5305 GB, free: 5.617 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/1.427, allocations: 19.92 kB / 0.5305 GB, free: 5.598 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/1.427, allocations: 206.2 kB / 0.5307 GB, free: 5.395 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.445, allocations: 10.92 MB / 0.5414 GB, free: 10.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/1.445, allocations: 134.5 kB / 0.5415 GB, free: 10.43 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.876e-05/1.445, allocations: 89.95 kB / 0.5416 GB, free: 10.34 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07107/1.516, allocations: 43.57 MB / 0.5841 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/1.516, allocations: 42.56 kB / 0.5842 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 2.966e-06/1.516, allocations: 0 / 0.5842 GB, free: 14.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=34): time 0.0009216/1.517, allocations: 427.4 kB / 0.5846 GB, free: 14.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/1.517, allocations: 57.22 kB / 0.5846 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/1.518, allocations: 361.5 kB / 0.585 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/1.518, allocations: 25.7 kB / 0.585 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/1.518, allocations: 188.7 kB / 0.5852 GB, free: 13.62 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/1.518, allocations: 120.3 kB / 0.5853 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.588e-05/1.518, allocations: 45.7 kB / 0.5853 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001169/1.518, allocations: 350.7 kB / 0.5857 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.18e-05/1.518, allocations: 93.28 kB / 0.5857 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/1.518, allocations: 141.6 kB / 0.5859 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/1.518, allocations: 248.5 kB / 0.5861 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/1.518, allocations: 4 kB / 0.5861 GB, free: 12.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003249/1.519, allocations: 342.7 kB / 0.5865 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/1.519, allocations: 4.75 kB / 0.5865 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/1.519, allocations: 0 / 0.5865 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005103/1.519, allocations: 141.3 kB / 0.5866 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.536e-05/1.519, allocations: 19.92 kB / 0.5866 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004044/1.52, allocations: 0.6121 MB / 0.5872 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.753e-05/1.52, allocations: 27.73 kB / 0.5872 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/1.52, allocations: 12.55 kB / 0.5872 GB, free: 11.42 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.0001246/1.52, allocations: 159.2 kB / 0.5874 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/1.52, allocations: 39.7 kB / 0.5874 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005661/1.521, allocations: 0.6421 MB / 0.5881 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002336/1.521, allocations: 251.7 kB / 0.5883 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.521, allocations: 0 / 0.5883 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/1.521, allocations: 3.984 kB / 0.5883 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006829/1.521, allocations: 0.7606 MB / 0.589 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/1.521, allocations: 1.219 kB / 0.5891 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.721e-05/1.522, allocations: 16.56 kB / 0.5891 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000228/1.522, allocations: 104.8 kB / 0.5892 GB, free: 9.312 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/1.522, allocations: 11.98 kB / 0.5892 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003236/1.522, allocations: 0.6438 MB / 0.5898 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.522, allocations: 1.406 kB / 0.5898 GB, free: 8.633 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003026/1.522, allocations: 376 kB / 0.5902 GB, free: 8.246 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/1.522, allocations: 47.69 kB / 0.5902 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/1.522, allocations: 11.89 kB / 0.5902 GB, free: 8.188 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.631e-05/1.523, allocations: 5 kB / 0.5902 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/1.523, allocations: 15.86 kB / 0.5902 GB, free: 8.168 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/1.523, allocations: 12.05 kB / 0.5903 GB, free: 8.156 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002392/1.523, allocations: 331.1 kB / 0.5906 GB, free: 7.836 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/1.523, allocations: 0.6562 kB / 0.5906 GB, free: 7.836 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002973/1.526, allocations: 1.22 MB / 0.5918 GB, free: 6.613 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.004332/1.53, allocations: 2.744 MB / 0.5944 GB, free: 4.074 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004654/1.531, allocations: 261.9 kB / 0.5947 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/1.531, allocations: 0 / 0.5947 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001532/1.531, allocations: 117 kB / 0.5948 GB, free: 3.699 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/1.531, allocations: 130 kB / 0.5949 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/1.535, allocations: 3.732 MB / 0.5986 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/1.535, allocations: 197.1 kB / 0.5988 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001063/1.535, allocations: 40.64 kB / 0.5988 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/1.536, allocations: 124.5 kB / 0.5989 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of SimCode: time 8.81e-07/1.536, allocations: 0 / 0.5989 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07298/1.608, allocations: 50.33 MB / 0.6481 GB, free: 13.39 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/12.09, allocations: 18.42 kB / 0.6481 GB, free: 13.38 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 & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.032 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.968814309686422] Failed to read output from testmodel.py, exit status != 0: 12.480745354667306 12.616215199 11.192673059 Calling exit ...