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.004999/0.005, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001134/0.001134, allocations: 195.2 kB / 16.67 MB, free: 5.969 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 286.4 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9133/0.9133, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 99.84 kB / 0.681 GB, free: 7.418 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3685, allocations: 86.97 MB / 0.7659 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002143/0.3707, allocations: 1.41 MB / 0.7673 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.3719, allocations: 0.7818 MB / 0.7681 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.23e-05/0.3719, allocations: 4 kB / 0.7681 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 6.557e-05/0.372, allocations: 7.938 kB / 0.7681 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.244e-05/0.3721, allocations: 0 / 0.7681 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006062/0.3727, allocations: 178.2 kB / 0.7682 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.3728, allocations: 51.91 kB / 0.7683 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.912e-05/0.3729, allocations: 11.98 kB / 0.7683 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.576e-05/0.3729, allocations: 11.98 kB / 0.7683 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.076e-05/0.373, allocations: 19.92 kB / 0.7683 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.373, allocations: 4 kB / 0.7683 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.3733, allocations: 203.7 kB / 0.7685 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.615e-05/0.3734, allocations: 11.98 kB / 0.7685 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.551e-05/0.3734, allocations: 19.86 kB / 0.7686 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.3737, allocations: 193.1 kB / 0.7687 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3737, allocations: 4 kB / 0.7687 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.252e-06/0.3737, allocations: 4 kB / 0.7687 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.3737, allocations: 0 / 0.7687 GB, free: 1.043 MB / 0.5294 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.0004469/0.3741, allocations: 433.2 kB / 0.7692 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3742, allocations: 12.03 kB / 0.7692 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.291e-05/0.3742, allocations: 30.75 kB / 0.7692 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.3743, allocations: 8.891 kB / 0.7692 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.3744, allocations: 172.3 kB / 0.7694 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.3744, allocations: 4.375 kB / 0.7694 GB, free: 300 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.3744, allocations: 8.312 kB / 0.7694 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001747/0.3746, allocations: 81.78 kB / 0.7695 GB, free: 204 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.3746, allocations: 3.938 kB / 0.7695 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.3746, allocations: 0 / 0.7695 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3746, allocations: 0 / 0.7695 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.3747, allocations: 47.95 kB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.3751, allocations: 284.8 kB / 0.7698 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.3752, allocations: 66.58 kB / 0.7698 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.776e-05/0.3753, allocations: 44.88 kB / 0.7699 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.3753, allocations: 0 / 0.7699 GB, free: 15.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.3753, allocations: 34.5 kB / 0.7699 GB, free: 15.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.3753, allocations: 0 / 0.7699 GB, free: 15.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0003448/0.3757, allocations: 183.3 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.3757, allocations: 81.14 kB / 0.7702 GB, free: 15.37 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.679e-05/0.3758, allocations: 137.7 kB / 0.7703 GB, free: 15.22 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.3759, allocations: 25.7 kB / 0.7703 GB, free: 15.19 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.3759, allocations: 84.14 kB / 0.7704 GB, free: 15.11 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.356e-05/0.3759, allocations: 7.953 kB / 0.7704 GB, free: 15.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.376, allocations: 25.7 kB / 0.7704 GB, free: 15.07 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.863e-05/0.376, allocations: 314.8 kB / 0.7707 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.132e-05/0.3761, allocations: 59.95 kB / 0.7708 GB, free: 14.69 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.427e-05/0.3762, allocations: 63.91 kB / 0.7709 GB, free: 14.63 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000188/0.3764, allocations: 189.9 kB / 0.771 GB, free: 14.42 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.3764, allocations: 0 / 0.771 GB, free: 14.42 MB / 0.545 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002486/0.3767, allocations: 217 kB / 0.7713 GB, free: 14.19 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.599e-05/0.3768, allocations: 71.39 kB / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.3768, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.3768, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.938e-05/0.3768, allocations: 0 / 0.7713 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3769, allocations: 8 kB / 0.7713 GB, free: 14.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.405e-05/0.3769, allocations: 7.984 kB / 0.7713 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.3769, allocations: 0 / 0.7713 GB, free: 14.09 MB / 0.545 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 9.543e-05/0.377, allocations: 157.9 kB / 0.7715 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.015e-05/0.3771, allocations: 11.89 kB / 0.7715 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.957e-05/0.3771, allocations: 3.906 kB / 0.7715 GB, free: 13.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3771, allocations: 4 kB / 0.7715 GB, free: 13.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3771, allocations: 0 / 0.7715 GB, free: 13.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3771, allocations: 4 kB / 0.7715 GB, free: 13.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.3773, allocations: 181.5 kB / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3773, allocations: 0 / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.661e-05/0.3773, allocations: 4 kB / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.3773, allocations: 0 / 0.7717 GB, free: 13.67 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3773, allocations: 8 kB / 0.7717 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3773, allocations: 4 kB / 0.7717 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3773, allocations: 0 / 0.7717 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.3776, allocations: 253.1 kB / 0.7719 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.223e-05/0.3776, allocations: 89 kB / 0.772 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.3776, allocations: 0 / 0.772 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.735e-05/0.3777, allocations: 4.234 kB / 0.772 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.3778, allocations: 11.98 kB / 0.772 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.3778, allocations: 0 / 0.772 GB, free: 13.27 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.056e-05/0.3779, allocations: 99.2 kB / 0.7721 GB, free: 13.17 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3779, allocations: 0 / 0.7721 GB, free: 13.17 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002897/0.3782, allocations: 55.92 kB / 0.7722 GB, free: 13.11 MB / 0.545 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.000594/0.3788, allocations: 0.835 MB / 0.773 GB, free: 12.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002926/0.3791, allocations: 242.7 kB / 0.7732 GB, free: 11.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3791, allocations: 0 / 0.7732 GB, free: 11.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.3792, allocations: 107.3 kB / 0.7733 GB, free: 11.87 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.3794, allocations: 8.562 kB / 0.7733 GB, free: 11.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.381, allocations: 1.752 MB / 0.7751 GB, free: 10.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.3812, allocations: 0.6846 MB / 0.7757 GB, free: 9.305 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 1.711e-05/0.3812, allocations: 3.984 kB / 0.7757 GB, free: 9.301 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/0.3812, allocations: 11.44 kB / 0.7757 GB, free: 9.289 MB / 0.545 GB Notification: Performance of SimCode: time 4.51e-07/0.3812, allocations: 3.938 kB / 0.7757 GB, free: 9.285 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.3976, allocations: 2.826 MB / 0.7785 GB, free: 6.641 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.039/7.437, allocations: 8.375 kB / 0.7785 GB, free: 6.633 MB / 0.545 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)