Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0011/0.0011, allocations: 194.7 kB / 16.25 MB, free: 6.621 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.31/1.31, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 286.4 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9377/0.9377, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 88.05 kB / 0.5947 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.157, allocations: 86.98 MB / 0.6796 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002497/0.1595, allocations: 1.533 MB / 0.6811 GB, free: 15.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1606, allocations: 0.6292 MB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.1606, allocations: 0 / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.687e-05/0.1607, allocations: 0.7188 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.673e-05/0.1607, allocations: 3.938 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.1613, allocations: 141.3 kB / 0.6819 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.176e-05/0.1613, allocations: 52.72 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.441e-05/0.1614, allocations: 4 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.855e-05/0.1614, allocations: 24.56 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.108e-05/0.1615, allocations: 27.86 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.1615, allocations: 5.219 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004334/0.1619, allocations: 347.3 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.162, allocations: 11.98 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.307e-05/0.162, allocations: 32.69 kB / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002483/0.1622, allocations: 175.8 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1623, allocations: 0.5312 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1623, allocations: 0 / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1623, allocations: 4 kB / 0.6825 GB, free: 14.09 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000547/0.1628, allocations: 399.3 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.1629, allocations: 8.031 kB / 0.6829 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.1629, allocations: 8.844 kB / 0.6829 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.163, allocations: 172.3 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.163, allocations: 384 / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1631, allocations: 16.36 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.1633, allocations: 78.22 kB / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1633, allocations: 192 / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1633, allocations: 7.875 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.1634, allocations: 4 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.1636, allocations: 51.95 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005028/0.1641, allocations: 320.7 kB / 0.6836 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.1644, allocations: 78.47 kB / 0.6836 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.1645, allocations: 32.84 kB / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.1645, allocations: 0 / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1646, allocations: 38.5 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.1646, allocations: 0 / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001585/0.1662, allocations: 0.6458 MB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.1662, allocations: 51.41 kB / 0.6844 GB, free: 11.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.096e-05/0.1663, allocations: 109.8 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.1663, allocations: 25.7 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.305e-05/0.1664, allocations: 88.05 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.1664, allocations: 47.31 kB / 0.6846 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.1664, allocations: 33.7 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.1666, allocations: 318.8 kB / 0.685 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.1667, allocations: 39.91 kB / 0.685 GB, free: 11.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.1668, allocations: 27.97 kB / 0.685 GB, free: 11.22 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002414/0.1671, allocations: 71.84 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1671, allocations: 0 / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000322/0.1674, allocations: 125.7 kB / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.415e-05/0.1674, allocations: 10.19 kB / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1674, allocations: 4 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1675, allocations: 0 / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.1676, allocations: 27.92 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1676, allocations: 0 / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.403e-05/0.1677, allocations: 7.938 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.1677, allocations: 12.53 kB / 0.6853 GB, free: 10.96 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.028e-05/0.1678, allocations: 119.2 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.95e-05/0.1678, allocations: 4 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003519/0.1682, allocations: 125.7 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.1682, allocations: 7.922 kB / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1682, allocations: 0 / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.1682, allocations: 11.92 kB / 0.6855 GB, free: 10.69 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005512/0.1688, allocations: 374.5 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1688, allocations: 0 / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.1689, allocations: 27.92 kB / 0.6859 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.169, allocations: 4 kB / 0.6859 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.169, allocations: 11.92 kB / 0.6859 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.169, allocations: 0 / 0.6859 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.169, allocations: 0 / 0.6859 GB, free: 10.22 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.1695, allocations: 247.4 kB / 0.6862 GB, free: 9.965 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.1695, allocations: 85.05 kB / 0.6863 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.1695, allocations: 3.938 kB / 0.6863 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.1697, allocations: 7.984 kB / 0.6863 GB, free: 9.852 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.1697, allocations: 8 kB / 0.6863 GB, free: 9.844 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.1697, allocations: 4 kB / 0.6863 GB, free: 9.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.392e-05/0.1698, allocations: 83.27 kB / 0.6864 GB, free: 9.758 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.625e-06/0.1698, allocations: 0 / 0.6864 GB, free: 9.758 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.17, allocations: 36 kB / 0.6864 GB, free: 9.723 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001969/0.1702, allocations: 151.1 kB / 0.6865 GB, free: 9.566 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.1706, allocations: 84.33 kB / 0.6866 GB, free: 9.484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1706, allocations: 0 / 0.6866 GB, free: 9.484 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.1707, allocations: 43.97 kB / 0.6867 GB, free: 9.441 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.171, allocations: 9.844 kB / 0.6867 GB, free: 9.434 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006188/0.1716, allocations: 349.7 kB / 0.687 GB, free: 9.062 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002473/0.1719, allocations: 0.6963 MB / 0.6877 GB, free: 8.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.198e-05/0.172, allocations: 16.59 kB / 0.6877 GB, free: 8.324 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.021e-05/0.172, allocations: 11.44 kB / 0.6877 GB, free: 8.312 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.172, allocations: 0 / 0.6877 GB, free: 8.312 MB / 494.1 MB Notification: Performance of Templates: time 0.003394/0.1754, allocations: 1.139 MB / 0.6888 GB, free: 7.223 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)