Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IBPSA_latest_IBPSA_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.001059/0.001059, allocations: 102.4 kB / 16.27 MB, free: 5.953 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.001115/0.001115, allocations: 190.2 kB / 17.19 MB, free: 5.59 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.26/1.26, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7131/0.7131, allocations: 122.8 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 59.91 kB / 0.4912 GB, free: 7.375 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3287, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterDerivativeCheck): time 0.001922/0.3307, allocations: 1.257 MB / 0.5685 GB, free: 31.83 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.3334, allocations: 3.248 MB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.161e-05/0.3334, allocations: 0 / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.3334, allocations: 2.406 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.757e-05/0.3335, allocations: 5.109 kB / 0.5717 GB, free: 29.48 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.3339, allocations: 107.7 kB / 0.5718 GB, free: 29.42 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.594e-05/0.334, allocations: 38.28 kB / 0.5718 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.123e-05/0.334, allocations: 7.406 kB / 0.5718 GB, free: 29.4 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.685e-05/0.334, allocations: 18.08 kB / 0.5718 GB, free: 29.4 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.001e-05/0.3341, allocations: 21.03 kB / 0.5719 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.3341, allocations: 2.344 kB / 0.5719 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001997/0.3343, allocations: 77.45 kB / 0.5719 GB, free: 29.36 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.3343, allocations: 11.78 kB / 0.5719 GB, free: 29.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.3344, allocations: 12.95 kB / 0.572 GB, free: 29.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001587/0.3345, allocations: 71.73 kB / 0.572 GB, free: 29.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3346, allocations: 1.156 kB / 0.572 GB, free: 29.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3346, allocations: 0 / 0.572 GB, free: 29.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.3346, allocations: 0 / 0.572 GB, free: 29.32 MB / 446.1 MB 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.0002895/0.3349, allocations: 352.4 kB / 0.5724 GB, free: 28.95 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.3349, allocations: 10.5 kB / 0.5724 GB, free: 28.95 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.535e-05/0.3349, allocations: 45.52 kB / 0.5724 GB, free: 28.9 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.833e-05/0.335, allocations: 7.125 kB / 0.5724 GB, free: 28.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.417e-05/0.3351, allocations: 162.8 kB / 0.5726 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.3351, allocations: 1.5 kB / 0.5726 GB, free: 28.71 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.3351, allocations: 8.672 kB / 0.5726 GB, free: 28.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.3352, allocations: 59.67 kB / 0.5726 GB, free: 28.66 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.3352, allocations: 0 / 0.5726 GB, free: 28.66 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.3353, allocations: 1.938 kB / 0.5726 GB, free: 28.66 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3353, allocations: 1.188 kB / 0.5726 GB, free: 28.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.632e-05/0.3353, allocations: 19.97 kB / 0.5727 GB, free: 28.66 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001086/0.3354, allocations: 173.9 kB / 0.5728 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.679e-05/0.3355, allocations: 48.64 kB / 0.5729 GB, free: 28.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.472e-05/0.3356, allocations: 15.64 kB / 0.5729 GB, free: 28.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004866/0.336, allocations: 0.5944 MB / 0.5735 GB, free: 27.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.297e-05/0.3361, allocations: 36.91 kB / 0.5735 GB, free: 27.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=5): time 1.183e-06/0.3361, allocations: 0 / 0.5735 GB, free: 27.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004653/0.3365, allocations: 310.9 kB / 0.5738 GB, free: 27.44 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.758e-05/0.3366, allocations: 52.97 kB / 0.5739 GB, free: 27.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.35e-05/0.3366, allocations: 101.9 kB / 0.574 GB, free: 27.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.668e-06/0.3366, allocations: 31.36 kB / 0.574 GB, free: 27.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.884e-05/0.3367, allocations: 84.75 kB / 0.5741 GB, free: 27.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.344e-05/0.3367, allocations: 26.72 kB / 0.5741 GB, free: 27.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.3367, allocations: 27.05 kB / 0.5741 GB, free: 27.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.605e-05/0.3368, allocations: 316.1 kB / 0.5744 GB, free: 26.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.585e-05/0.3368, allocations: 12.55 kB / 0.5744 GB, free: 26.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.999e-05/0.3368, allocations: 55.25 kB / 0.5745 GB, free: 26.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.58e-05/0.3369, allocations: 74.92 kB / 0.5746 GB, free: 26.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.3369, allocations: 0.5938 kB / 0.5746 GB, free: 26.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001164/0.337, allocations: 96.33 kB / 0.5746 GB, free: 26.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.3371, allocations: 5.656 kB / 0.5747 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3371, allocations: 2.344 kB / 0.5747 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3371, allocations: 7.094 kB / 0.5747 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.009e-05/0.3372, allocations: 18.66 kB / 0.5747 GB, free: 26.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3372, allocations: 8.844 kB / 0.5747 GB, free: 26.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.769e-05/0.3372, allocations: 9.312 kB / 0.5747 GB, free: 26.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.261e-06/0.3372, allocations: 3.562 kB / 0.5747 GB, free: 26.61 MB / 446.1 MB 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 4.501e-05/0.3373, allocations: 115.5 kB / 0.5748 GB, free: 26.49 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.3373, allocations: 2.656 kB / 0.5748 GB, free: 26.49 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.285e-05/0.3373, allocations: 9.734 kB / 0.5748 GB, free: 26.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3373, allocations: 2.375 kB / 0.5748 GB, free: 26.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3373, allocations: 0.9062 kB / 0.5748 GB, free: 26.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3374, allocations: 8.484 kB / 0.5748 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.3375, allocations: 171.5 kB / 0.575 GB, free: 26.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3375, allocations: 3.938 kB / 0.575 GB, free: 26.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.165e-05/0.3376, allocations: 15.81 kB / 0.575 GB, free: 26.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3376, allocations: 5.219 kB / 0.575 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.3377, allocations: 4 kB / 0.575 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.3377, allocations: 2.625 kB / 0.575 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3377, allocations: 448 / 0.575 GB, free: 26.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.3378, allocations: 181.3 kB / 0.5752 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.857e-05/0.3378, allocations: 82.55 kB / 0.5753 GB, free: 26.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.3379, allocations: 2.875 kB / 0.5753 GB, free: 26.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.338, allocations: 6.094 kB / 0.5753 GB, free: 26.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.593e-05/0.338, allocations: 13.94 kB / 0.5753 GB, free: 26.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.338, allocations: 2 kB / 0.5753 GB, free: 26.01 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.759e-05/0.338, allocations: 79.3 kB / 0.5754 GB, free: 25.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.338, allocations: 0.5 kB / 0.5754 GB, free: 25.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.3383, allocations: 15.16 kB / 0.5754 GB, free: 25.93 MB / 446.1 MB 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.0002496/0.3385, allocations: 0.7118 MB / 0.5761 GB, free: 25.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.927e-05/0.3386, allocations: 48.73 kB / 0.5761 GB, free: 25.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3386, allocations: 1.5 kB / 0.5761 GB, free: 25.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.3387, allocations: 21.42 kB / 0.5762 GB, free: 25.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.3389, allocations: 14.41 kB / 0.5762 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001005/0.3399, allocations: 1.52 MB / 0.5777 GB, free: 23.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.903e-05/0.34, allocations: 0.6826 MB / 0.5783 GB, free: 23.14 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.367e-05/0.3401, allocations: 9 kB / 0.5783 GB, free: 23.13 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.933e-05/0.3401, allocations: 16.33 kB / 0.5783 GB, free: 23.12 MB / 446.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3401, allocations: 0 / 0.5783 GB, free: 23.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/0.3572, allocations: 1.614 MB / 0.5799 GB, free: 22.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.91/7.267, allocations: 6.953 kB / 0.5799 GB, free: 22.74 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Media_Examples_WaterDerivativeCheck.fmu > IBPSA_latest_IBPSA.Media.Examples.WaterDerivativeCheck.pipe 2>&1)