Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.8075/0.8075, allocations: 153.8 MB / 172.7 MB, free: 4.898 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.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0005139/0.0005139, allocations: 11.97 kB / 249.7 MB, free: 4.457 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.1725, allocations: 33.35 MB / 283.1 MB, free: 1.762 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.Book.SimpleExamples.PressureLoss.TestControlValve): time 1.836/2.008, allocations: 307.5 MB / 0.5768 GB, free: 17.37 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03133/2.04, allocations: 30.82 MB / 0.6069 GB, free: 2.711 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000328/2.04, allocations: 3.156 kB / 0.6069 GB, free: 2.711 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.0005536/2.04, allocations: 155 kB / 0.607 GB, free: 2.664 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002853/2.041, allocations: 173.7 kB / 0.6072 GB, free: 2.574 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.02651/2.067, allocations: 9.843 MB / 0.6168 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007769/2.068, allocations: 399.7 kB / 0.6172 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003275/2.068, allocations: 112.7 kB / 0.6173 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/2.069, allocations: 175.3 kB / 0.6174 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/2.069, allocations: 175 kB / 0.6176 GB, free: 11.63 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/2.069, allocations: 16 kB / 0.6176 GB, free: 11.62 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03441/2.104, allocations: 16.83 MB / 0.6341 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001722/2.104, allocations: 79.69 kB / 0.6341 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002062/2.104, allocations: 127.3 kB / 0.6343 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02049/2.124, allocations: 8.548 MB / 0.6426 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/2.124, allocations: 4 kB / 0.6426 GB, free: 2 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.495e-06/2.124, allocations: 0.8438 kB / 0.6426 GB, free: 2 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.866e-06/2.124, allocations: 0 / 0.6426 GB, free: 2 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.004081/2.128, allocations: 1.512 MB / 0.6441 GB, free: 460 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/2.129, allocations: 8.031 kB / 0.6441 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.389e-05/2.129, allocations: 62.53 kB / 0.6441 GB, free: 380 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.048e-05/2.129, allocations: 43.72 kB / 0.6442 GB, free: 336 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/2.129, allocations: 232 kB / 0.6444 GB, free: 80 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.975e-05/2.129, allocations: 13.69 kB / 0.6444 GB, free: 68 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/2.129, allocations: 24 kB / 0.6444 GB, free: 44 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/2.13, allocations: 320.2 kB / 0.6448 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/2.13, allocations: 4 kB / 0.6448 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/2.13, allocations: 16.73 kB / 0.6448 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/2.13, allocations: 15.98 kB / 0.6448 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/2.13, allocations: 201.2 kB / 0.645 GB, free: 15.47 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.03581/2.166, allocations: 10.94 MB / 0.6557 GB, free: 4.465 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/2.166, allocations: 126.5 kB / 0.6558 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/2.166, allocations: 84.83 kB / 0.6559 GB, free: 4.246 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1466/2.313, allocations: 43.59 MB / 0.6984 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/2.313, allocations: 35.5 kB / 0.6985 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.404e-06/2.313, allocations: 0 / 0.6985 GB, free: 8.574 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001147/2.314, allocations: 433.8 kB / 0.6989 GB, free: 8.145 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/2.314, allocations: 55.39 kB / 0.6989 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/2.314, allocations: 360.4 kB / 0.6993 GB, free: 7.719 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/2.314, allocations: 25.7 kB / 0.6993 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/2.315, allocations: 192.7 kB / 0.6995 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.767e-05/2.315, allocations: 118.9 kB / 0.6996 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/2.315, allocations: 41.7 kB / 0.6996 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001659/2.315, allocations: 350.8 kB / 0.7 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/2.315, allocations: 92.91 kB / 0.7001 GB, free: 6.891 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/2.315, allocations: 140.2 kB / 0.7002 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/2.316, allocations: 253.5 kB / 0.7004 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/2.316, allocations: 0 / 0.7004 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005388/2.316, allocations: 349.7 kB / 0.7008 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/2.316, allocations: 8 kB / 0.7008 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/2.316, allocations: 0 / 0.7008 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007853/2.317, allocations: 136.6 kB / 0.7009 GB, free: 5.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.359e-05/2.317, allocations: 23.92 kB / 0.7009 GB, free: 5.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005854/2.318, allocations: 0.6046 MB / 0.7015 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/2.318, allocations: 32.48 kB / 0.7016 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/2.318, allocations: 7.984 kB / 0.7016 GB, free: 5.289 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.0001702/2.318, allocations: 161.7 kB / 0.7017 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/2.318, allocations: 35.77 kB / 0.7017 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008728/2.319, allocations: 0.6375 MB / 0.7024 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004289/2.319, allocations: 258.3 kB / 0.7026 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/2.319, allocations: 0 / 0.7026 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/2.319, allocations: 5.297 kB / 0.7026 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/2.32, allocations: 0.7493 MB / 0.7034 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/2.32, allocations: 8 kB / 0.7034 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.723e-05/2.32, allocations: 16 kB / 0.7034 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003455/2.321, allocations: 111.8 kB / 0.7035 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/2.321, allocations: 8.922 kB / 0.7035 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005462/2.321, allocations: 0.6392 MB / 0.7041 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/2.321, allocations: 0.8438 kB / 0.7041 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/2.322, allocations: 393.6 kB / 0.7045 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/2.322, allocations: 47.69 kB / 0.7045 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/2.322, allocations: 11.89 kB / 0.7045 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/2.322, allocations: 4 kB / 0.7046 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/2.322, allocations: 7.984 kB / 0.7046 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/2.322, allocations: 4.5 kB / 0.7046 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003711/2.323, allocations: 339.1 kB / 0.7049 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/2.323, allocations: 0 / 0.7049 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002965/2.326, allocations: 1.222 MB / 0.7061 GB, free: 488 kB / 0.5606 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.00641/2.332, allocations: 2.579 MB / 0.7086 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006611/2.333, allocations: 265.4 kB / 0.7089 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/2.333, allocations: 8 kB / 0.7089 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002882/2.333, allocations: 99.89 kB / 0.709 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/2.334, allocations: 128.4 kB / 0.7091 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005691/2.339, allocations: 3.733 MB / 0.7127 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/2.34, allocations: 199 kB / 0.7129 GB, free: 9.359 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001252/2.34, allocations: 38.22 kB / 0.7129 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/2.34, allocations: 123.4 kB / 0.7131 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of SimCode: time 8.02e-07/2.34, allocations: 0 / 0.7131 GB, free: 9.203 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09845/2.438, allocations: 50.04 MB / 0.7619 GB, free: 7.902 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.34/16.78, allocations: 11.31 kB / 0.7619 GB, free: 7.895 MB / 0.6231 GB " [Timeout remaining time 643] (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve_fmu --startTime=0 --stopTime=80 --stepSize=0.032 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestControlValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestControlValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.797360938973725] Failed to read output from testmodel.py, exit status != 0: 17.285791920032352 17.296199029 15.169316135 Calling exit ...