Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.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.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck",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.007616/0.007622, allocations: 95.48 kB / 15.73 MB, free: 6.484 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.001749/0.001749, allocations: 191.1 kB / 16.67 MB, free: 6.391 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002163/0.002163, allocations: 282.9 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9599/0.9599, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 96 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1564, allocations: 86.97 MB / 0.7659 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck): time 0.002367/0.1588, allocations: 1.291 MB / 0.7672 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.1598, allocations: 0.6362 MB / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.019e-05/0.1598, allocations: 0 / 0.7678 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.081e-05/0.1599, allocations: 3.938 kB / 0.7678 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.081e-05/0.1599, allocations: 11.92 kB / 0.7678 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.1604, allocations: 99.56 kB / 0.7679 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.27e-05/0.1605, allocations: 35.84 kB / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.1605, allocations: 0 / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.296e-05/0.1605, allocations: 19.92 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.801e-05/0.1606, allocations: 8 kB / 0.768 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1606, allocations: 0 / 0.768 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002723/0.1609, allocations: 143.8 kB / 0.7681 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.427e-05/0.1609, allocations: 11.86 kB / 0.7681 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.318e-05/0.1609, allocations: 4 kB / 0.7681 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002008/0.1612, allocations: 99.97 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1612, allocations: 0 / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.213e-06/0.1612, allocations: 0 / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5e-06/0.1612, allocations: 0 / 0.7682 GB, free: 6.508 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004423/0.1616, allocations: 367.2 kB / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1617, allocations: 8.031 kB / 0.7686 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.1617, allocations: 42.69 kB / 0.7686 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000398/0.1621, allocations: 28.89 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.1622, allocations: 160.4 kB / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.092e-05/0.1622, allocations: 384 / 0.7688 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.1623, allocations: 8.375 kB / 0.7688 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.1625, allocations: 58.22 kB / 0.7689 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.1625, allocations: 7.875 kB / 0.7689 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1625, allocations: 0 / 0.7689 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1625, allocations: 0 / 0.7689 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001418/0.1626, allocations: 27.97 kB / 0.7689 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.1628, allocations: 169.7 kB / 0.7691 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.1631, allocations: 66.47 kB / 0.7691 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.056e-05/0.1632, allocations: 24.94 kB / 0.7692 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.1632, allocations: 4 kB / 0.7692 GB, free: 5.391 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.061e-05/0.1633, allocations: 38.56 kB / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.021e-06/0.1633, allocations: 0 / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.003248/0.1665, allocations: 0.572 MB / 0.7698 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1666, allocations: 67.33 kB / 0.7698 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.353e-05/0.1667, allocations: 89.86 kB / 0.7699 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.1667, allocations: 33.7 kB / 0.7699 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.806e-05/0.1667, allocations: 84.14 kB / 0.77 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.1668, allocations: 15.86 kB / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.705e-05/0.1668, allocations: 33.62 kB / 0.7701 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1669, allocations: 310.8 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.1671, allocations: 40.09 kB / 0.7704 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001272/0.1672, allocations: 35.97 kB / 0.7704 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.1675, allocations: 84.81 kB / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.1675, allocations: 0 / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0003505/0.1679, allocations: 125.5 kB / 0.7706 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.1679, allocations: 4 kB / 0.7706 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1679, allocations: 3.984 kB / 0.7706 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1679, allocations: 4 kB / 0.7706 GB, free: 3.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.1681, allocations: 23.97 kB / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.1681, allocations: 0 / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1683, allocations: 4 kB / 0.7707 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1683, allocations: 7.984 kB / 0.7707 GB, free: 3.715 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 0.0001079/0.1684, allocations: 113.8 kB / 0.7708 GB, free: 3.594 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.1685, allocations: 7.891 kB / 0.7708 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.612e-05/0.1685, allocations: 11.97 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1685, allocations: 4 kB / 0.7708 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1685, allocations: 0 / 0.7708 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1685, allocations: 3.938 kB / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.1687, allocations: 187.5 kB / 0.771 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1687, allocations: 0 / 0.771 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.1689, allocations: 31.97 kB / 0.771 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.1689, allocations: 0 / 0.771 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.169, allocations: 15.92 kB / 0.771 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.169, allocations: 0 / 0.771 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.169, allocations: 0 / 0.771 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005224/0.1695, allocations: 189 kB / 0.7712 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.372e-05/0.1696, allocations: 85.08 kB / 0.7713 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.545e-05/0.1696, allocations: 0 / 0.7713 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001796/0.1698, allocations: 11.98 kB / 0.7713 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.1698, allocations: 0 / 0.7713 GB, free: 2.969 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.1698, allocations: 7.984 kB / 0.7713 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.77e-05/0.1699, allocations: 83.34 kB / 0.7714 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1699, allocations: 0 / 0.7714 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002341/0.1701, allocations: 31.88 kB / 0.7714 GB, free: 2.848 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y_comp) * 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 (6): * Single equations (assignments): 6 * 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.0008573/0.171, allocations: 0.7683 MB / 0.7722 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003231/0.1713, allocations: 88.22 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1713, allocations: 0 / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.1715, allocations: 47.89 kB / 0.7723 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.1717, allocations: 13.56 kB / 0.7723 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.1736, allocations: 1.348 MB / 0.7736 GB, free: 492 kB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3017/0.4753, allocations: 0.6793 MB / 0.7743 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002024/0.4756, allocations: 24.31 kB / 0.7743 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.584e-05/0.4757, allocations: 18.11 kB / 0.7743 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of SimCode: time 7.91e-07/0.4757, allocations: 0.5938 kB / 0.7743 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.4945, allocations: 2.501 MB / 0.7768 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.629/8.124, allocations: 14.16 kB / 0.7768 GB, free: 14.51 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-09 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Psychrometrics_Functions_BaseClasses_Examples_SaturationPressureDerivativeCheck.fmu > BuildingSystems_BuildingSystems.Utilities.Psychrometrics.Functions.BaseClasses.Examples.SaturationPressureDerivativeCheck.pipe 2>&1)