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.006594/0.006594, allocations: 100.9 kB / 15.73 MB, free: 6.5 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.001359/0.001359, allocations: 191.5 kB / 16.67 MB, free: 6.379 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 279 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9203/0.9203, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 87.92 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1551, allocations: 86.98 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline): time 0.002455/0.1576, allocations: 1.414 MB / 0.7673 GB, free: 7.488 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1588, allocations: 0.7808 MB / 0.7681 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.1589, allocations: 8 kB / 0.7681 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.148e-05/0.1589, allocations: 7.875 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.981e-05/0.159, allocations: 0 / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006574/0.1596, allocations: 174.8 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001055/0.1598, allocations: 51.91 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.309e-05/0.1598, allocations: 8 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.876e-05/0.1599, allocations: 11.98 kB / 0.7683 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.036e-05/0.1599, allocations: 23.91 kB / 0.7683 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.16, allocations: 4 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003335/0.1603, allocations: 199.7 kB / 0.7685 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.36e-05/0.1604, allocations: 11.94 kB / 0.7685 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.973e-05/0.1604, allocations: 15.92 kB / 0.7685 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002861/0.1607, allocations: 199.5 kB / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1607, allocations: 0 / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1607, allocations: 0 / 0.7687 GB, free: 6 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.1607, allocations: 4 kB / 0.7687 GB, free: 5.996 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.0004654/0.1612, allocations: 426.7 kB / 0.7691 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1612, allocations: 12.03 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.841e-05/0.1613, allocations: 30.75 kB / 0.7692 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.302e-05/0.1613, allocations: 8.844 kB / 0.7692 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.1614, allocations: 172.3 kB / 0.7694 GB, free: 5.254 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.1614, allocations: 12.38 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.1615, allocations: 384 / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.1616, allocations: 81.8 kB / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1617, allocations: 0 / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.118e-06/0.1617, allocations: 0 / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1617, allocations: 0 / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001114/0.1618, allocations: 55.83 kB / 0.7695 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.1622, allocations: 288.7 kB / 0.7698 GB, free: 4.77 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.1623, allocations: 58.55 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.1624, allocations: 52.91 kB / 0.7699 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 6.833e-06/0.1624, allocations: 0 / 0.7699 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.1624, allocations: 30.56 kB / 0.7699 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1624, allocations: 3.938 kB / 0.7699 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0003751/0.1628, allocations: 191.3 kB / 0.7701 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.1629, allocations: 77.11 kB / 0.7702 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.681e-05/0.163, allocations: 129.8 kB / 0.7703 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.163, allocations: 25.7 kB / 0.7703 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.163, allocations: 84.05 kB / 0.7704 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.1631, allocations: 11.91 kB / 0.7704 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.1631, allocations: 21.7 kB / 0.7704 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.691e-05/0.1632, allocations: 318.8 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.451e-05/0.1633, allocations: 63.98 kB / 0.7708 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.641e-05/0.1634, allocations: 55.97 kB / 0.7709 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.1636, allocations: 193.8 kB / 0.771 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.1636, allocations: 0 / 0.771 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002573/0.1639, allocations: 213 kB / 0.7712 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.1639, allocations: 67.39 kB / 0.7713 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1639, allocations: 0 / 0.7713 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.164, allocations: 4 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.35e-05/0.164, allocations: 4 kB / 0.7713 GB, free: 3.059 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.164, allocations: 3.984 kB / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.912e-05/0.1641, allocations: 15.89 kB / 0.7713 GB, free: 3.039 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1641, allocations: 0 / 0.7713 GB, free: 3.039 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 9.516e-05/0.1642, allocations: 152.1 kB / 0.7715 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.1642, allocations: 4 kB / 0.7715 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.929e-05/0.1643, allocations: 3.906 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1643, allocations: 0 / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.1643, allocations: 4 kB / 0.7715 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1643, allocations: 4 kB / 0.7715 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.1644, allocations: 185.4 kB / 0.7717 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1645, allocations: 64 / 0.7717 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-05/0.1645, allocations: 8 kB / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1645, allocations: 0 / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.1645, allocations: 0 / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1645, allocations: 0 / 0.7717 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.1645, allocations: 4 kB / 0.7717 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.1648, allocations: 257 kB / 0.7719 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.1648, allocations: 77.11 kB / 0.772 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.1648, allocations: 7.938 kB / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.866e-05/0.1649, allocations: 4 kB / 0.772 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.165, allocations: 7.984 kB / 0.772 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.146e-06/0.165, allocations: 4 kB / 0.772 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.306e-05/0.1651, allocations: 95.27 kB / 0.7721 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1651, allocations: 0 / 0.7721 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003106/0.1654, allocations: 59.92 kB / 0.7722 GB, free: 2.07 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.0006346/0.1661, allocations: 0.8351 MB / 0.773 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002954/0.1664, allocations: 242.7 kB / 0.7732 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.1664, allocations: 4.031 kB / 0.7732 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.1665, allocations: 103.3 kB / 0.7733 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.1667, allocations: 4 kB / 0.7733 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2841/0.4508, allocations: 1.743 MB / 0.775 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.451, allocations: 0.6854 MB / 0.7757 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.901e-05/0.451, allocations: 1.281 kB / 0.7757 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.4511, allocations: 14.42 kB / 0.7757 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of SimCode: time 8.52e-07/0.4511, allocations: 0.8125 kB / 0.7757 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.469, allocations: 2.834 MB / 0.7785 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/7.64, allocations: 15.62 kB / 0.7785 GB, free: 12.91 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)