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.7783/0.7783, allocations: 153.8 MB / 173.5 MB, free: 4.945 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.000462/0.000462, allocations: 19.97 kB / 250.6 MB, free: 4.465 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1515, allocations: 33.35 MB / 284 MB, free: 1.836 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.644/1.795, allocations: 307.4 MB / 0.5775 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03098/1.826, allocations: 35.03 MB / 0.6117 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/1.826, allocations: 4.5 kB / 0.6117 GB, free: 14.24 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.0005246/1.827, allocations: 188.6 kB / 0.6119 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002806/1.827, allocations: 170.5 kB / 0.6121 GB, free: 14.08 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.02457/1.852, allocations: 9.991 MB / 0.6218 GB, free: 8.156 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006676/1.852, allocations: 388.2 kB / 0.6222 GB, free: 7.777 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/1.853, allocations: 112.8 kB / 0.6223 GB, free: 7.668 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002833/1.853, allocations: 175.3 kB / 0.6225 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/1.853, allocations: 175.3 kB / 0.6226 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/1.853, allocations: 17.28 kB / 0.6226 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03153/1.885, allocations: 18.01 MB / 0.6402 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001476/1.885, allocations: 79.69 kB / 0.6403 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002144/1.885, allocations: 151.1 kB / 0.6405 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02008/1.905, allocations: 8.552 MB / 0.6488 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/1.905, allocations: 0 / 0.6488 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.553e-06/1.905, allocations: 4 kB / 0.6488 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.416e-06/1.905, allocations: 0 / 0.6488 GB, free: 12.48 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.004147/1.909, allocations: 1.508 MB / 0.6503 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/1.909, allocations: 12.03 kB / 0.6503 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.213e-05/1.909, allocations: 8.375 kB / 0.6503 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.453e-05/1.909, allocations: 67.47 kB / 0.6504 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.655e-05/1.91, allocations: 39.72 kB / 0.6504 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/1.91, allocations: 235.9 kB / 0.6506 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/1.91, allocations: 20.44 kB / 0.6506 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.91e-05/1.91, allocations: 20 kB / 0.6507 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004579/1.91, allocations: 319.4 kB / 0.651 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/1.91, allocations: 3.938 kB / 0.651 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/1.91, allocations: 8 kB / 0.651 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/1.91, allocations: 15.98 kB / 0.651 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/1.911, allocations: 210.7 kB / 0.6512 GB, free: 9.938 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.03467/1.945, allocations: 11.34 MB / 0.6623 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/1.946, allocations: 126.5 kB / 0.6624 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/1.946, allocations: 92.83 kB / 0.6625 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1443/2.09, allocations: 43.41 MB / 0.7049 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/2.09, allocations: 34.56 kB / 0.7049 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 1.884e-06/2.09, allocations: 0 / 0.7049 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.001149/2.091, allocations: 429.9 kB / 0.7053 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/2.091, allocations: 55.39 kB / 0.7054 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004257/2.092, allocations: 360.4 kB / 0.7057 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/2.092, allocations: 30.64 kB / 0.7057 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/2.092, allocations: 192.7 kB / 0.7059 GB, free: 1.629 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.794e-05/2.092, allocations: 119 kB / 0.706 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.092e-05/2.092, allocations: 53.62 kB / 0.7061 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001596/2.092, allocations: 346.8 kB / 0.7064 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/2.092, allocations: 95.95 kB / 0.7065 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/2.093, allocations: 136.2 kB / 0.7066 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/2.093, allocations: 249.7 kB / 0.7069 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/2.093, allocations: 0 / 0.7069 GB, free: 0.6055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005152/2.093, allocations: 345.5 kB / 0.7072 GB, free: 264 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/2.093, allocations: 12.66 kB / 0.7072 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/2.093, allocations: 0 / 0.7072 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008099/2.094, allocations: 146.1 kB / 0.7074 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.752e-05/2.094, allocations: 11.94 kB / 0.7074 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006116/2.095, allocations: 0.62 MB / 0.708 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/2.095, allocations: 23.73 kB / 0.708 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/2.095, allocations: 9.953 kB / 0.708 GB, free: 15.41 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.0001702/2.095, allocations: 162.6 kB / 0.7082 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.932e-05/2.095, allocations: 27.81 kB / 0.7082 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008718/2.096, allocations: 0.6367 MB / 0.7088 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004374/2.097, allocations: 258.3 kB / 0.7091 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/2.097, allocations: 0 / 0.7091 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/2.097, allocations: 4 kB / 0.7091 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/2.098, allocations: 0.7947 MB / 0.7098 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/2.098, allocations: 0.9375 kB / 0.7098 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.918e-05/2.098, allocations: 16.56 kB / 0.7099 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003699/2.098, allocations: 110.5 kB / 0.71 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/2.098, allocations: 15.88 kB / 0.71 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005582/2.099, allocations: 0.6304 MB / 0.7106 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/2.099, allocations: 0.6875 kB / 0.7106 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005501/2.099, allocations: 393.6 kB / 0.711 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.411e-05/2.099, allocations: 47.72 kB / 0.711 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/2.099, allocations: 11.89 kB / 0.711 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/2.1, allocations: 4 kB / 0.711 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/2.1, allocations: 13.58 kB / 0.711 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/2.1, allocations: 0.5 kB / 0.711 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003787/2.1, allocations: 335.1 kB / 0.7114 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9.1e-08/2.1, allocations: 4 kB / 0.7114 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003096/2.103, allocations: 1.224 MB / 0.7126 GB, free: 10.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.006418/2.11, allocations: 2.586 MB / 0.7151 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007114/2.11, allocations: 261.6 kB / 0.7153 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.11, allocations: 0 / 0.7153 GB, free: 7.727 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000305/2.111, allocations: 111.8 kB / 0.7154 GB, free: 7.621 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007966/2.111, allocations: 129.1 kB / 0.7156 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005687/2.117, allocations: 3.747 MB / 0.7192 GB, free: 3.648 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004396/2.117, allocations: 0.8055 MB / 0.72 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001123/2.118, allocations: 31.97 kB / 0.72 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/2.118, allocations: 119.4 kB / 0.7202 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/2.118, allocations: 0 / 0.7202 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08478/2.203, allocations: 49.61 MB / 0.7686 GB, free: 1.738 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/16.64, allocations: 12.69 kB / 0.7686 GB, free: 1.734 MB / 0.6231 GB " [Timeout remaining time 643] (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: 18.82141612994019] Failed to read output from testmodel.py, exit status != 0: 17.1504601839697 17.160516577 15.253025631 Calling exit ...