Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="Buildings_8_Buildings_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.00149/0.00149, allocations: 109.4 kB / 15.69 MB, free: 128 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.002092/0.002092, allocations: 190 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.635/1.635, allocations: 292.3 MB / 0.549 GB, free: 12.73 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 75.47 kB / 0.6718 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1816/0.183, allocations: 114.6 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002577/0.1856, allocations: 1.426 MB / 0.785 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.1868, allocations: 0.8287 MB / 0.7858 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.81e-05/0.1869, allocations: 3.938 kB / 0.7859 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 5.82e-05/0.187, allocations: 3.938 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.799e-05/0.187, allocations: 7.938 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005926/0.1876, allocations: 171 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.904e-05/0.1877, allocations: 51.97 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.553e-05/0.1878, allocations: 3.984 kB / 0.7861 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.541e-05/0.1878, allocations: 19.92 kB / 0.7861 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.659e-05/0.1879, allocations: 19.92 kB / 0.7861 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1879, allocations: 4 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003015/0.1882, allocations: 207.7 kB / 0.7863 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.974e-05/0.1883, allocations: 7.984 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1883, allocations: 27.86 kB / 0.7864 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.1886, allocations: 187.6 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1886, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.412e-06/0.1886, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.1886, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 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.0004466/0.1891, allocations: 434.7 kB / 0.7869 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1891, allocations: 8.031 kB / 0.787 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.1891, allocations: 34.75 kB / 0.787 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.782e-05/0.1892, allocations: 4.938 kB / 0.787 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.1893, allocations: 172.3 kB / 0.7872 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.1893, allocations: 4.375 kB / 0.7872 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.1893, allocations: 3.938 kB / 0.7872 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001795/0.1895, allocations: 77.61 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.1895, allocations: 0 / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1895, allocations: 4 kB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.1896, allocations: 0 / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.1897, allocations: 47.95 kB / 0.7873 GB, free: 9.406 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003666/0.19, allocations: 284.8 kB / 0.7876 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.1902, allocations: 54.5 kB / 0.7876 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.17e-05/0.1903, allocations: 48.91 kB / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.1903, allocations: 0 / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.1903, allocations: 34.56 kB / 0.7877 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1903, allocations: 0 / 0.7877 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003554/0.1907, allocations: 191.2 kB / 0.7879 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.1907, allocations: 77.11 kB / 0.7879 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.775e-05/0.1908, allocations: 121.8 kB / 0.7881 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.776e-05/0.1908, allocations: 29.7 kB / 0.7881 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.1909, allocations: 88.08 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.532e-05/0.1909, allocations: 7.906 kB / 0.7882 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.1909, allocations: 25.73 kB / 0.7882 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.191, allocations: 326.7 kB / 0.7885 GB, free: 8.008 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.697e-05/0.1911, allocations: 63.89 kB / 0.7886 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.531e-05/0.1913, allocations: 55.97 kB / 0.7886 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.1915, allocations: 193.9 kB / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1915, allocations: 0 / 0.7888 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002568/0.1917, allocations: 216.9 kB / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/0.1918, allocations: 67.39 kB / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1918, allocations: 0 / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.1918, allocations: 0 / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.568e-05/0.1919, allocations: 7.938 kB / 0.7891 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.1919, allocations: 0 / 0.7891 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.62e-05/0.1919, allocations: 11.98 kB / 0.7891 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.192, allocations: 0 / 0.7891 GB, free: 7.352 MB / 0.6075 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 8.969e-05/0.1921, allocations: 152.1 kB / 0.7893 GB, free: 7.188 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1921, allocations: 7.906 kB / 0.7893 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.057e-05/0.1921, allocations: 12.14 kB / 0.7893 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1921, allocations: 3.984 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1921, allocations: 0 / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1921, allocations: 4 kB / 0.7893 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.1923, allocations: 177.5 kB / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1923, allocations: 0 / 0.7894 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.717e-05/0.1923, allocations: 4 kB / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1923, allocations: 0 / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.1924, allocations: 0 / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1924, allocations: 0 / 0.7895 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1924, allocations: 8.047 kB / 0.7895 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.1926, allocations: 257 kB / 0.7897 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.1927, allocations: 77.11 kB / 0.7898 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.1927, allocations: 4 kB / 0.7898 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.795e-05/0.1928, allocations: 8 kB / 0.7898 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.1929, allocations: 3.984 kB / 0.7898 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.1929, allocations: 4 kB / 0.7898 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.491e-05/0.193, allocations: 103.7 kB / 0.7899 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.193, allocations: 3.938 kB / 0.7899 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003245/0.1933, allocations: 63.92 kB / 0.79 GB, free: 6.363 MB / 0.6075 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.0006278/0.1939, allocations: 0.8195 MB / 0.7908 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003044/0.1942, allocations: 250.7 kB / 0.791 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1943, allocations: 0 / 0.791 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.1944, allocations: 103.4 kB / 0.7911 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.1946, allocations: 2.438 kB / 0.7911 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1962, allocations: 1.764 MB / 0.7928 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.1965, allocations: 0.6846 MB / 0.7935 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 1.724e-05/0.1965, allocations: 4 kB / 0.7935 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.089e-05/0.1965, allocations: 19.44 kB / 0.7935 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.1966, allocations: 0 / 0.7935 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.2141, allocations: 2.795 MB / 0.7962 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.428, allocations: 20.84 kB / 0.7963 GB, free: 15.88 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)