Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="IBPSA_latest_IBPSA_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.001672/0.001672, allocations: 103.4 kB / 16.4 MB, free: 6.449 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.001803/0.001804, allocations: 189.2 kB / 17.34 MB, free: 5.742 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.396/1.396, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7999/0.7999, allocations: 126.7 MB / 417.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 67.53 kB / 0.5735 GB, free: 27.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1584, allocations: 78.86 MB / 0.6506 GB, free: 3.73 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002544/0.161, allocations: 1.416 MB / 0.6519 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1623, allocations: 0.774 MB / 0.6527 GB, free: 1.523 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.04e-05/0.1623, allocations: 8 kB / 0.6527 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.584e-05/0.1624, allocations: 7.922 kB / 0.6527 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.467e-05/0.1625, allocations: 7.922 kB / 0.6527 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.1631, allocations: 170.4 kB / 0.6529 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001231/0.1632, allocations: 51.91 kB / 0.6529 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.853e-05/0.1633, allocations: 4 kB / 0.6529 GB, free: 1.281 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.393e-05/0.1633, allocations: 11.98 kB / 0.6529 GB, free: 1.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.1634, allocations: 27.91 kB / 0.653 GB, free: 1.242 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.1634, allocations: 4 kB / 0.653 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000352/0.1638, allocations: 203.7 kB / 0.6532 GB, free: 1.039 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.195e-05/0.1638, allocations: 7.938 kB / 0.6532 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.152e-05/0.1639, allocations: 19.92 kB / 0.6532 GB, free: 1.012 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.1642, allocations: 199.7 kB / 0.6534 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1642, allocations: 0 / 0.6534 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1642, allocations: 0 / 0.6534 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.1642, allocations: 0 / 0.6534 GB, free: 0.8164 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.0004971/0.1647, allocations: 434.4 kB / 0.6538 GB, free: 340 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1647, allocations: 12.03 kB / 0.6538 GB, free: 328 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.748e-05/0.1648, allocations: 30.75 kB / 0.6538 GB, free: 288 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.1648, allocations: 4.938 kB / 0.6539 GB, free: 284 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.1649, allocations: 176.2 kB / 0.654 GB, free: 68 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.165, allocations: 12.12 kB / 0.654 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.165, allocations: 3.938 kB / 0.654 GB, free: 52 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.1652, allocations: 81.7 kB / 0.6541 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.1652, allocations: 0 / 0.6541 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1652, allocations: 0 / 0.6541 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.1652, allocations: 0 / 0.6541 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.1653, allocations: 51.84 kB / 0.6542 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003799/0.1657, allocations: 284.8 kB / 0.6544 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.1658, allocations: 58.48 kB / 0.6545 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.185e-05/0.1659, allocations: 48.91 kB / 0.6545 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.166, allocations: 0 / 0.6545 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.166, allocations: 30.56 kB / 0.6546 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 2.845e-06/0.166, allocations: 0 / 0.6546 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003815/0.1664, allocations: 195.2 kB / 0.6548 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.1664, allocations: 77.11 kB / 0.6548 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.1666, allocations: 125.8 kB / 0.6549 GB, free: 15 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1666, allocations: 25.7 kB / 0.655 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.688e-05/0.1667, allocations: 88.09 kB / 0.6551 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.589e-05/0.1667, allocations: 7.953 kB / 0.6551 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.766e-05/0.1668, allocations: 25.7 kB / 0.6551 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1669, allocations: 318.8 kB / 0.6554 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.167, allocations: 56 kB / 0.6554 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.514e-05/0.1671, allocations: 59.95 kB / 0.6555 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.1674, allocations: 197.8 kB / 0.6557 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1674, allocations: 0 / 0.6557 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002983/0.1677, allocations: 213 kB / 0.6559 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.1678, allocations: 63.39 kB / 0.656 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.1678, allocations: 0 / 0.656 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.1678, allocations: 4 kB / 0.656 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.037e-05/0.1678, allocations: 4 kB / 0.656 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1678, allocations: 0 / 0.656 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.851e-05/0.1679, allocations: 19.88 kB / 0.656 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.1679, allocations: 3.938 kB / 0.656 GB, free: 13.86 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.0001126/0.168, allocations: 143.5 kB / 0.6561 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.906e-05/0.1681, allocations: 7.984 kB / 0.6561 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.186e-05/0.1681, allocations: 7.969 kB / 0.6561 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1681, allocations: 4 kB / 0.6561 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1681, allocations: 8 kB / 0.6561 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1681, allocations: 0 / 0.6561 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.1683, allocations: 177.5 kB / 0.6563 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1683, allocations: 7.875 kB / 0.6563 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.617e-05/0.1683, allocations: 4 kB / 0.6563 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1684, allocations: 0 / 0.6563 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-06/0.1684, allocations: 3.938 kB / 0.6563 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1684, allocations: 0 / 0.6563 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1684, allocations: 4 kB / 0.6563 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002833/0.1687, allocations: 249.1 kB / 0.6566 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.843e-05/0.1687, allocations: 81.3 kB / 0.6566 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.1687, allocations: 4 kB / 0.6567 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.863e-05/0.1688, allocations: 8 kB / 0.6567 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.1689, allocations: 11.97 kB / 0.6567 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.1689, allocations: 0 / 0.6567 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.147e-05/0.169, allocations: 99.2 kB / 0.6568 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.169, allocations: 0 / 0.6568 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003016/0.1693, allocations: 63.95 kB / 0.6568 GB, free: 12.88 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.0007186/0.1701, allocations: 0.8233 MB / 0.6576 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003367/0.1704, allocations: 238.7 kB / 0.6579 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1704, allocations: 4.031 kB / 0.6579 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.1706, allocations: 107.3 kB / 0.658 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.1708, allocations: 5.125 kB / 0.658 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.1726, allocations: 1.76 MB / 0.6597 GB, free: 9.793 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.1729, allocations: 0.6807 MB / 0.6604 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.543e-05/0.173, allocations: 4 kB / 0.6604 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.173, allocations: 19.42 kB / 0.6604 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.173, allocations: 0 / 0.6604 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.1968, allocations: 2.82 MB / 0.6631 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.697/7.894, allocations: 13.61 kB / 0.6631 GB, free: 6.375 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > IBPSA_latest_IBPSA.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)