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.8585/0.8585, allocations: 153.8 MB / 172.7 MB, free: 4.965 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.0004985/0.0004985, allocations: 11.97 kB / 249.8 MB, free: 4.508 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.174/0.1745, allocations: 33.36 MB / 283.2 MB, free: 1.832 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.794/1.968, allocations: 307.4 MB / 0.5768 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03314/2.002, allocations: 35.04 MB / 0.611 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002953/2.002, allocations: 2.938 kB / 0.611 GB, free: 13.98 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.0005556/2.002, allocations: 187.3 kB / 0.6111 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003244/2.003, allocations: 166 kB / 0.6113 GB, free: 13.83 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.02968/2.032, allocations: 9.99 MB / 0.6211 GB, free: 7.871 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008853/2.033, allocations: 386.3 kB / 0.6214 GB, free: 7.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/2.034, allocations: 112.7 kB / 0.6215 GB, free: 7.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/2.034, allocations: 175.3 kB / 0.6217 GB, free: 7.211 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003165/2.034, allocations: 183.3 kB / 0.6219 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/2.034, allocations: 16 kB / 0.6219 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0354/2.07, allocations: 18 MB / 0.6395 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001672/2.07, allocations: 75.7 kB / 0.6396 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002483/2.07, allocations: 159.1 kB / 0.6397 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02164/2.092, allocations: 8.548 MB / 0.6481 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/2.092, allocations: 0 / 0.6481 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.443e-06/2.092, allocations: 4 kB / 0.6481 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.097e-06/2.092, allocations: 0 / 0.6481 GB, free: 12.19 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.004724/2.096, allocations: 1.516 MB / 0.6495 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/2.097, allocations: 9.062 kB / 0.6495 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/2.097, allocations: 66.53 kB / 0.6496 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.102e-05/2.097, allocations: 39.72 kB / 0.6496 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/2.097, allocations: 236 kB / 0.6499 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/2.097, allocations: 13.19 kB / 0.6499 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/2.097, allocations: 24 kB / 0.6499 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004887/2.098, allocations: 315.4 kB / 0.6502 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/2.098, allocations: 0 / 0.6502 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.437e-05/2.098, allocations: 12 kB / 0.6502 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/2.098, allocations: 15.98 kB / 0.6502 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/2.098, allocations: 209.7 kB / 0.6504 GB, free: 9.664 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.03509/2.133, allocations: 11.35 MB / 0.6615 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/2.133, allocations: 118.5 kB / 0.6616 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/2.133, allocations: 88.83 kB / 0.6617 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1441/2.278, allocations: 43.42 MB / 0.7041 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/2.278, allocations: 31.5 kB / 0.7041 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.254e-06/2.278, allocations: 3.938 kB / 0.7042 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=34): time 0.0012/2.279, allocations: 432.3 kB / 0.7046 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/2.279, allocations: 52.16 kB / 0.7046 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004567/2.279, allocations: 360.4 kB / 0.705 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/2.279, allocations: 25.7 kB / 0.705 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/2.279, allocations: 184.7 kB / 0.7052 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.573e-05/2.28, allocations: 118.9 kB / 0.7053 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.478e-05/2.28, allocations: 53.69 kB / 0.7053 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001689/2.28, allocations: 346.8 kB / 0.7057 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/2.28, allocations: 91.97 kB / 0.7057 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/2.28, allocations: 137 kB / 0.7059 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004007/2.28, allocations: 257.7 kB / 0.7061 GB, free: 336 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/2.28, allocations: 3.984 kB / 0.7061 GB, free: 332 kB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005556/2.281, allocations: 349.4 kB / 0.7065 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/2.281, allocations: 4 kB / 0.7065 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/2.281, allocations: 4.125 kB / 0.7065 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008468/2.282, allocations: 139 kB / 0.7066 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.684e-05/2.282, allocations: 12 kB / 0.7066 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006823/2.283, allocations: 0.6201 MB / 0.7072 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001565/2.283, allocations: 28.77 kB / 0.7072 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/2.283, allocations: 8 kB / 0.7072 GB, free: 15.13 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.0001987/2.283, allocations: 161.8 kB / 0.7074 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.324e-05/2.283, allocations: 35.88 kB / 0.7074 GB, free: 14.93 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001001/2.284, allocations: 0.6361 MB / 0.7081 GB, free: 14.22 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004804/2.285, allocations: 250.4 kB / 0.7083 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/2.285, allocations: 3.938 kB / 0.7083 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/2.285, allocations: 0 / 0.7083 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/2.286, allocations: 0.7953 MB / 0.7091 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/2.286, allocations: 4 kB / 0.7091 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.737e-05/2.286, allocations: 20.86 kB / 0.7091 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004056/2.286, allocations: 108.8 kB / 0.7092 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/2.287, allocations: 7.938 kB / 0.7092 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006611/2.287, allocations: 0.6359 MB / 0.7098 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/2.287, allocations: 4.031 kB / 0.7098 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006087/2.288, allocations: 384.9 kB / 0.7102 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/2.288, allocations: 47.73 kB / 0.7102 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/2.288, allocations: 8.703 kB / 0.7103 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001226/2.288, allocations: 4.562 kB / 0.7103 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/2.288, allocations: 15.91 kB / 0.7103 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/2.288, allocations: 9.031 kB / 0.7103 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000423/2.289, allocations: 331.1 kB / 0.7106 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/2.289, allocations: 0 / 0.7106 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003503/2.292, allocations: 1.224 MB / 0.7118 GB, free: 10.29 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.006938/2.299, allocations: 2.59 MB / 0.7143 GB, free: 7.707 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007429/2.3, allocations: 258.1 kB / 0.7146 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/2.3, allocations: 256 / 0.7146 GB, free: 7.449 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/2.3, allocations: 110 kB / 0.7147 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008245/2.301, allocations: 130.2 kB / 0.7148 GB, free: 7.23 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/2.307, allocations: 3.74 MB / 0.7185 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/2.307, allocations: 0.8068 MB / 0.7192 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001264/2.308, allocations: 34.12 kB / 0.7193 GB, free: 2.504 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/2.308, allocations: 128.4 kB / 0.7194 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of SimCode: time 8.61e-07/2.308, allocations: 0 / 0.7194 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/2.408, allocations: 49.59 MB / 0.7678 GB, free: 1.461 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.95/17.36, allocations: 9.859 kB / 0.7678 GB, free: 1.453 MB / 0.6231 GB " [Timeout remaining time 642] (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: 19.487573674181476] Failed to read output from testmodel.py, exit status != 0: 17.908856951165944 17.920483568 15.82604566 Calling exit ...