Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.001488/0.001488, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004002/0.004002, allocations: 290.7 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002748/0.002748, allocations: 97.88 kB / 0.6065 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1612/0.1639, allocations: 89.15 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002827/0.1668, allocations: 1.419 MB / 0.695 GB, free: 2.781 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.1681, allocations: 0.7856 MB / 0.6958 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.482e-05/0.1682, allocations: 0 / 0.6958 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.82e-05/0.1682, allocations: 4.719 kB / 0.6958 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.245e-05/0.1683, allocations: 8.719 kB / 0.6958 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.1689, allocations: 171.1 kB / 0.6959 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.409e-05/0.169, allocations: 41.38 kB / 0.696 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.498e-05/0.1691, allocations: 19.31 kB / 0.696 GB, free: 1.758 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.604e-05/0.1691, allocations: 19.92 kB / 0.696 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.378e-05/0.1692, allocations: 11.98 kB / 0.696 GB, free: 1.727 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.1692, allocations: 4 kB / 0.696 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003606/0.1695, allocations: 203.7 kB / 0.6962 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.76e-05/0.1696, allocations: 11.92 kB / 0.6962 GB, free: 1.512 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.992e-05/0.1696, allocations: 19.88 kB / 0.6963 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.17, allocations: 191.6 kB / 0.6964 GB, free: 1.305 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.17, allocations: 4 kB / 0.6964 GB, free: 1.301 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.17, allocations: 0 / 0.6964 GB, free: 1.301 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.17, allocations: 0 / 0.6964 GB, free: 1.301 MB / 494.1 MB 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.0006008/0.1706, allocations: 432.8 kB / 0.6969 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1706, allocations: 8.031 kB / 0.6969 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.95e-05/0.1707, allocations: 30.75 kB / 0.6969 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.95e-05/0.1707, allocations: 4.938 kB / 0.6969 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001315/0.1708, allocations: 168.3 kB / 0.6971 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.1709, allocations: 8.312 kB / 0.6971 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1709, allocations: 8.375 kB / 0.6971 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.1711, allocations: 77.78 kB / 0.6971 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1711, allocations: 0 / 0.6971 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.1711, allocations: 0 / 0.6971 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1711, allocations: 3.938 kB / 0.6971 GB, free: 476 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.1713, allocations: 47.97 kB / 0.6972 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004005/0.1717, allocations: 276.8 kB / 0.6975 GB, free: 100 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001197/0.1718, allocations: 70.42 kB / 0.6975 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.172, allocations: 48.91 kB / 0.6976 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.172, allocations: 0 / 0.6976 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.172, allocations: 34.56 kB / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.172, allocations: 0 / 0.6976 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003941/0.1724, allocations: 179.3 kB / 0.6978 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.089e-05/0.1725, allocations: 93.03 kB / 0.6979 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.1726, allocations: 125.8 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.1727, allocations: 29.7 kB / 0.698 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.726e-05/0.1727, allocations: 88.12 kB / 0.6981 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.1727, allocations: 11.81 kB / 0.6981 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.1728, allocations: 17.72 kB / 0.6981 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1729, allocations: 322.8 kB / 0.6984 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.1731, allocations: 63.97 kB / 0.6985 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.1732, allocations: 59.95 kB / 0.6986 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.1734, allocations: 198 kB / 0.6987 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.1734, allocations: 0 / 0.6987 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003099/0.1737, allocations: 213 kB / 0.6989 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.999e-05/0.1738, allocations: 63.41 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1738, allocations: 7.922 kB / 0.699 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1738, allocations: 240 / 0.699 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.375e-05/0.1739, allocations: 8 kB / 0.699 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1739, allocations: 0 / 0.699 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.41e-05/0.174, allocations: 4 kB / 0.699 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.174, allocations: 4 kB / 0.699 GB, free: 14.35 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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.0001273/0.1741, allocations: 151.5 kB / 0.6992 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.1742, allocations: 7.891 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.071e-05/0.1742, allocations: 7.906 kB / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.1742, allocations: 0 / 0.6992 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1742, allocations: 7.922 kB / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1742, allocations: 4 kB / 0.6992 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001889/0.1744, allocations: 169.6 kB / 0.6994 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1744, allocations: 3.984 kB / 0.6994 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.794e-05/0.1745, allocations: 4 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1745, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1745, allocations: 4 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1745, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1745, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.1748, allocations: 257 kB / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.844e-05/0.1749, allocations: 85.05 kB / 0.6997 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.1749, allocations: 3.984 kB / 0.6997 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-05/0.175, allocations: 4 kB / 0.6997 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1751, allocations: 7.938 kB / 0.6997 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.978e-06/0.1751, allocations: 7.984 kB / 0.6997 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.19e-05/0.1752, allocations: 95.27 kB / 0.6998 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1752, allocations: 0 / 0.6998 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003101/0.1755, allocations: 52.03 kB / 0.6999 GB, free: 13.39 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.0007528/0.1762, allocations: 0.835 MB / 0.7007 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000337/0.1766, allocations: 246.7 kB / 0.7009 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.1766, allocations: 4.031 kB / 0.7009 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1767, allocations: 99.38 kB / 0.701 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.177, allocations: 8.75 kB / 0.701 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.179, allocations: 1.746 MB / 0.7027 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.1793, allocations: 0.6846 MB / 0.7034 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.33e-05/0.1793, allocations: 0 / 0.7034 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.78e-05/0.1794, allocations: 25.55 kB / 0.7034 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1794, allocations: 0 / 0.7034 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.2035, allocations: 2.805 MB / 0.7062 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.993, allocations: 6.688 kB / 0.7062 GB, free: 6.914 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_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_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)