Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck",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.004395/0.004395, allocations: 99.53 kB / 15.73 MB, free: 6.48 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.001204/0.001204, allocations: 193.5 kB / 16.68 MB, free: 6.363 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002402/0.002402, allocations: 282.6 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.976/0.976, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002636/0.002636, allocations: 91.86 kB / 0.6809 GB, free: 16 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1598, allocations: 86.97 MB / 0.7659 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002173/0.162, allocations: 1.26 MB / 0.7671 GB, free: 7.691 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003636/0.1656, allocations: 3.253 MB / 0.7703 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.1657, allocations: 0 / 0.7703 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.1657, allocations: 7.938 kB / 0.7703 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.263e-05/0.1658, allocations: 7.984 kB / 0.7703 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004394/0.1662, allocations: 103.5 kB / 0.7704 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.634e-05/0.1663, allocations: 43.89 kB / 0.7704 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.94e-05/0.1663, allocations: 0 / 0.7704 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.881e-05/0.1664, allocations: 15.98 kB / 0.7705 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.677e-05/0.1664, allocations: 15.92 kB / 0.7705 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.1664, allocations: 4 kB / 0.7705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.1667, allocations: 75.75 kB / 0.7705 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.1667, allocations: 19.97 kB / 0.7706 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.775e-05/0.1667, allocations: 15.88 kB / 0.7706 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001714/0.1669, allocations: 68.06 kB / 0.7706 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1669, allocations: 4 kB / 0.7707 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1669, allocations: 0 / 0.7707 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.926e-06/0.1669, allocations: 0 / 0.7707 GB, free: 4.047 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004069/0.1673, allocations: 351.3 kB / 0.771 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.1674, allocations: 8.031 kB / 0.771 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.733e-05/0.1674, allocations: 34.75 kB / 0.771 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.775e-05/0.1675, allocations: 8.938 kB / 0.771 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.1676, allocations: 172.3 kB / 0.7712 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.1677, allocations: 384 / 0.7712 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.1677, allocations: 16.3 kB / 0.7712 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.1678, allocations: 53.61 kB / 0.7713 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.1678, allocations: 0 / 0.7713 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.1679, allocations: 4 kB / 0.7713 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1679, allocations: 0 / 0.7713 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.859e-05/0.1679, allocations: 19.97 kB / 0.7713 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001813/0.1681, allocations: 173.6 kB / 0.7715 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.534e-05/0.1682, allocations: 50.5 kB / 0.7715 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.254e-05/0.1682, allocations: 24.84 kB / 0.7715 GB, free: 2.988 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006914/0.1689, allocations: 0.583 MB / 0.7721 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.169, allocations: 38.56 kB / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.169, allocations: 0 / 0.7721 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.000555/0.1696, allocations: 310.5 kB / 0.7724 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.1696, allocations: 51.41 kB / 0.7725 GB, free: 1.832 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.534e-05/0.1697, allocations: 97.8 kB / 0.7726 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.1697, allocations: 29.7 kB / 0.7726 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.1698, allocations: 88.09 kB / 0.7727 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.251e-05/0.1698, allocations: 31.73 kB / 0.7727 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/0.1698, allocations: 25.72 kB / 0.7727 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.17, allocations: 322.8 kB / 0.773 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.17, allocations: 12 kB / 0.7731 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.157e-05/0.1701, allocations: 57.08 kB / 0.7731 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.26e-05/0.1702, allocations: 73.08 kB / 0.7732 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1702, allocations: 0 / 0.7732 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001329/0.1703, allocations: 89.55 kB / 0.7733 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.1703, allocations: 8 kB / 0.7733 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.1703, allocations: 4.125 kB / 0.7733 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1704, allocations: 4 kB / 0.7733 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.617e-05/0.1704, allocations: 24.2 kB / 0.7733 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.708e-06/0.1705, allocations: 0 / 0.7733 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.852e-05/0.1705, allocations: 15.88 kB / 0.7733 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.1705, allocations: 4 kB / 0.7733 GB, free: 0.8867 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.114e-05/0.1706, allocations: 114.5 kB / 0.7734 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.1706, allocations: 3.953 kB / 0.7734 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.123e-05/0.1707, allocations: 15.95 kB / 0.7735 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1707, allocations: 4 kB / 0.7735 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1707, allocations: 0 / 0.7735 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1707, allocations: 3.938 kB / 0.7735 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.1709, allocations: 173.6 kB / 0.7736 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1709, allocations: 0 / 0.7736 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.44e-05/0.171, allocations: 19.98 kB / 0.7736 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.171, allocations: 4 kB / 0.7736 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.1711, allocations: 448 / 0.7736 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1711, allocations: 0 / 0.7736 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1711, allocations: 0 / 0.7736 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.1713, allocations: 183.4 kB / 0.7738 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.1713, allocations: 81.11 kB / 0.7739 GB, free: 208 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.1713, allocations: 0 / 0.7739 GB, free: 208 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.1714, allocations: 12.03 kB / 0.7739 GB, free: 196 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.673e-05/0.1715, allocations: 7.875 kB / 0.7739 GB, free: 188 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.1715, allocations: 4 kB / 0.7739 GB, free: 184 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.366e-05/0.1715, allocations: 83.27 kB / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1715, allocations: 0 / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002359/0.1718, allocations: 16 kB / 0.774 GB, free: 84 kB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * 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.2865/0.4582, allocations: 0.6955 MB / 0.7747 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001381/0.4584, allocations: 45.95 kB / 0.7747 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4584, allocations: 0.5 kB / 0.7747 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.869e-05/0.4584, allocations: 22.56 kB / 0.7748 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.4588, allocations: 7.094 kB / 0.7748 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.4599, allocations: 1.539 MB / 0.7763 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.841e-05/0.46, allocations: 0.6857 MB / 0.7769 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.318e-05/0.46, allocations: 8.5 kB / 0.777 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.115e-05/0.4601, allocations: 16.86 kB / 0.777 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of SimCode: time 3e-07/0.4601, allocations: 0.875 kB / 0.777 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.4831, allocations: 1.671 MB / 0.7786 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.33/7.813, allocations: 8.438 kB / 0.7786 GB, free: 12.36 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_WaterDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)