Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004364/0.004364, allocations: 101.8 kB / 15.73 MB, free: 6.043 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.001007/0.001008, allocations: 184.9 kB / 16.67 MB, free: 5.977 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002146/0.002145, allocations: 294.9 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9393/0.9393, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 99.86 kB / 0.6814 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1569, allocations: 86.97 MB / 0.7664 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00205/0.159, allocations: 1.289 MB / 0.7676 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009248/0.16, allocations: 0.6111 MB / 0.7682 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.16, allocations: 0 / 0.7682 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.728e-05/0.16, allocations: 0 / 0.7682 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.412e-05/0.1601, allocations: 11.92 kB / 0.7682 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004813/0.1606, allocations: 149.6 kB / 0.7684 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.537e-05/0.1606, allocations: 27.86 kB / 0.7684 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.298e-05/0.1607, allocations: 7.984 kB / 0.7684 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.162e-05/0.1607, allocations: 11.94 kB / 0.7684 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.052e-05/0.1608, allocations: 11.92 kB / 0.7684 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.1608, allocations: 4 kB / 0.7684 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000469/0.1613, allocations: 347.3 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.276e-05/0.1613, allocations: 8 kB / 0.7688 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.588e-05/0.1613, allocations: 15.92 kB / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.1615, allocations: 155.6 kB / 0.7689 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1616, allocations: 0 / 0.7689 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1616, allocations: 0 / 0.7689 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.1616, allocations: 0 / 0.7689 GB, free: 5.758 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003704/0.1619, allocations: 363.4 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.976e-05/0.162, allocations: 8.031 kB / 0.7693 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/0.162, allocations: 4.938 kB / 0.7693 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.1621, allocations: 172.3 kB / 0.7695 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.1622, allocations: 8.375 kB / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.494e-05/0.1622, allocations: 4.375 kB / 0.7695 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000113/0.1623, allocations: 50.19 kB / 0.7695 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1623, allocations: 4.094 kB / 0.7695 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.1623, allocations: 7.938 kB / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1623, allocations: 0 / 0.7695 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.857e-05/0.1624, allocations: 19.98 kB / 0.7696 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.1626, allocations: 169.6 kB / 0.7697 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.747e-05/0.1627, allocations: 62.5 kB / 0.7698 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.807e-05/0.1627, allocations: 32.78 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.1627, allocations: 3.984 kB / 0.7698 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.974e-05/0.1628, allocations: 34.56 kB / 0.7699 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.1628, allocations: 0 / 0.7699 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.00104/0.1638, allocations: 0.5917 MB / 0.7704 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.1639, allocations: 51.41 kB / 0.7705 GB, free: 3.922 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.86e-05/0.1639, allocations: 97.86 kB / 0.7706 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.164, allocations: 29.64 kB / 0.7706 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.834e-05/0.164, allocations: 80.14 kB / 0.7707 GB, free: 3.699 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.674e-05/0.164, allocations: 39.58 kB / 0.7707 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.1641, allocations: 33.8 kB / 0.7707 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.563e-05/0.1642, allocations: 318.8 kB / 0.7711 GB, free: 3.301 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.056e-05/0.1642, allocations: 23.98 kB / 0.7711 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/0.1643, allocations: 20 kB / 0.7711 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.499e-05/0.1644, allocations: 64.03 kB / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.1644, allocations: 0 / 0.7712 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001328/0.1645, allocations: 97.53 kB / 0.7712 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.1645, allocations: 4 kB / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1646, allocations: 4 kB / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.1646, allocations: 0 / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1647, allocations: 23.98 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.1647, allocations: 0 / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.444e-05/0.1647, allocations: 7.938 kB / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-06/0.1647, allocations: 4 kB / 0.7713 GB, free: 3.051 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: 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 7.725e-05/0.1648, allocations: 113.8 kB / 0.7714 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.401e-05/0.1648, allocations: 3.938 kB / 0.7714 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.165, allocations: 113.5 kB / 0.7715 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.165, allocations: 4 kB / 0.7715 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.165, allocations: 0 / 0.7715 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.165, allocations: 0 / 0.7715 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.1654, allocations: 354.5 kB / 0.7719 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1654, allocations: 0 / 0.7719 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.1655, allocations: 23.98 kB / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1655, allocations: 0 / 0.7719 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.1656, allocations: 4 kB / 0.7719 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1656, allocations: 0 / 0.7719 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1656, allocations: 3.938 kB / 0.7719 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.1658, allocations: 227.4 kB / 0.7721 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.994e-05/0.1659, allocations: 84.95 kB / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.1659, allocations: 4 kB / 0.7722 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.475e-05/0.166, allocations: 4.031 kB / 0.7722 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.086e-05/0.166, allocations: 7.984 kB / 0.7722 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.316e-06/0.166, allocations: 4 kB / 0.7722 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 2.884e-05/0.166, allocations: 83.34 kB / 0.7723 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.166, allocations: 0 / 0.7723 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002549/0.1663, allocations: 35.94 kB / 0.7723 GB, free: 1.895 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.000187/0.1665, allocations: 136.9 kB / 0.7724 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001328/0.1666, allocations: 63.86 kB / 0.7725 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1666, allocations: 0 / 0.7725 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.642e-05/0.1667, allocations: 35.92 kB / 0.7725 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.1669, allocations: 8 kB / 0.7725 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.1674, allocations: 293.4 kB / 0.7728 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1677, allocations: 0.6918 MB / 0.7735 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.636e-05/0.1677, allocations: 8 kB / 0.7735 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.17e-05/0.1677, allocations: 15.44 kB / 0.7735 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.1677, allocations: 0 / 0.7735 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of Templates: time 0.3092/0.4769, allocations: 0.9439 MB / 0.7744 GB, free: 14.21 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)