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.001238/0.001238, allocations: 108 kB / 15.6 MB, free: 132 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.00137/0.00137, allocations: 198.1 kB / 16.53 MB, free: 6.391 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002266/0.002266, allocations: 290.9 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9351/0.9351, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 102.7 kB / 0.5954 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1368, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002239/0.1391, allocations: 1.408 MB / 0.6817 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1403, allocations: 0.7734 MB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.585e-05/0.1403, allocations: 0.7188 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.403e-05/0.1404, allocations: 3.938 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.187e-05/0.1404, allocations: 9.438 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005589/0.141, allocations: 178.8 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.654e-05/0.1411, allocations: 47.98 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.804e-05/0.1412, allocations: 3.938 kB / 0.6827 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.472e-05/0.1412, allocations: 19.92 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.1412, allocations: 15.98 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1413, allocations: 4 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.1416, allocations: 207.6 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.1416, allocations: 11.94 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.461e-05/0.1417, allocations: 23.86 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.1419, allocations: 191.6 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.1419, allocations: 0 / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1419, allocations: 0 / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.1419, allocations: 0 / 0.6831 GB, free: 13.7 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.0004295/0.1424, allocations: 426.7 kB / 0.6835 GB, free: 13.22 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1424, allocations: 8.031 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.1424, allocations: 34.75 kB / 0.6836 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.101e-05/0.1425, allocations: 4.938 kB / 0.6836 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.923e-05/0.1426, allocations: 176.3 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.1426, allocations: 384 / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1426, allocations: 4.375 kB / 0.6837 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001695/0.1428, allocations: 81.73 kB / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.1428, allocations: 0 / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1428, allocations: 0 / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.1428, allocations: 4 kB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.143, allocations: 55.89 kB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003378/0.1433, allocations: 276.8 kB / 0.6841 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.1434, allocations: 62.48 kB / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.297e-05/0.1435, allocations: 45.42 kB / 0.6842 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.1435, allocations: 4 kB / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.1436, allocations: 30.56 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1436, allocations: 4 kB / 0.6843 GB, free: 12.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003663/0.1439, allocations: 183.2 kB / 0.6845 GB, free: 12.13 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.144, allocations: 85.11 kB / 0.6845 GB, free: 12.03 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.677e-05/0.1441, allocations: 121.8 kB / 0.6847 GB, free: 11.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1441, allocations: 25.7 kB / 0.6847 GB, free: 11.87 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.842e-05/0.1442, allocations: 88.14 kB / 0.6848 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.1442, allocations: 3.906 kB / 0.6848 GB, free: 11.78 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.1442, allocations: 29.64 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.86e-05/0.1443, allocations: 322.8 kB / 0.6851 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.437e-05/0.1444, allocations: 55.97 kB / 0.6852 GB, free: 11.36 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.82e-05/0.1445, allocations: 59.95 kB / 0.6852 GB, free: 11.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.1447, allocations: 197.9 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1447, allocations: 0 / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002627/0.145, allocations: 212.9 kB / 0.6856 GB, free: 10.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.1451, allocations: 71.33 kB / 0.6857 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1451, allocations: 4.234 kB / 0.6857 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.1451, allocations: 0 / 0.6857 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.019e-05/0.1452, allocations: 4 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1452, allocations: 3.938 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.677e-05/0.1452, allocations: 7.984 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.1452, allocations: 7.984 kB / 0.6857 GB, free: 10.75 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.144e-05/0.1453, allocations: 148.8 kB / 0.6858 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.1454, allocations: 7.891 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.76e-05/0.1454, allocations: 11.91 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1454, allocations: 0 / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1454, allocations: 0 / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1454, allocations: 3.938 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.1456, allocations: 181.5 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1456, allocations: 64 / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.888e-05/0.1456, allocations: 4 kB / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1456, allocations: 0 / 0.686 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1457, allocations: 8 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1457, allocations: 0 / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1457, allocations: 0 / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.1459, allocations: 253.1 kB / 0.6863 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.063e-05/0.146, allocations: 84.95 kB / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.146, allocations: 0 / 0.6864 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.941e-05/0.1461, allocations: 4 kB / 0.6864 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.011e-05/0.1462, allocations: 11.98 kB / 0.6864 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.1462, allocations: 0 / 0.6864 GB, free: 9.941 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.238e-05/0.1462, allocations: 99.73 kB / 0.6865 GB, free: 9.844 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1462, allocations: 0 / 0.6865 GB, free: 9.844 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1466, allocations: 67.98 kB / 0.6865 GB, free: 9.777 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.0006209/0.1472, allocations: 0.8233 MB / 0.6874 GB, free: 8.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002978/0.1475, allocations: 246.7 kB / 0.6876 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1475, allocations: 0 / 0.6876 GB, free: 8.656 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.1476, allocations: 103.4 kB / 0.6877 GB, free: 8.543 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.1478, allocations: 4 kB / 0.6877 GB, free: 8.539 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.1495, allocations: 1.745 MB / 0.6894 GB, free: 6.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.1497, allocations: 0.6924 MB / 0.6901 GB, free: 5.984 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.254e-05/0.1497, allocations: 0 / 0.6901 GB, free: 5.984 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.1498, allocations: 19.38 kB / 0.6901 GB, free: 5.965 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1498, allocations: 0 / 0.6901 GB, free: 5.965 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01907/0.1688, allocations: 2.821 MB / 0.6928 GB, free: 3.309 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.038/7.207, allocations: 10.12 kB / 0.6929 GB, free: 3.301 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 & 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)