Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.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.8658/0.8658, allocations: 153.8 MB / 172.7 MB, free: 4.934 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.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004882, allocations: 15.97 kB / 249.9 MB, free: 4.418 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.19, allocations: 33.35 MB / 283.2 MB, free: 1.801 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.TestDynamicCheckValve): time 1.878/2.068, allocations: 307.7 MB / 0.5771 GB, free: 15.9 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.03708/2.105, allocations: 35.11 MB / 0.6114 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004184/2.105, allocations: 2.438 kB / 0.6114 GB, free: 13.89 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/DynamicCheckValve.mo:61:3-63:16: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/DynamicCheckValve.mo:64:3-65:51: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.0005621/2.106, allocations: 151.1 kB / 0.6115 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000388/2.106, allocations: 144.5 kB / 0.6117 GB, free: 13.73 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.02725/2.134, allocations: 10.01 MB / 0.6215 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007818/2.134, allocations: 452.5 kB / 0.6219 GB, free: 7.426 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/2.135, allocations: 138.7 kB / 0.622 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/2.135, allocations: 195.2 kB / 0.6222 GB, free: 7.098 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/2.135, allocations: 175.1 kB / 0.6224 GB, free: 6.926 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/2.135, allocations: 24 kB / 0.6224 GB, free: 6.902 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03574/2.171, allocations: 17.93 MB / 0.6399 GB, free: 4.953 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001627/2.171, allocations: 63.77 kB / 0.64 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002596/2.171, allocations: 184.5 kB / 0.6401 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02359/2.195, allocations: 8.528 MB / 0.6485 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/2.195, allocations: 4 kB / 0.6485 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.753e-06/2.195, allocations: 0 / 0.6485 GB, free: 12.16 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.552e-05/2.195, allocations: 0 / 0.6485 GB, free: 12.16 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00467/2.2, allocations: 1.564 MB / 0.65 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/2.2, allocations: 12.03 kB / 0.65 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/2.2, allocations: 70.53 kB / 0.6501 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001938/2.2, allocations: 51.7 kB / 0.6501 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/2.2, allocations: 208.5 kB / 0.6503 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.66e-05/2.2, allocations: 73.22 kB / 0.6504 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/2.2, allocations: 24 kB / 0.6504 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000539/2.201, allocations: 358.3 kB / 0.6508 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/2.201, allocations: 4 kB / 0.6508 GB, free: 9.695 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/2.201, allocations: 8 kB / 0.6508 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/2.201, allocations: 21.89 kB / 0.6508 GB, free: 9.668 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003903/2.201, allocations: 233.7 kB / 0.651 GB, free: 9.441 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.01896/2.22, allocations: 6.576 MB / 0.6574 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006429/2.221, allocations: 244.4 kB / 0.6577 GB, free: 2.438 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/2.221, allocations: 124.9 kB / 0.6578 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.157/2.378, allocations: 48.24 MB / 0.7049 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004491/2.379, allocations: 224 kB / 0.7051 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=48): time 1.964e-06/2.379, allocations: 0.5625 kB / 0.7051 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48): time 0.001174/2.38, allocations: 487.8 kB / 0.7056 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/2.38, allocations: 85.09 kB / 0.7057 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/2.38, allocations: 250 kB / 0.7059 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/2.38, allocations: 33.69 kB / 0.7059 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/2.38, allocations: 169 kB / 0.7061 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/2.381, allocations: 162.5 kB / 0.7063 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/2.381, allocations: 65.91 kB / 0.7063 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001729/2.381, allocations: 342.8 kB / 0.7066 GB, free: 164 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/2.381, allocations: 117.7 kB / 0.7068 GB, free: 48 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/2.381, allocations: 164.5 kB / 0.7069 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004429/2.382, allocations: 291.2 kB / 0.7072 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/2.382, allocations: 0 / 0.7072 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008606/2.383, allocations: 430.7 kB / 0.7076 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/2.383, allocations: 4 kB / 0.7076 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/2.383, allocations: 0 / 0.7076 GB, free: 15.13 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009912/2.384, allocations: 207 kB / 0.7078 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/2.384, allocations: 19.98 kB / 0.7078 GB, free: 14.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002552/2.386, allocations: 2.331 MB / 0.7101 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/2.387, allocations: 47.73 kB / 0.7101 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.788e-05/2.387, allocations: 12 kB / 0.7102 GB, free: 12.38 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: 7 (checkValve.C2.b,checkValve.C1.a,puitsP1.C.a,sourceP1.C.b,checkValve.libre,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,2), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/2.387, allocations: 151.9 kB / 0.7103 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.245e-05/2.387, allocations: 35.7 kB / 0.7103 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008577/2.388, allocations: 0.5658 MB / 0.7109 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005553/2.388, allocations: 354.3 kB / 0.7112 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/2.388, allocations: 4.625 kB / 0.7112 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/2.388, allocations: 3.984 kB / 0.7112 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/2.39, allocations: 0.942 MB / 0.7121 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/2.39, allocations: 3.984 kB / 0.7122 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/2.39, allocations: 65.3 kB / 0.7122 GB, free: 10.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003784/2.39, allocations: 100.8 kB / 0.7123 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/2.39, allocations: 11.98 kB / 0.7123 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000565/2.391, allocations: 0.6304 MB / 0.7129 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/2.391, allocations: 0 / 0.7129 GB, free: 9.391 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/2.392, allocations: 0.6632 MB / 0.7136 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/2.392, allocations: 55.69 kB / 0.7136 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.824e-05/2.392, allocations: 11.95 kB / 0.7137 GB, free: 8.641 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/2.392, allocations: 25.03 kB / 0.7137 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/2.393, allocations: 31.94 kB / 0.7137 GB, free: 8.586 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/2.393, allocations: 11.94 kB / 0.7137 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002519/2.393, allocations: 223 kB / 0.7139 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/2.393, allocations: 0 / 0.7139 GB, free: 8.359 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003497/2.396, allocations: 1.232 MB / 0.7151 GB, free: 7.125 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (checkValve.omega,checkValve.theta) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,checkValve.libre) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.007227/2.404, allocations: 2.848 MB / 0.7179 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001191/2.405, allocations: 480.6 kB / 0.7184 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/2.405, allocations: 0 / 0.7184 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004723/2.405, allocations: 183.4 kB / 0.7185 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008226/2.406, allocations: 130.1 kB / 0.7187 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006992/2.413, allocations: 3.876 MB / 0.7225 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004886/2.413, allocations: 0.8118 MB / 0.7232 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001695/2.414, allocations: 33.28 kB / 0.7233 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/2.414, allocations: 136.1 kB / 0.7234 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of SimCode: time 9.12e-07/2.414, allocations: 0 / 0.7234 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/2.518, allocations: 50.67 MB / 0.7729 GB, free: 12.49 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.34/17.86, allocations: 0 / 0.7729 GB, free: 12.49 MB / 0.6387 GB " [Timeout remaining time 642] (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve_fmu --startTime=0 --stopTime=300 --stepSize=0.12 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicCheckValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicCheckValve.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.483729575993493] Failed to read output from testmodel.py, exit status != 0: 18.4328895539511 18.44681109 16.248585003 Calling exit ...