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: translateModel(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") translateModel(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 101.6 kB / 16.37 MB, free: 6.43 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.001272/0.001272, allocations: 195.8 kB / 17.31 MB, free: 5.781 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.238/1.238, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002026/0.002026, allocations: 286.5 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.882/0.882, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 94.39 kB / 0.5967 GB, free: 14.42 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1451, allocations: 86.97 MB / 0.6816 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002229/0.1474, allocations: 1.408 MB / 0.683 GB, free: 6.016 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1485, allocations: 0.7769 MB / 0.6838 GB, free: 5.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.494e-05/0.1485, allocations: 4 kB / 0.6838 GB, free: 5.227 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.412e-05/0.1486, allocations: 7.922 kB / 0.6838 GB, free: 5.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.596e-05/0.1486, allocations: 0 / 0.6838 GB, free: 5.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005392/0.1492, allocations: 178.7 kB / 0.6839 GB, free: 5.047 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.483e-05/0.1493, allocations: 51.94 kB / 0.684 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.28e-05/0.1494, allocations: 7.938 kB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.037e-05/0.1494, allocations: 15.92 kB / 0.684 GB, free: 4.973 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.215e-05/0.1494, allocations: 23.86 kB / 0.684 GB, free: 4.949 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.258e-05/0.1495, allocations: 8 kB / 0.684 GB, free: 4.941 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002936/0.1498, allocations: 207.7 kB / 0.6842 GB, free: 4.738 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.572e-05/0.1498, allocations: 8 kB / 0.6842 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.1498, allocations: 19.86 kB / 0.6843 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002414/0.1501, allocations: 191.6 kB / 0.6844 GB, free: 4.523 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1501, allocations: 0 / 0.6844 GB, free: 4.523 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1501, allocations: 0 / 0.6844 GB, free: 4.523 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.553e-06/0.1501, allocations: 4 kB / 0.6844 GB, free: 4.52 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.0004088/0.1505, allocations: 426.8 kB / 0.6849 GB, free: 4.043 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.1506, allocations: 16.03 kB / 0.6849 GB, free: 4.027 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.1506, allocations: 8.844 kB / 0.6849 GB, free: 4.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.1507, allocations: 172.2 kB / 0.685 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1507, allocations: 384 / 0.685 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.1508, allocations: 4.375 kB / 0.685 GB, free: 3.809 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.1509, allocations: 77.97 kB / 0.6851 GB, free: 3.727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.76e-06/0.1509, allocations: 3.938 kB / 0.6851 GB, free: 3.723 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-06/0.1509, allocations: 0 / 0.6851 GB, free: 3.723 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-06/0.151, allocations: 4 kB / 0.6851 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.1511, allocations: 47.97 kB / 0.6852 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003514/0.1514, allocations: 276.8 kB / 0.6854 GB, free: 3.352 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.1516, allocations: 62.55 kB / 0.6855 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.764e-05/0.1517, allocations: 44.91 kB / 0.6855 GB, free: 3.234 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.1517, allocations: 4 kB / 0.6855 GB, free: 3.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1517, allocations: 38.5 kB / 0.6856 GB, free: 3.184 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.1517, allocations: 0 / 0.6856 GB, free: 3.184 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003532/0.1521, allocations: 183.2 kB / 0.6858 GB, free: 2.992 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.1521, allocations: 81.11 kB / 0.6858 GB, free: 2.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.229e-05/0.1522, allocations: 125.8 kB / 0.686 GB, free: 2.762 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.077e-05/0.1522, allocations: 25.7 kB / 0.686 GB, free: 2.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.74e-05/0.1523, allocations: 88.14 kB / 0.6861 GB, free: 2.641 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.218e-05/0.1523, allocations: 3.906 kB / 0.6861 GB, free: 2.637 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.942e-05/0.1523, allocations: 25.75 kB / 0.6861 GB, free: 2.605 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.802e-05/0.1525, allocations: 318.8 kB / 0.6864 GB, free: 2.285 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.1526, allocations: 55.97 kB / 0.6864 GB, free: 2.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001114/0.1527, allocations: 63.89 kB / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.153, allocations: 201.9 kB / 0.6867 GB, free: 1.949 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.153, allocations: 3.938 kB / 0.6867 GB, free: 1.945 MB / 494.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002646/0.1532, allocations: 220.9 kB / 0.6869 GB, free: 1.711 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.1533, allocations: 67.39 kB / 0.687 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1533, allocations: 0 / 0.687 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.1533, allocations: 0 / 0.687 GB, free: 1.633 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.879e-05/0.1534, allocations: 7.938 kB / 0.687 GB, free: 1.625 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.1534, allocations: 0 / 0.687 GB, free: 1.625 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.292e-05/0.1534, allocations: 4 kB / 0.687 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.1534, allocations: 7.984 kB / 0.687 GB, free: 1.613 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.762e-05/0.1535, allocations: 151.4 kB / 0.6871 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.1536, allocations: 11.91 kB / 0.6872 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.904e-05/0.1536, allocations: 7.891 kB / 0.6872 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1536, allocations: 0 / 0.6872 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.1536, allocations: 0 / 0.6872 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1536, allocations: 0 / 0.6872 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.1538, allocations: 177.6 kB / 0.6873 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1538, allocations: 0 / 0.6873 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.508e-05/0.1538, allocations: 240 / 0.6873 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.1538, allocations: 4 kB / 0.6873 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.1538, allocations: 0 / 0.6873 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1539, allocations: 4 kB / 0.6873 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1539, allocations: 0 / 0.6873 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.1541, allocations: 253.1 kB / 0.6876 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.162e-05/0.1542, allocations: 88.94 kB / 0.6877 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.1542, allocations: 4 kB / 0.6877 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.619e-05/0.1543, allocations: 0 / 0.6877 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.977e-05/0.1544, allocations: 11.98 kB / 0.6877 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.1544, allocations: 8.031 kB / 0.6877 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.872e-05/0.1544, allocations: 95.2 kB / 0.6878 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1544, allocations: 4 kB / 0.6878 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1547, allocations: 56 kB / 0.6878 GB, free: 0.6445 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.0002248/0.155, allocations: 151.1 kB / 0.688 GB, free: 500 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002901/0.1553, allocations: 238.7 kB / 0.6882 GB, free: 236 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1553, allocations: 0 / 0.6882 GB, free: 236 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.1554, allocations: 107.4 kB / 0.6883 GB, free: 116 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1556, allocations: 10.25 kB / 0.6883 GB, free: 108 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.217/0.3726, allocations: 176.6 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.3727, allocations: 0.6844 MB / 0.6892 GB, free: 17.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.847e-05/0.3727, allocations: 1.719 kB / 0.6892 GB, free: 17.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.695e-05/0.3728, allocations: 8.656 kB / 0.6892 GB, free: 17.56 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3728, allocations: 0 / 0.6892 GB, free: 17.56 MB / 494.1 MB Notification: Performance of Templates: time 0.004559/0.3773, allocations: 1.754 MB / 0.6909 GB, free: 17.55 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)