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.004591/0.004591, allocations: 101.3 kB / 15.73 MB, free: 6.012 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.001008/0.001008, allocations: 194.4 kB / 16.67 MB, free: 5.949 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.277/1.277, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002057/0.002057, allocations: 279.2 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.92/0.92, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002834/0.002834, allocations: 88.38 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1618, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002553/0.1644, allocations: 1.412 MB / 0.7673 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1657, allocations: 0.7847 MB / 0.7681 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.625e-05/0.1658, allocations: 3.938 kB / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.777e-05/0.1659, allocations: 7.938 kB / 0.7681 GB, free: 6.707 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.842e-05/0.1659, allocations: 3.938 kB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.1666, allocations: 179.2 kB / 0.7682 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.1668, allocations: 47.97 kB / 0.7683 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.857e-05/0.1669, allocations: 15.97 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.405e-05/0.1669, allocations: 8 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.794e-05/0.1669, allocations: 19.92 kB / 0.7683 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.499e-05/0.167, allocations: 4 kB / 0.7683 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.1673, allocations: 199.7 kB / 0.7685 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.496e-05/0.1674, allocations: 15.91 kB / 0.7685 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.629e-05/0.1674, allocations: 15.94 kB / 0.7686 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.1677, allocations: 199.5 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1677, allocations: 4 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.263e-06/0.1677, allocations: 0 / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.1677, allocations: 0 / 0.7687 GB, free: 6.012 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.0004757/0.1682, allocations: 426.7 kB / 0.7692 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1682, allocations: 12.03 kB / 0.7692 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.011e-05/0.1683, allocations: 34.73 kB / 0.7692 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.063e-05/0.1683, allocations: 8.844 kB / 0.7692 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.1684, allocations: 164.4 kB / 0.7694 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.1684, allocations: 4.375 kB / 0.7694 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.481e-05/0.1685, allocations: 8.375 kB / 0.7694 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.1686, allocations: 77.78 kB / 0.7695 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.1687, allocations: 3.938 kB / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.1687, allocations: 0 / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1687, allocations: 0 / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.1688, allocations: 47.91 kB / 0.7695 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003964/0.1692, allocations: 288.7 kB / 0.7698 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.1693, allocations: 66.53 kB / 0.7698 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.041e-05/0.1694, allocations: 44.92 kB / 0.7699 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.1694, allocations: 3.984 kB / 0.7699 GB, free: 4.672 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.1695, allocations: 38.5 kB / 0.7699 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1695, allocations: 0 / 0.7699 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003743/0.1699, allocations: 175.3 kB / 0.7701 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.1699, allocations: 81.14 kB / 0.7702 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.17, allocations: 125.8 kB / 0.7703 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.1701, allocations: 29.7 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.1701, allocations: 88.05 kB / 0.7704 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.699e-05/0.1701, allocations: 11.89 kB / 0.7704 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.437e-05/0.1702, allocations: 17.72 kB / 0.7704 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1703, allocations: 322.8 kB / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.691e-05/0.1704, allocations: 59.97 kB / 0.7708 GB, free: 3.668 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.645e-05/0.1705, allocations: 63.91 kB / 0.7709 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.1707, allocations: 189.8 kB / 0.771 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1707, allocations: 4 kB / 0.771 GB, free: 3.395 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002559/0.171, allocations: 217 kB / 0.7712 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.078e-05/0.171, allocations: 63.41 kB / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.171, allocations: 0 / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1711, allocations: 0 / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.745e-05/0.1711, allocations: 16.05 kB / 0.7713 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.777e-06/0.1711, allocations: 0 / 0.7713 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.511e-05/0.1712, allocations: 7.906 kB / 0.7713 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1712, allocations: 4 kB / 0.7713 GB, free: 3.062 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 9.362e-05/0.1713, allocations: 148.1 kB / 0.7715 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.684e-05/0.1713, allocations: 7.938 kB / 0.7715 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.059e-05/0.1714, allocations: 7.906 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1714, allocations: 0 / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1714, allocations: 0 / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.1714, allocations: 7.938 kB / 0.7715 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.1715, allocations: 181.5 kB / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1715, allocations: 0 / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.1716, allocations: 7.984 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1716, allocations: 0 / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.1716, allocations: 4 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1716, allocations: 0 / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1716, allocations: 0 / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.1719, allocations: 253 kB / 0.7719 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.706e-05/0.1719, allocations: 81.11 kB / 0.772 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1719, allocations: 0 / 0.772 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.915e-05/0.172, allocations: 7.984 kB / 0.772 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.1721, allocations: 4 kB / 0.772 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1721, allocations: 4 kB / 0.772 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.98e-05/0.1722, allocations: 103.6 kB / 0.7721 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1722, allocations: 0 / 0.7721 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003037/0.1725, allocations: 59.89 kB / 0.7722 GB, free: 2.094 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.0006397/0.1732, allocations: 0.8313 MB / 0.773 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002996/0.1735, allocations: 238.7 kB / 0.7732 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1735, allocations: 0 / 0.7732 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.1736, allocations: 107.3 kB / 0.7733 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.1738, allocations: 10.34 kB / 0.7733 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3063/0.4802, allocations: 1.744 MB / 0.775 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001156/0.4803, allocations: 0.6881 MB / 0.7757 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.821e-05/0.4804, allocations: 1.344 kB / 0.7757 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.4804, allocations: 16.7 kB / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of SimCode: time 1.042e-06/0.4804, allocations: 0 / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.4981, allocations: 2.862 MB / 0.7785 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.158/7.656, allocations: 12.69 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)