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.005269/0.005269, allocations: 100.9 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.001425/0.001426, allocations: 202.3 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00256/0.00256, allocations: 278.5 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9995/0.9995, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002887/0.002887, allocations: 99.78 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1581, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002438/0.1606, allocations: 1.414 MB / 0.7673 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.162, allocations: 0.7845 MB / 0.7681 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.919e-05/0.162, allocations: 0 / 0.7681 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.054e-05/0.1621, allocations: 0 / 0.7681 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.298e-05/0.1621, allocations: 7.875 kB / 0.7681 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006312/0.1628, allocations: 175.9 kB / 0.7682 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.1629, allocations: 47.92 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.792e-05/0.163, allocations: 15.92 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.26e-05/0.163, allocations: 12 kB / 0.7683 GB, free: 6.477 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.1631, allocations: 27.84 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.1631, allocations: 4 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003359/0.1634, allocations: 199.7 kB / 0.7685 GB, free: 6.25 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.197e-05/0.1635, allocations: 15.92 kB / 0.7685 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.761e-05/0.1635, allocations: 11.94 kB / 0.7686 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.1638, allocations: 191.5 kB / 0.7687 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1638, allocations: 0 / 0.7687 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.613e-06/0.1638, allocations: 4 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.1638, allocations: 0 / 0.7687 GB, free: 6.031 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.0005451/0.1644, allocations: 434.5 kB / 0.7692 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1644, allocations: 12.03 kB / 0.7692 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.1645, allocations: 30.75 kB / 0.7692 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/0.1645, allocations: 8.891 kB / 0.7692 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.1647, allocations: 172.3 kB / 0.7694 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.1647, allocations: 4.375 kB / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.927e-06/0.1647, allocations: 384 / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.1649, allocations: 81.78 kB / 0.7695 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1649, allocations: 0 / 0.7695 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.1649, allocations: 8 kB / 0.7695 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.1649, allocations: 0 / 0.7695 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.165, allocations: 47.95 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004061/0.1654, allocations: 288.8 kB / 0.7698 GB, free: 4.805 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.1656, allocations: 66.52 kB / 0.7698 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.557e-05/0.1657, allocations: 48.88 kB / 0.7699 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1657, allocations: 0 / 0.7699 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.1657, allocations: 30.56 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1657, allocations: 0 / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.000382/0.1661, allocations: 183.3 kB / 0.7701 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.1662, allocations: 81.09 kB / 0.7702 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.1663, allocations: 129.8 kB / 0.7703 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1663, allocations: 25.73 kB / 0.7703 GB, free: 4.184 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.1664, allocations: 96.11 kB / 0.7704 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.219e-05/0.1664, allocations: 7.953 kB / 0.7704 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.1664, allocations: 21.72 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1666, allocations: 318.8 kB / 0.7707 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.1667, allocations: 55.97 kB / 0.7708 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.341e-05/0.1668, allocations: 59.95 kB / 0.7709 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.167, allocations: 193.9 kB / 0.771 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.167, allocations: 0 / 0.771 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002875/0.1673, allocations: 220.9 kB / 0.7713 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.697e-05/0.1674, allocations: 69.75 kB / 0.7713 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.1674, allocations: 3.984 kB / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1674, allocations: 3.938 kB / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.473e-05/0.1675, allocations: 0 / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1675, allocations: 4 kB / 0.7713 GB, free: 3.082 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.557e-05/0.1676, allocations: 7.938 kB / 0.7713 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.1676, allocations: 0 / 0.7713 GB, free: 3.074 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: 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.0001145/0.1677, allocations: 156.1 kB / 0.7715 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.1677, allocations: 7.953 kB / 0.7715 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.224e-05/0.1678, allocations: 3.906 kB / 0.7715 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1678, allocations: 4 kB / 0.7715 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1678, allocations: 3.984 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1678, allocations: 0 / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.168, allocations: 169.6 kB / 0.7717 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.168, allocations: 7.922 kB / 0.7717 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.168, allocations: 12.06 kB / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.168, allocations: 0 / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.168, allocations: 0 / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.168, allocations: 4 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.168, allocations: 0 / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.1683, allocations: 249.1 kB / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.772e-05/0.1684, allocations: 85.06 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.1684, allocations: 3.984 kB / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.61e-05/0.1685, allocations: 8.031 kB / 0.772 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/0.1686, allocations: 8 kB / 0.772 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.988e-06/0.1686, allocations: 3.984 kB / 0.772 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.584e-05/0.1687, allocations: 99.64 kB / 0.7721 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1687, allocations: 0 / 0.7721 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003076/0.169, allocations: 51.94 kB / 0.7722 GB, free: 2.105 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: 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.0008028/0.1698, allocations: 0.8429 MB / 0.773 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003622/0.1702, allocations: 242.7 kB / 0.7732 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1702, allocations: 0 / 0.7732 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.1703, allocations: 99.38 kB / 0.7733 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.1706, allocations: 8.094 kB / 0.7733 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2815/0.4521, allocations: 1.754 MB / 0.775 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.4522, allocations: 0.6859 MB / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.878e-05/0.4522, allocations: 0.5625 kB / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.4523, allocations: 18.34 kB / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/0.4523, allocations: 0 / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.4755, allocations: 2.833 MB / 0.7785 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.585/8.061, allocations: 9.812 kB / 0.7785 GB, free: 12.93 MB / 0.5606 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)