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.001128/0.001128, allocations: 104 kB / 15.6 MB, free: 148 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.001229/0.001229, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002454/0.002454, allocations: 290.4 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9826/0.9826, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 98.73 kB / 0.5954 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1572, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002743/0.16, allocations: 1.424 MB / 0.6817 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.1614, allocations: 0.7666 MB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.35e-05/0.1615, allocations: 3.938 kB / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.867e-05/0.1616, allocations: 0 / 0.6824 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.782e-05/0.1616, allocations: 16.47 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.1623, allocations: 175.9 kB / 0.6826 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.1624, allocations: 45.97 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.322e-05/0.1625, allocations: 8.672 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.848e-05/0.1626, allocations: 19.94 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.905e-05/0.1626, allocations: 19.95 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.623e-05/0.1626, allocations: 4 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.163, allocations: 203.7 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.036e-05/0.163, allocations: 7.938 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.148e-05/0.1631, allocations: 27.86 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002808/0.1634, allocations: 187.6 kB / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1634, allocations: 0 / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1634, allocations: 0 / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1634, allocations: 0 / 0.6831 GB, free: 13.68 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.0004684/0.1639, allocations: 430.7 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1639, allocations: 8.031 kB / 0.6835 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.127e-05/0.1639, allocations: 34.75 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.056e-05/0.164, allocations: 4.922 kB / 0.6836 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.1641, allocations: 168.3 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1641, allocations: 4.375 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.099e-05/0.1641, allocations: 4.375 kB / 0.6837 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001972/0.1643, allocations: 81.72 kB / 0.6838 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1644, allocations: 0 / 0.6838 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.1644, allocations: 4 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.1645, allocations: 7.938 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001469/0.1646, allocations: 43.97 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.165, allocations: 280.8 kB / 0.6841 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.1651, allocations: 66.42 kB / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.083e-05/0.1652, allocations: 49.44 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.167e-05/0.1652, allocations: 4 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.1653, allocations: 34.55 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1653, allocations: 0 / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003736/0.1656, allocations: 179.2 kB / 0.6845 GB, free: 12.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.1657, allocations: 81.11 kB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.1658, allocations: 121.8 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.1658, allocations: 33.73 kB / 0.6847 GB, free: 11.84 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.24e-05/0.1659, allocations: 88.08 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.1659, allocations: 11.89 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.166, allocations: 17.72 kB / 0.6848 GB, free: 11.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1661, allocations: 322.8 kB / 0.6851 GB, free: 11.39 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.1662, allocations: 59.95 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.075e-05/0.1663, allocations: 55.97 kB / 0.6852 GB, free: 11.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.1665, allocations: 198 kB / 0.6854 GB, free: 11.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1665, allocations: 0 / 0.6854 GB, free: 11.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002846/0.1668, allocations: 220.9 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.1669, allocations: 63.41 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1669, allocations: 0 / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1669, allocations: 0 / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.693e-05/0.167, allocations: 11.92 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.167, allocations: 0 / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.515e-05/0.167, allocations: 4 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.167, allocations: 4 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB 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.758e-05/0.1672, allocations: 156.8 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.1672, allocations: 7.906 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.892e-05/0.1672, allocations: 3.906 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.1672, allocations: 0 / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1672, allocations: 3.938 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1672, allocations: 0 / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.1674, allocations: 181.5 kB / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1675, allocations: 0 / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.463e-05/0.1675, allocations: 0 / 0.686 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.412e-05/0.1676, allocations: 12.22 kB / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.1676, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1677, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1677, allocations: 0 / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.168, allocations: 257.1 kB / 0.6863 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.168, allocations: 81.02 kB / 0.6864 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.168, allocations: 0 / 0.6864 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.936e-05/0.1681, allocations: 12.02 kB / 0.6864 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.728e-05/0.1682, allocations: 7.938 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-06/0.1682, allocations: 4 kB / 0.6864 GB, free: 9.918 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.998e-05/0.1683, allocations: 95.27 kB / 0.6865 GB, free: 9.824 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1683, allocations: 0 / 0.6865 GB, free: 9.824 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000308/0.1686, allocations: 63.98 kB / 0.6865 GB, free: 9.762 MB / 494.1 MB 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.0006734/0.1693, allocations: 0.835 MB / 0.6874 GB, free: 8.895 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003124/0.1696, allocations: 234.7 kB / 0.6876 GB, free: 8.641 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.1696, allocations: 4 kB / 0.6876 GB, free: 8.637 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.1698, allocations: 99.38 kB / 0.6877 GB, free: 8.527 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002148/0.17, allocations: 8 kB / 0.6877 GB, free: 8.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.1718, allocations: 1.757 MB / 0.6894 GB, free: 6.672 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1721, allocations: 0.6807 MB / 0.6901 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.414e-05/0.1721, allocations: 0 / 0.6901 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.063e-05/0.1721, allocations: 19.42 kB / 0.6901 GB, free: 5.945 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1721, allocations: 0 / 0.6901 GB, free: 5.945 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.1939, allocations: 2.815 MB / 0.6928 GB, free: 3.289 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.469/7.663, allocations: 11.47 kB / 0.6928 GB, free: 3.285 MB / 494.1 MB (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)