Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterProperties,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterProperties",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007876/0.0007878, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009011/0.0009012, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001733/0.001733, allocations: 274.3 kB / 291.3 MB, free: 1.961 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8058/0.8058, allocations: 144.7 MB / 487.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003824, allocations: 16.78 kB / 0.5686 GB, free: 38.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1229, allocations: 83.09 MB / 0.6497 GB, free: 3.469 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.004818/0.1277, allocations: 4.201 MB / 0.6538 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1303, allocations: 2.484 MB / 0.6562 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001012/0.1304, allocations: 0 / 0.6562 GB, free: 12.77 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.1306, allocations: 33.33 kB / 0.6563 GB, free: 12.74 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.1309, allocations: 84.47 kB / 0.6563 GB, free: 12.66 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.1319, allocations: 417.4 kB / 0.6567 GB, free: 12.26 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.1322, allocations: 267.8 kB / 0.657 GB, free: 12 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.1322, allocations: 10.81 kB / 0.657 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.1324, allocations: 116.3 kB / 0.6571 GB, free: 11.88 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.1326, allocations: 85.44 kB / 0.6572 GB, free: 11.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.1326, allocations: 8 kB / 0.6572 GB, free: 11.79 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005867/0.1332, allocations: 263.4 kB / 0.6575 GB, free: 11.53 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 5.826e-05/0.1333, allocations: 39.83 kB / 0.6575 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 4.56e-05/0.1333, allocations: 54.17 kB / 0.6575 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.1337, allocations: 219.8 kB / 0.6578 GB, free: 11.22 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1337, allocations: 0.6562 kB / 0.6578 GB, free: 11.22 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.1337, allocations: 5.844 kB / 0.6578 GB, free: 11.21 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1337, allocations: 3.938 kB / 0.6578 GB, free: 11.21 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.000598/0.1343, allocations: 463.2 kB / 0.6582 GB, free: 10.71 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1344, allocations: 12.03 kB / 0.6582 GB, free: 10.7 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.1344, allocations: 61.27 kB / 0.6583 GB, free: 10.63 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1346, allocations: 19.81 kB / 0.6583 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.1348, allocations: 214.8 kB / 0.6585 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.1348, allocations: 16.31 kB / 0.6585 GB, free: 10.34 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.1348, allocations: 16 kB / 0.6585 GB, free: 10.33 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.1352, allocations: 241.1 kB / 0.6588 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.1352, allocations: 3.938 kB / 0.6588 GB, free: 10.07 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.1352, allocations: 12 kB / 0.6588 GB, free: 10.06 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.1353, allocations: 11.92 kB / 0.6588 GB, free: 10.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000449/0.1357, allocations: 427.9 kB / 0.6592 GB, free: 9.629 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.1367, allocations: 0.9528 MB / 0.6601 GB, free: 8.586 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.137, allocations: 161 kB / 0.6603 GB, free: 8.422 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.348e-05/0.1371, allocations: 56.89 kB / 0.6603 GB, free: 8.363 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001263/0.1384, allocations: 1.833 MB / 0.6621 GB, free: 6.172 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1384, allocations: 42.5 kB / 0.6622 GB, free: 6.121 MB / 462.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1384, allocations: 0 / 0.6622 GB, free: 6.121 MB / 462.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002986/0.1387, allocations: 137.4 kB / 0.6623 GB, free: 5.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1388, allocations: 51.41 kB / 0.6623 GB, free: 5.918 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.1389, allocations: 176.8 kB / 0.6625 GB, free: 5.73 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.1389, allocations: 37.64 kB / 0.6625 GB, free: 5.688 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.404e-05/0.139, allocations: 139.8 kB / 0.6627 GB, free: 5.547 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.1391, allocations: 55.28 kB / 0.6627 GB, free: 5.492 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.676e-06/0.1391, allocations: 4 kB / 0.6627 GB, free: 5.488 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1392, allocations: 322.8 kB / 0.663 GB, free: 5.164 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.187e-05/0.1393, allocations: 31.98 kB / 0.6631 GB, free: 5.133 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1394, allocations: 141.7 kB / 0.6632 GB, free: 4.945 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.231e-05/0.1395, allocations: 53.62 kB / 0.6633 GB, free: 4.895 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1395, allocations: 0 / 0.6633 GB, free: 4.895 MB / 462.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003114/0.1398, allocations: 221.1 kB / 0.6635 GB, free: 4.672 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.1398, allocations: 4 kB / 0.6635 GB, free: 4.668 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1398, allocations: 4 kB / 0.6635 GB, free: 4.664 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1399, allocations: 15.89 kB / 0.6635 GB, free: 4.648 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.14, allocations: 48.39 kB / 0.6635 GB, free: 4.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/0.1401, allocations: 11.94 kB / 0.6636 GB, free: 4.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.1402, allocations: 27.73 kB / 0.6636 GB, free: 4.562 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.1402, allocations: 16 kB / 0.6636 GB, free: 4.547 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 initialization (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.491e-05/0.1403, allocations: 129.7 kB / 0.6637 GB, free: 4.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.253e-05/0.1404, allocations: 19.81 kB / 0.6637 GB, free: 4.391 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002757/0.1406, allocations: 156.3 kB / 0.6639 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.1407, allocations: 7.938 kB / 0.6639 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1407, allocations: 7.938 kB / 0.6639 GB, free: 4.219 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1407, allocations: 4 kB / 0.6639 GB, free: 4.215 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.1409, allocations: 209.5 kB / 0.6641 GB, free: 3.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1409, allocations: 3.984 kB / 0.6641 GB, free: 3.957 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.371e-05/0.141, allocations: 20 kB / 0.6641 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.141, allocations: 4 kB / 0.6641 GB, free: 3.934 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.141, allocations: 0 / 0.6641 GB, free: 3.934 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/0.141, allocations: 3.984 kB / 0.6641 GB, free: 3.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.141, allocations: 3.953 kB / 0.6641 GB, free: 3.926 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002176/0.1413, allocations: 228.7 kB / 0.6644 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.39e-05/0.1414, allocations: 112.8 kB / 0.6645 GB, free: 3.559 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.1414, allocations: 4 kB / 0.6645 GB, free: 3.555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.1416, allocations: 15.98 kB / 0.6645 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.1416, allocations: 15.98 kB / 0.6645 GB, free: 3.523 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.1416, allocations: 11.94 kB / 0.6645 GB, free: 3.512 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.738e-05/0.1417, allocations: 126.8 kB / 0.6646 GB, free: 3.391 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1417, allocations: 0 / 0.6646 GB, free: 3.391 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003669/0.1421, allocations: 71.98 kB / 0.6647 GB, free: 3.32 MB / 462.1 MB 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 (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006013/0.1427, allocations: 0.8254 MB / 0.6655 GB, free: 2.465 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.1429, allocations: 121.4 kB / 0.6656 GB, free: 2.348 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.143, allocations: 0 / 0.6656 GB, free: 2.348 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 6.317e-05/0.143, allocations: 44.86 kB / 0.6657 GB, free: 2.305 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.1435, allocations: 51.95 kB / 0.6657 GB, free: 2.254 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.1448, allocations: 1.005 MB / 0.6667 GB, free: 1.164 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.1451, allocations: 0.7211 MB / 0.6674 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.1453, allocations: 41.81 kB / 0.6674 GB, free: 388 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.191e-05/0.1453, allocations: 47.42 kB / 0.6675 GB, free: 340 kB / 462.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1453, allocations: 0 / 0.6675 GB, free: 340 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.161, allocations: 4.787 MB / 0.6722 GB, free: 11.71 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.1612, allocations: 181.9 kB / 0.6723 GB, free: 11.47 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/1.829, allocations: 0 / 0.6723 GB, free: 11.47 MB / 478.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterProperties_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1) Environment - environmentSimulation: