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.00152/0.001521, allocations: 107 kB / 16.36 MB, free: 6.336 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.00163/0.00163, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.308/1.308, 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.002218/0.002217, allocations: 286.1 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9387/0.9387, allocations: 169.2 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 93 kB / 0.5967 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1652, allocations: 86.97 MB / 0.6816 GB, free: 7.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002389/0.1676, allocations: 1.282 MB / 0.6829 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009812/0.1686, allocations: 0.611 MB / 0.6835 GB, free: 5.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.616e-05/0.1687, allocations: 4 kB / 0.6835 GB, free: 5.566 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.1687, allocations: 0 / 0.6835 GB, free: 5.566 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.775e-05/0.1688, allocations: 3.938 kB / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00058/0.1693, allocations: 151.4 kB / 0.6836 GB, free: 5.414 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.3e-05/0.1694, allocations: 27.91 kB / 0.6836 GB, free: 5.387 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.1695, allocations: 4 kB / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.868e-05/0.1695, allocations: 11.94 kB / 0.6836 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.675e-05/0.1696, allocations: 11.92 kB / 0.6837 GB, free: 5.359 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.079e-05/0.1696, allocations: 8 kB / 0.6837 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005348/0.1701, allocations: 347.3 kB / 0.684 GB, free: 5.012 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.425e-05/0.1701, allocations: 4 kB / 0.684 GB, free: 5.008 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.861e-05/0.1702, allocations: 19.86 kB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.1705, allocations: 155.6 kB / 0.6842 GB, free: 4.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1705, allocations: 0 / 0.6842 GB, free: 4.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1705, allocations: 0 / 0.6842 GB, free: 4.836 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1705, allocations: 0 / 0.6842 GB, free: 4.836 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003778/0.1709, allocations: 359.5 kB / 0.6845 GB, free: 4.434 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1709, allocations: 16.03 kB / 0.6845 GB, free: 4.418 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.171, allocations: 8.828 kB / 0.6845 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.808e-05/0.1711, allocations: 172.3 kB / 0.6847 GB, free: 4.203 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1711, allocations: 4.375 kB / 0.6847 GB, free: 4.199 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.1711, allocations: 4.375 kB / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.1712, allocations: 50.19 kB / 0.6848 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1712, allocations: 192 / 0.6848 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.1713, allocations: 7.938 kB / 0.6848 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.1713, allocations: 3.938 kB / 0.6848 GB, free: 4.129 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.968e-05/0.1713, allocations: 19.98 kB / 0.6848 GB, free: 4.109 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.1715, allocations: 173.6 kB / 0.6849 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.1716, allocations: 54.56 kB / 0.685 GB, free: 3.828 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.354e-05/0.1717, allocations: 32.78 kB / 0.685 GB, free: 3.793 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.132e-05/0.1717, allocations: 0 / 0.685 GB, free: 3.793 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.1717, allocations: 34.56 kB / 0.6851 GB, free: 3.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.1717, allocations: 0 / 0.6851 GB, free: 3.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001154/0.1729, allocations: 0.5952 MB / 0.6856 GB, free: 3.062 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.1729, allocations: 51.41 kB / 0.6857 GB, free: 3 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.766e-05/0.173, allocations: 93.86 kB / 0.6858 GB, free: 2.898 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.173, allocations: 29.83 kB / 0.6858 GB, free: 2.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.061e-05/0.1731, allocations: 84.14 kB / 0.6859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.1731, allocations: 35.45 kB / 0.6859 GB, free: 2.742 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.604e-05/0.1732, allocations: 33.7 kB / 0.686 GB, free: 2.703 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1733, allocations: 314.8 kB / 0.6863 GB, free: 2.387 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.339e-05/0.1733, allocations: 19.98 kB / 0.6863 GB, free: 2.367 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.69e-05/0.1734, allocations: 20 kB / 0.6863 GB, free: 2.348 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.387e-05/0.1735, allocations: 59.78 kB / 0.6864 GB, free: 2.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.1735, allocations: 0 / 0.6864 GB, free: 2.289 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001466/0.1737, allocations: 105.6 kB / 0.6865 GB, free: 2.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1737, allocations: 4.094 kB / 0.6865 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1737, allocations: 3.938 kB / 0.6865 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1737, allocations: 0 / 0.6865 GB, free: 2.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.1738, allocations: 23.98 kB / 0.6865 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1738, allocations: 0 / 0.6865 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.645e-05/0.1739, allocations: 4 kB / 0.6865 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.184e-05/0.1739, allocations: 4 kB / 0.6865 GB, free: 2.141 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.822e-05/0.174, allocations: 117.8 kB / 0.6866 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.174, allocations: 11.84 kB / 0.6866 GB, free: 2.004 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.1742, allocations: 109.6 kB / 0.6867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.1742, allocations: 0 / 0.6867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1742, allocations: 0 / 0.6867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1742, allocations: 0 / 0.6867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004252/0.1747, allocations: 354.7 kB / 0.6871 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.1747, allocations: 7.984 kB / 0.6871 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.1748, allocations: 19.98 kB / 0.6871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.1748, allocations: 0 / 0.6871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1748, allocations: 11.94 kB / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1748, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.1748, allocations: 0 / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.1751, allocations: 227.3 kB / 0.6873 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.872e-05/0.1751, allocations: 77.11 kB / 0.6874 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.1752, allocations: 4 kB / 0.6874 GB, free: 1.109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.1753, allocations: 4.031 kB / 0.6874 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.982e-05/0.1753, allocations: 7.984 kB / 0.6874 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1753, allocations: 8.062 kB / 0.6874 GB, free: 1.09 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.261e-05/0.1753, allocations: 79.28 kB / 0.6875 GB, free: 1.012 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1753, allocations: 0 / 0.6875 GB, free: 1.012 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.1756, allocations: 35.94 kB / 0.6875 GB, free: 0.9766 MB / 494.1 MB 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.0002111/0.1758, allocations: 143 kB / 0.6877 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001378/0.176, allocations: 55.92 kB / 0.6877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.176, allocations: 0 / 0.6877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.923e-05/0.176, allocations: 44.02 kB / 0.6878 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.1763, allocations: 9.016 kB / 0.6878 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005077/0.1768, allocations: 280.9 kB / 0.688 GB, free: 432 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2406/0.4174, allocations: 0.6844 MB / 0.6887 GB, free: 17.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.963e-05/0.4175, allocations: 9.641 kB / 0.6887 GB, free: 17.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.4175, allocations: 12.28 kB / 0.6887 GB, free: 17.55 MB / 494.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4176, allocations: 0.6562 kB / 0.6887 GB, free: 17.55 MB / 494.1 MB Notification: Performance of Templates: time 0.003491/0.421, allocations: 0.9465 MB / 0.6896 GB, free: 17.55 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)