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.007829/0.007829, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.00214/0.002141, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002525/0.002525, allocations: 287.3 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.248/1.248, allocations: 178.6 MB / 0.5074 GB, free: 12.69 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 87.86 kB / 0.6943 GB, free: 15.14 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3976, allocations: 89.13 MB / 0.7814 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterProperties): time 0.006502/0.4042, allocations: 4.71 MB / 0.786 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003245/0.4074, allocations: 2.698 MB / 0.7886 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.4076, allocations: 6.125 kB / 0.7886 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.4079, allocations: 50.08 kB / 0.7887 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002823/0.4082, allocations: 91.52 kB / 0.7887 GB, free: 11 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001231/0.4094, allocations: 0.505 MB / 0.7892 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002825/0.4097, allocations: 235.6 kB / 0.7895 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.652e-05/0.4098, allocations: 13.84 kB / 0.7895 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.41, allocations: 117.5 kB / 0.7896 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.4102, allocations: 92.66 kB / 0.7897 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.4102, allocations: 8.062 kB / 0.7897 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007079/0.4109, allocations: 360.9 kB / 0.79 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.683e-05/0.411, allocations: 37.39 kB / 0.7901 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.4111, allocations: 85.23 kB / 0.7901 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006105/0.4118, allocations: 364.6 kB / 0.7905 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.4118, allocations: 1.125 kB / 0.7905 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.213e-06/0.4118, allocations: 0 / 0.7905 GB, free: 9.926 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.4118, allocations: 0 / 0.7905 GB, free: 9.926 MB / 0.5606 GB 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.000764/0.4126, allocations: 0.5052 MB / 0.791 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.4126, allocations: 9.594 kB / 0.791 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.14e-05/0.4127, allocations: 53.08 kB / 0.791 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.4128, allocations: 26.2 kB / 0.7911 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.4131, allocations: 213.3 kB / 0.7913 GB, free: 9.141 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.4131, allocations: 11.2 kB / 0.7913 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.4132, allocations: 26.98 kB / 0.7913 GB, free: 9.121 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/0.4136, allocations: 245.7 kB / 0.7915 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.4136, allocations: 0 / 0.7915 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.4136, allocations: 15.3 kB / 0.7916 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.4137, allocations: 9.844 kB / 0.7916 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005293/0.4142, allocations: 432.2 kB / 0.792 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.4155, allocations: 0.9501 MB / 0.7929 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.4158, allocations: 165.3 kB / 0.7931 GB, free: 7.727 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.4159, allocations: 63.75 kB / 0.7931 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001655/0.4176, allocations: 1.823 MB / 0.7949 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.4176, allocations: 41.16 kB / 0.7949 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.4176, allocations: 0 / 0.7949 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0003724/0.418, allocations: 151.8 kB / 0.7951 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.4181, allocations: 52.84 kB / 0.7951 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.4182, allocations: 173.6 kB / 0.7953 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.4183, allocations: 27.3 kB / 0.7953 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.4184, allocations: 138.6 kB / 0.7955 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.971e-05/0.4184, allocations: 70.55 kB / 0.7955 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.4185, allocations: 50.14 kB / 0.7956 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4187, allocations: 321.7 kB / 0.7959 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.421e-05/0.4188, allocations: 37.33 kB / 0.7959 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.4189, allocations: 150.5 kB / 0.7961 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.4192, allocations: 199.4 kB / 0.7963 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4192, allocations: 1.875 kB / 0.7963 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003558/0.4196, allocations: 215 kB / 0.7965 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.4196, allocations: 7.25 kB / 0.7965 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.4196, allocations: 7.438 kB / 0.7965 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.4196, allocations: 9.562 kB / 0.7965 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.4198, allocations: 56.84 kB / 0.7965 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.4198, allocations: 4.5 kB / 0.7965 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.42, allocations: 29 kB / 0.7966 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.42, allocations: 10.06 kB / 0.7966 GB, free: 4.156 MB / 0.5606 GB 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.0001315/0.4201, allocations: 142.7 kB / 0.7967 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.4202, allocations: 21.06 kB / 0.7967 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003081/0.4205, allocations: 155.9 kB / 0.7969 GB, free: 3.906 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.4205, allocations: 6.125 kB / 0.7969 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.4205, allocations: 0 / 0.7969 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4205, allocations: 1.219 kB / 0.7969 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002686/0.4208, allocations: 213.8 kB / 0.7971 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4208, allocations: 0 / 0.7971 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.131e-05/0.4209, allocations: 26.86 kB / 0.7971 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.4209, allocations: 1.188 kB / 0.7971 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.4209, allocations: 10.19 kB / 0.7971 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.421, allocations: 9.078 kB / 0.7971 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.421, allocations: 4 kB / 0.7971 GB, free: 3.645 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.4212, allocations: 216.5 kB / 0.7974 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.4214, allocations: 110.1 kB / 0.7975 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.4214, allocations: 1.156 kB / 0.7975 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.4216, allocations: 19.73 kB / 0.7975 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/0.4216, allocations: 16.66 kB / 0.7975 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.4217, allocations: 11.09 kB / 0.7975 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001006/0.4218, allocations: 118.7 kB / 0.7976 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4218, allocations: 0 / 0.7976 GB, free: 3.238 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004348/0.4222, allocations: 86.02 kB / 0.7977 GB, free: 3.211 MB / 0.5606 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.000852/0.4231, allocations: 0.8332 MB / 0.7985 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002622/0.4234, allocations: 124.8 kB / 0.7986 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.4234, allocations: 5.531 kB / 0.7986 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.871e-05/0.4235, allocations: 43.95 kB / 0.7987 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.4239, allocations: 46.28 kB / 0.7987 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.4263, allocations: 2.039 MB / 0.8007 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.4267, allocations: 0.7206 MB / 0.8014 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001553/0.4268, allocations: 42.67 kB / 0.8015 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/0.4269, allocations: 45.2 kB / 0.8015 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/0.4269, allocations: 0 / 0.8015 GB, free: 15.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.4532, allocations: 5.274 MB / 0.8067 GB, free: 13.11 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.064/8.517, allocations: 8.781 kB / 0.8067 GB, free: 13.1 MB / 0.5762 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)