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.005449/0.005449, allocations: 97.33 kB / 15.73 MB, free: 6.039 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.001505/0.001505, allocations: 201.8 kB / 16.68 MB, free: 5.961 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002457/0.002457, allocations: 282.5 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9835/0.9835, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002627/0.002627, allocations: 100.3 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.15, allocations: 86.97 MB / 0.7659 GB, free: 8.918 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002374/0.1524, allocations: 1.405 MB / 0.7673 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.1536, allocations: 0.7923 MB / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.595e-05/0.1537, allocations: 0 / 0.7681 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.608e-05/0.1537, allocations: 3.938 kB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.004e-05/0.1538, allocations: 3.938 kB / 0.7681 GB, free: 6.695 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005662/0.1544, allocations: 171.2 kB / 0.7682 GB, free: 6.531 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.1545, allocations: 51.97 kB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.004e-05/0.1546, allocations: 11.92 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.237e-05/0.1546, allocations: 8 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.499e-05/0.1546, allocations: 27.91 kB / 0.7683 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1547, allocations: 7.938 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.155, allocations: 203.7 kB / 0.7685 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.901e-05/0.155, allocations: 15.92 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.209e-05/0.1551, allocations: 15.94 kB / 0.7686 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.1554, allocations: 195.5 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1554, allocations: 0 / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.072e-06/0.1554, allocations: 0 / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.1554, allocations: 0 / 0.7687 GB, free: 6.004 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.0004987/0.1559, allocations: 430.5 kB / 0.7692 GB, free: 5.523 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1559, allocations: 8.031 kB / 0.7692 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.156, allocations: 34.73 kB / 0.7692 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.947e-05/0.156, allocations: 12.89 kB / 0.7692 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.1561, allocations: 172.3 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.655e-06/0.1562, allocations: 384 / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.1562, allocations: 4.375 kB / 0.7694 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1564, allocations: 85.72 kB / 0.7695 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1564, allocations: 0 / 0.7695 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.1564, allocations: 0 / 0.7695 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.1564, allocations: 3.938 kB / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001068/0.1565, allocations: 47.97 kB / 0.7695 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.1569, allocations: 288.8 kB / 0.7698 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.157, allocations: 62.48 kB / 0.7698 GB, free: 4.707 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.382e-05/0.1571, allocations: 44.91 kB / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 5.831e-06/0.1571, allocations: 0 / 0.7699 GB, free: 4.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1572, allocations: 34.56 kB / 0.7699 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.1572, allocations: 4 kB / 0.7699 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003631/0.1575, allocations: 179.3 kB / 0.7701 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.1576, allocations: 77.11 kB / 0.7702 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1577, allocations: 129.8 kB / 0.7703 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1577, allocations: 29.64 kB / 0.7703 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.232e-05/0.1578, allocations: 92.12 kB / 0.7704 GB, free: 4.066 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.1578, allocations: 3.953 kB / 0.7704 GB, free: 4.062 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.326e-05/0.1579, allocations: 21.75 kB / 0.7704 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.158, allocations: 326.8 kB / 0.7707 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.1581, allocations: 55.97 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.866e-05/0.1582, allocations: 55.97 kB / 0.7709 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.1584, allocations: 197.9 kB / 0.771 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1584, allocations: 3.984 kB / 0.771 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002863/0.1587, allocations: 217 kB / 0.7713 GB, free: 3.148 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.1588, allocations: 59.41 kB / 0.7713 GB, free: 3.078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1588, allocations: 7.984 kB / 0.7713 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.1588, allocations: 0 / 0.7713 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.589e-05/0.1589, allocations: 15.86 kB / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.1589, allocations: 0 / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.618e-05/0.1589, allocations: 7.938 kB / 0.7713 GB, free: 3.047 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.159, allocations: 4 kB / 0.7713 GB, free: 3.043 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 0.0001108/0.1591, allocations: 152.1 kB / 0.7715 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.1591, allocations: 3.953 kB / 0.7715 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.498e-05/0.1591, allocations: 15.91 kB / 0.7715 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1592, allocations: 0 / 0.7715 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1592, allocations: 3.938 kB / 0.7715 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.1592, allocations: 0 / 0.7715 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.1594, allocations: 177.6 kB / 0.7717 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1594, allocations: 0 / 0.7717 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.873e-05/0.1594, allocations: 7.984 kB / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1594, allocations: 0 / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.1594, allocations: 4 kB / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1594, allocations: 0 / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1594, allocations: 0 / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000268/0.1597, allocations: 249.1 kB / 0.7719 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.533e-05/0.1598, allocations: 85.06 kB / 0.772 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.1598, allocations: 4 kB / 0.772 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.834e-05/0.1599, allocations: 7.984 kB / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.16, allocations: 4 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.16, allocations: 0 / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.113e-05/0.1601, allocations: 107.7 kB / 0.7721 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1601, allocations: 0 / 0.7721 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004003/0.1605, allocations: 55.92 kB / 0.7722 GB, free: 2.074 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.000717/0.1612, allocations: 0.8311 MB / 0.773 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003236/0.1615, allocations: 246.9 kB / 0.7732 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1615, allocations: 0 / 0.7732 GB, free: 0.9453 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001244/0.1617, allocations: 103.4 kB / 0.7733 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.162, allocations: 7.984 kB / 0.7733 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2608/0.4228, allocations: 1.753 MB / 0.775 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.4229, allocations: 0.6852 MB / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.793e-05/0.4229, allocations: 0 / 0.7757 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.423, allocations: 17.89 kB / 0.7757 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of SimCode: time 5.21e-07/0.423, allocations: 1.219 kB / 0.7757 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03751/0.4605, allocations: 2.831 MB / 0.7785 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.672/9.132, allocations: 12.11 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)