Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.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.Math.Functions.Examples.SmoothInterpolation,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothInterpolation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothInterpolation",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.005473/0.005478, allocations: 97.3 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.001261/0.001261, allocations: 199.5 kB / 16.68 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003605/0.003605, allocations: 271.1 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9463/0.9463, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 91.91 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1596, allocations: 86.98 MB / 0.766 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation): time 0.001737/0.1613, allocations: 0.6118 MB / 0.7666 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001884/0.1633, allocations: 1.423 MB / 0.7679 GB, free: 6.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.087e-05/0.1633, allocations: 3.938 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.031e-05/0.1634, allocations: 3.984 kB / 0.7679 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.067e-05/0.1634, allocations: 11.94 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007975/0.1642, allocations: 203.5 kB / 0.7682 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.1643, allocations: 39.91 kB / 0.7682 GB, free: 6.582 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.346e-05/0.1644, allocations: 8 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.982e-05/0.1644, allocations: 15.92 kB / 0.7682 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.332e-05/0.1645, allocations: 19.92 kB / 0.7682 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.531e-05/0.1645, allocations: 8 kB / 0.7682 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004078/0.1649, allocations: 247.7 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.165, allocations: 11.92 kB / 0.7685 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.165, allocations: 11.94 kB / 0.7685 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.1654, allocations: 227.6 kB / 0.7687 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1654, allocations: 0 / 0.7687 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1654, allocations: 0 / 0.7687 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.509e-06/0.1654, allocations: 0 / 0.7687 GB, free: 6.043 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.000431/0.1658, allocations: 404.7 kB / 0.7691 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.1659, allocations: 8.031 kB / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.1659, allocations: 38.75 kB / 0.7691 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.166, allocations: 4.938 kB / 0.7692 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.1661, allocations: 172.3 kB / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1661, allocations: 4.375 kB / 0.7693 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.1662, allocations: 4.375 kB / 0.7693 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001498/0.1663, allocations: 77.72 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.1663, allocations: 0 / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1663, allocations: 4 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1664, allocations: 0 / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.364e-05/0.1664, allocations: 35.97 kB / 0.7694 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.1666, allocations: 165.6 kB / 0.7696 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.193e-05/0.1667, allocations: 62.55 kB / 0.7697 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 6e-05/0.1667, allocations: 48.86 kB / 0.7697 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.869e-06/0.1667, allocations: 3.938 kB / 0.7697 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1668, allocations: 42.44 kB / 0.7697 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 2.044e-06/0.1668, allocations: 3.984 kB / 0.7697 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0002939/0.1671, allocations: 199.4 kB / 0.7699 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.1671, allocations: 81.11 kB / 0.77 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.1672, allocations: 113.8 kB / 0.7701 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.1672, allocations: 25.7 kB / 0.7701 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.743e-05/0.1673, allocations: 88.14 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.1673, allocations: 15.86 kB / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.1674, allocations: 21.7 kB / 0.7703 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.343e-05/0.1675, allocations: 314.8 kB / 0.7706 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.431e-05/0.1675, allocations: 40 kB / 0.7706 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.813e-05/0.1676, allocations: 39.91 kB / 0.7706 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.1677, allocations: 140.2 kB / 0.7708 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.1677, allocations: 0 / 0.7708 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000182/0.1679, allocations: 159.2 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.1679, allocations: 41.62 kB / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.168, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.168, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.282e-06/0.168, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.168, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1681, allocations: 16 kB / 0.771 GB, free: 3.441 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.1682, allocations: 4 kB / 0.771 GB, free: 3.438 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001211/0.1683, allocations: 152.2 kB / 0.7711 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.86e-05/0.1683, allocations: 11.89 kB / 0.7711 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.505e-05/0.1683, allocations: 8.375 kB / 0.7712 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1683, allocations: 0 / 0.7712 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.1684, allocations: 3.938 kB / 0.7712 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1684, allocations: 0 / 0.7712 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001065/0.1685, allocations: 165.6 kB / 0.7713 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1685, allocations: 4 kB / 0.7713 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-06/0.1685, allocations: 3.938 kB / 0.7713 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1685, allocations: 0 / 0.7713 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.1685, allocations: 4 kB / 0.7713 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1685, allocations: 0 / 0.7713 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.1685, allocations: 0 / 0.7713 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.1688, allocations: 207.2 kB / 0.7715 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.637e-05/0.1688, allocations: 85 kB / 0.7716 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.1688, allocations: 12.03 kB / 0.7716 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.186e-05/0.1689, allocations: 7.984 kB / 0.7716 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.027e-05/0.1689, allocations: 4 kB / 0.7716 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.1689, allocations: 8 kB / 0.7716 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.43e-05/0.169, allocations: 91.89 kB / 0.7717 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.169, allocations: 0 / 0.7717 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003392/0.1693, allocations: 71.86 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008419/0.1702, allocations: 0.7976 MB / 0.7726 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.1705, allocations: 195.3 kB / 0.7728 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1705, allocations: 0 / 0.7728 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001563/0.1707, allocations: 151.3 kB / 0.7729 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001718/0.1708, allocations: 14.28 kB / 0.7729 GB, free: 1.301 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005487/0.1714, allocations: 222.4 kB / 0.7731 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.1717, allocations: 0.6925 MB / 0.7738 GB, free: 332 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.732e-06/0.1717, allocations: 0 / 0.7738 GB, free: 332 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.88e-05/0.1718, allocations: 11.44 kB / 0.7738 GB, free: 320 kB / 0.5606 GB Notification: Performance of SimCode: time 4.61e-07/0.1718, allocations: 0 / 0.7738 GB, free: 320 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3354/0.5072, allocations: 3.109 MB / 0.7769 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.31/7.817, allocations: 10.88 kB / 0.7769 GB, free: 14.19 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SmoothInterpolation.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SmoothInterpolation.pipe 2>&1)