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.001669/0.001668, allocations: 106 kB / 16.4 MB, free: 6.512 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.002012/0.002012, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.451/1.451, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8471/0.8471, allocations: 126.7 MB / 417.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003352/0.003352, allocations: 72.11 kB / 0.5735 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.187, allocations: 78.87 MB / 0.6505 GB, free: 3.664 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterDerivativeCheck): time 0.002675/0.1897, allocations: 1.246 MB / 0.6517 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.1937, allocations: 3.262 MB / 0.6549 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.688e-05/0.1937, allocations: 0 / 0.6549 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.111e-05/0.1938, allocations: 3.938 kB / 0.6549 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.917e-05/0.1938, allocations: 7.875 kB / 0.6549 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.1943, allocations: 103.5 kB / 0.655 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.615e-05/0.1944, allocations: 35.92 kB / 0.6551 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.46e-05/0.1944, allocations: 7.969 kB / 0.6551 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.1945, allocations: 15.94 kB / 0.6551 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.879e-05/0.1945, allocations: 15.92 kB / 0.6551 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.1946, allocations: 7.984 kB / 0.6551 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.1948, allocations: 75.81 kB / 0.6552 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.1948, allocations: 11.98 kB / 0.6552 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/0.1948, allocations: 19.92 kB / 0.6552 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.195, allocations: 68.06 kB / 0.6553 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.195, allocations: 0 / 0.6553 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.814e-06/0.1951, allocations: 0 / 0.6553 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.1951, allocations: 0 / 0.6553 GB, free: 14.76 MB / 0.4981 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.0004026/0.1955, allocations: 351.3 kB / 0.6556 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.1955, allocations: 8.031 kB / 0.6556 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.075e-05/0.1956, allocations: 38.73 kB / 0.6557 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.874e-05/0.1956, allocations: 4.938 kB / 0.6557 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1958, allocations: 172.3 kB / 0.6558 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1958, allocations: 384 / 0.6558 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.1958, allocations: 8.375 kB / 0.6558 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.1959, allocations: 53.61 kB / 0.6559 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.196, allocations: 0 / 0.6559 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.196, allocations: 8 kB / 0.6559 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.196, allocations: 7.938 kB / 0.6559 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.011e-05/0.196, allocations: 11.98 kB / 0.6559 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.1962, allocations: 173.5 kB / 0.6561 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 9.894e-05/0.1963, allocations: 66.42 kB / 0.6561 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.414e-05/0.1964, allocations: 20.84 kB / 0.6562 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000759/0.1971, allocations: 0.591 MB / 0.6567 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1972, allocations: 38.56 kB / 0.6568 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1972, allocations: 4 kB / 0.6568 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005876/0.1978, allocations: 298.2 kB / 0.6571 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.1978, allocations: 55.34 kB / 0.6571 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.121e-05/0.1979, allocations: 101.8 kB / 0.6572 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.198, allocations: 29.7 kB / 0.6572 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.066e-05/0.198, allocations: 88.09 kB / 0.6573 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.198, allocations: 31.73 kB / 0.6574 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.1981, allocations: 29.72 kB / 0.6574 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1982, allocations: 314.8 kB / 0.6577 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.238e-05/0.1983, allocations: 12 kB / 0.6577 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.414e-05/0.1983, allocations: 57.08 kB / 0.6578 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.458e-05/0.1984, allocations: 73.08 kB / 0.6578 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.1984, allocations: 0 / 0.6578 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001482/0.1986, allocations: 93.55 kB / 0.6579 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.1986, allocations: 4 kB / 0.6579 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1986, allocations: 128 / 0.6579 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1986, allocations: 11.94 kB / 0.6579 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.453e-05/0.1987, allocations: 19.94 kB / 0.6579 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.1987, allocations: 4 kB / 0.658 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.901e-05/0.1988, allocations: 7.938 kB / 0.658 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.1988, allocations: 4 kB / 0.658 GB, free: 11.59 MB / 0.4981 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.471e-05/0.1989, allocations: 121.8 kB / 0.6581 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.1989, allocations: 7.953 kB / 0.6581 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.199, allocations: 7.969 kB / 0.6581 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.199, allocations: 4 kB / 0.6581 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.199, allocations: 0 / 0.6581 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.199, allocations: 3.938 kB / 0.6581 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002551/0.1992, allocations: 174.2 kB / 0.6583 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1993, allocations: 0 / 0.6583 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.816e-05/0.1994, allocations: 27.98 kB / 0.6583 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1994, allocations: 0 / 0.6583 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.1994, allocations: 0 / 0.6583 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1994, allocations: 0 / 0.6583 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1994, allocations: 0 / 0.6583 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.1996, allocations: 179.7 kB / 0.6585 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-05/0.1997, allocations: 85 kB / 0.6585 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.1997, allocations: 4 kB / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.1998, allocations: 4.094 kB / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/0.1998, allocations: 15.91 kB / 0.6586 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.1998, allocations: 0 / 0.6586 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.254e-05/0.1999, allocations: 79.28 kB / 0.6586 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1999, allocations: 0 / 0.6586 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000242/0.2001, allocations: 12 kB / 0.6587 GB, free: 10.79 MB / 0.4981 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.0005192/0.2007, allocations: 0.7124 MB / 0.6594 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000119/0.2008, allocations: 43.95 kB / 0.6594 GB, free: 10 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/0.2008, allocations: 256 / 0.6594 GB, free: 10 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.998e-05/0.2009, allocations: 20 kB / 0.6594 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.2011, allocations: 9.812 kB / 0.6594 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.2027, allocations: 1.523 MB / 0.6609 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.203, allocations: 0.6846 MB / 0.6616 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.784e-05/0.203, allocations: 11.86 kB / 0.6616 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.378e-05/0.2031, allocations: 15.44 kB / 0.6616 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.2031, allocations: 0 / 0.6616 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02222/0.2253, allocations: 1.659 MB / 0.6632 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.089/8.314, allocations: 0.5938 kB / 0.6632 GB, free: 6.016 MB / 0.4981 GB (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)