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.001598/0.001598, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002086/0.002086, allocations: 192.4 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.252/2.252, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003357/0.003357, allocations: 283 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.503/1.503, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003292/0.003293, allocations: 99.44 kB / 0.5953 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1995, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.006678/0.2062, allocations: 4.713 MB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003165/0.2094, allocations: 2.695 MB / 0.6875 GB, free: 9.156 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.2096, allocations: 0 / 0.6875 GB, free: 9.156 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002788/0.2099, allocations: 55.66 kB / 0.6876 GB, free: 9.102 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.2102, allocations: 91.38 kB / 0.6876 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.2116, allocations: 0.4964 MB / 0.6881 GB, free: 8.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003139/0.212, allocations: 228 kB / 0.6884 GB, free: 8.297 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.57e-05/0.212, allocations: 13.56 kB / 0.6884 GB, free: 8.285 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000236/0.2123, allocations: 123.5 kB / 0.6885 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.2124, allocations: 83.67 kB / 0.6886 GB, free: 8.082 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.2125, allocations: 8 kB / 0.6886 GB, free: 8.074 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008219/0.2133, allocations: 371.3 kB / 0.6889 GB, free: 7.711 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-05/0.2134, allocations: 31.89 kB / 0.689 GB, free: 7.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.2135, allocations: 83.59 kB / 0.689 GB, free: 7.598 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007153/0.2143, allocations: 359.4 kB / 0.6894 GB, free: 7.246 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2143, allocations: 4 kB / 0.6894 GB, free: 7.242 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2143, allocations: 0 / 0.6894 GB, free: 7.242 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2143, allocations: 0 / 0.6894 GB, free: 7.242 MB / 494.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.0008207/0.2151, allocations: 0.5031 MB / 0.6899 GB, free: 6.691 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.2152, allocations: 12.03 kB / 0.6899 GB, free: 6.68 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.773e-05/0.2153, allocations: 46.73 kB / 0.6899 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001898/0.2154, allocations: 20.75 kB / 0.6899 GB, free: 6.605 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.2157, allocations: 220.1 kB / 0.6902 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2157, allocations: 8.703 kB / 0.6902 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.2158, allocations: 20.38 kB / 0.6902 GB, free: 6.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004127/0.2162, allocations: 248.6 kB / 0.6904 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2162, allocations: 0 / 0.6904 GB, free: 6.062 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.2162, allocations: 8 kB / 0.6904 GB, free: 6.055 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.935e-05/0.2163, allocations: 7.984 kB / 0.6904 GB, free: 6.047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005053/0.2168, allocations: 435.3 kB / 0.6909 GB, free: 5.621 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.2181, allocations: 0.9604 MB / 0.6918 GB, free: 4.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.2184, allocations: 160.4 kB / 0.6919 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2185, allocations: 60.83 kB / 0.692 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001773/0.2203, allocations: 1.825 MB / 0.6938 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.2204, allocations: 42.5 kB / 0.6938 GB, free: 2.109 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.724e-06/0.2204, allocations: 0 / 0.6938 GB, free: 2.109 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.000378/0.2208, allocations: 141.4 kB / 0.694 GB, free: 1.965 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.2208, allocations: 59.41 kB / 0.694 GB, free: 1.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.221, allocations: 171.8 kB / 0.6942 GB, free: 1.719 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.621e-05/0.2211, allocations: 33.7 kB / 0.6942 GB, free: 1.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.76e-05/0.2212, allocations: 135.8 kB / 0.6943 GB, free: 1.543 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.2212, allocations: 55.19 kB / 0.6944 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/0.2213, allocations: 57.7 kB / 0.6944 GB, free: 1.426 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.2214, allocations: 322.8 kB / 0.6948 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.239e-05/0.2215, allocations: 35.97 kB / 0.6948 GB, free: 1.066 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.2216, allocations: 143.9 kB / 0.6949 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.2219, allocations: 197.5 kB / 0.6951 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2219, allocations: 0 / 0.6951 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003462/0.2222, allocations: 219.6 kB / 0.6953 GB, free: 428 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2223, allocations: 8.062 kB / 0.6953 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.2223, allocations: 4 kB / 0.6953 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.2223, allocations: 11.94 kB / 0.6953 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.2225, allocations: 47.92 kB / 0.6954 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/0.2225, allocations: 7.984 kB / 0.6954 GB, free: 348 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.2227, allocations: 27.69 kB / 0.6954 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.2227, allocations: 16 kB / 0.6954 GB, free: 304 kB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.2228, allocations: 129.7 kB / 0.6956 GB, free: 164 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.786e-05/0.2229, allocations: 15.81 kB / 0.6956 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003336/0.2232, allocations: 159 kB / 0.6957 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.2232, allocations: 11.88 kB / 0.6957 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2232, allocations: 0 / 0.6957 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.2233, allocations: 0 / 0.6957 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/0.2235, allocations: 213.5 kB / 0.6959 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2235, allocations: 4 kB / 0.696 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.479e-05/0.2236, allocations: 23.98 kB / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2237, allocations: 4 kB / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.2237, allocations: 0 / 0.696 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.2237, allocations: 11.92 kB / 0.696 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2237, allocations: 3.938 kB / 0.696 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.224, allocations: 215.4 kB / 0.6962 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.731e-05/0.2241, allocations: 104.9 kB / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.2241, allocations: 4 kB / 0.6963 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.2243, allocations: 19.86 kB / 0.6963 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.2243, allocations: 7.984 kB / 0.6963 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.2244, allocations: 23.92 kB / 0.6964 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000102/0.2245, allocations: 120 kB / 0.6965 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2245, allocations: 0 / 0.6965 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004333/0.2249, allocations: 75.94 kB / 0.6965 GB, free: 15.08 MB / 0.4981 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 (15): * Single equations (assignments): 14 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009359/0.2259, allocations: 0.8387 MB / 0.6974 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003056/0.2262, allocations: 122.8 kB / 0.6975 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.2262, allocations: 0 / 0.6975 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.288e-05/0.2263, allocations: 52.05 kB / 0.6975 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004956/0.2268, allocations: 59.81 kB / 0.6976 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.2294, allocations: 2.033 MB / 0.6996 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.2297, allocations: 0.7128 MB / 0.7003 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001844/0.2299, allocations: 49.75 kB / 0.7003 GB, free: 11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.794e-05/0.23, allocations: 47.42 kB / 0.7004 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.23, allocations: 3.938 kB / 0.7004 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.256, allocations: 5.198 MB / 0.7054 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.42, allocations: 23.05 kB / 0.7055 GB, free: 5.84 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterProperties_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterProperties.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterProperties.pipe 2>&1)