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.004517/0.004517, allocations: 98.66 kB / 15.73 MB, free: 6.039 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.001056/0.001056, allocations: 192.8 kB / 16.67 MB, free: 5.965 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00212/0.00212, allocations: 286.5 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9542/0.9542, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002973/0.002973, allocations: 95.84 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.158, allocations: 86.97 MB / 0.7659 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002161/0.1602, allocations: 1.262 MB / 0.7671 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003654/0.1639, allocations: 3.257 MB / 0.7703 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.668e-05/0.1639, allocations: 0 / 0.7703 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.1639, allocations: 7.984 kB / 0.7703 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.396e-05/0.164, allocations: 3.938 kB / 0.7703 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.1645, allocations: 111.5 kB / 0.7704 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.087e-05/0.1646, allocations: 39.84 kB / 0.7704 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.192e-05/0.1646, allocations: 0 / 0.7704 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.686e-05/0.1647, allocations: 19.98 kB / 0.7705 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.825e-05/0.1647, allocations: 19.91 kB / 0.7705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.1648, allocations: 8 kB / 0.7705 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.165, allocations: 71.81 kB / 0.7706 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.165, allocations: 8 kB / 0.7706 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/0.1651, allocations: 15.91 kB / 0.7706 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.1653, allocations: 72.02 kB / 0.7706 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1653, allocations: 0 / 0.7706 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1653, allocations: 0 / 0.7706 GB, free: 4.055 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.599e-06/0.1653, allocations: 0 / 0.7706 GB, free: 4.055 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.0003879/0.1657, allocations: 355.3 kB / 0.771 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1657, allocations: 12.03 kB / 0.771 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.1658, allocations: 34.75 kB / 0.771 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.92e-05/0.1659, allocations: 4.938 kB / 0.771 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.166, allocations: 172.3 kB / 0.7712 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.166, allocations: 384 / 0.7712 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.166, allocations: 8.375 kB / 0.7712 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.1662, allocations: 57.55 kB / 0.7713 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.1662, allocations: 0 / 0.7713 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1662, allocations: 0 / 0.7713 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1662, allocations: 4 kB / 0.7713 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.629e-05/0.1663, allocations: 23.92 kB / 0.7713 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000193/0.1665, allocations: 165.6 kB / 0.7714 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.1666, allocations: 58.53 kB / 0.7715 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.089e-05/0.1666, allocations: 8.859 kB / 0.7715 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007486/0.1674, allocations: 0.5949 MB / 0.7721 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.1674, allocations: 38.5 kB / 0.7721 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=5): time 1.383e-06/0.1674, allocations: 4 kB / 0.7721 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0006053/0.168, allocations: 298.2 kB / 0.7724 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.1681, allocations: 51.41 kB / 0.7725 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.809e-05/0.1682, allocations: 105.9 kB / 0.7726 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.1682, allocations: 29.7 kB / 0.7726 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.1682, allocations: 96.08 kB / 0.7727 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/0.1683, allocations: 23.75 kB / 0.7727 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.779e-05/0.1683, allocations: 29.7 kB / 0.7727 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1684, allocations: 314.8 kB / 0.773 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.1685, allocations: 15.98 kB / 0.7731 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.402e-05/0.1685, allocations: 57.08 kB / 0.7731 GB, free: 1.137 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.119e-05/0.1686, allocations: 77.5 kB / 0.7732 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1686, allocations: 0 / 0.7732 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001458/0.1688, allocations: 101.5 kB / 0.7733 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1688, allocations: 4 kB / 0.7733 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.1688, allocations: 0 / 0.7733 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.1688, allocations: 8 kB / 0.7733 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.037e-05/0.1689, allocations: 19.98 kB / 0.7733 GB, free: 0.9062 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.1689, allocations: 4 kB / 0.7733 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.13e-05/0.169, allocations: 7.938 kB / 0.7733 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.169, allocations: 7.938 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.19e-05/0.1691, allocations: 114.5 kB / 0.7734 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.1691, allocations: 8.016 kB / 0.7734 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.846e-05/0.1692, allocations: 11.97 kB / 0.7735 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1692, allocations: 0 / 0.7735 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1692, allocations: 3.984 kB / 0.7735 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1692, allocations: 3.938 kB / 0.7735 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.1694, allocations: 173.7 kB / 0.7736 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1694, allocations: 0 / 0.7736 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.765e-05/0.1695, allocations: 12 kB / 0.7736 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1695, allocations: 4 kB / 0.7736 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.1696, allocations: 4 kB / 0.7736 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1696, allocations: 4 kB / 0.7737 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1696, allocations: 0 / 0.7737 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001735/0.1698, allocations: 179.4 kB / 0.7738 GB, free: 312 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.505e-05/0.1698, allocations: 81.14 kB / 0.7739 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.1698, allocations: 0 / 0.7739 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.1699, allocations: 4 kB / 0.7739 GB, free: 208 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.49e-05/0.17, allocations: 7.938 kB / 0.7739 GB, free: 200 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.17, allocations: 7.984 kB / 0.7739 GB, free: 192 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.17, allocations: 83.28 kB / 0.774 GB, free: 108 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.17, allocations: 0 / 0.774 GB, free: 108 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002412/0.1703, allocations: 12 kB / 0.774 GB, free: 96 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.3061/0.4764, allocations: 0.7083 MB / 0.7747 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001469/0.4766, allocations: 41.84 kB / 0.7747 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4766, allocations: 0 / 0.7747 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.892e-05/0.4766, allocations: 19.31 kB / 0.7748 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.477, allocations: 10.97 kB / 0.7748 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.4782, allocations: 1.532 MB / 0.7763 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.873e-05/0.4783, allocations: 0.6853 MB / 0.7769 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.044e-05/0.4784, allocations: 12.5 kB / 0.7769 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.789e-05/0.4784, allocations: 16.02 kB / 0.777 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of SimCode: time 4.61e-07/0.4784, allocations: 0 / 0.777 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01783/0.4963, allocations: 1.673 MB / 0.7786 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.456/7.953, allocations: 6.75 kB / 0.7786 GB, free: 12.4 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)